summaryrefslogtreecommitdiffstats
path: root/rescue/tree/etc/rc.sysinit
blob: 4f81e9e5795539a7eb4c3b9828420176a55c33e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

action() { echo $1; shift; $*; }

export PATH=/bin:/sbin:/usr/bin:/usr/sbin

echo -e "\t\t\tWelcome to Linux \\033[1;36mMandrake\\033[0;39m"

action "Mounting proc filesystem" mount -n -t proc /proc /proc
action "Remounting root filesystem in read-write mode" mount -n -o remount,rw /

>/etc/mtab
mount -f /
mount -f /proc

# Set the hostname.
action "Setting hostname rescue" hostname rescue
echo rescue > /etc/HOSTNAME

load() { modprobe $* 2>/dev/null; }
load ide-mod
load ide-probe
load ide-disk
load ide-cd
load af_packet
load isofs

grep -q oem /proc/cmdline && exec /etc/oem -f

/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0
/sbin/route add 127.0.0.1 lo