summaryrefslogtreecommitdiffstats
path: root/rescue/tree/etc/rc.sysinit
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-04-20 20:58:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-04-20 20:58:03 +0000
commitcea41ee6a61d844cde0b4dbd6d325f351dadf4b1 (patch)
tree01d6eb78d00ec94c885a33a757500193ef1e1d85 /rescue/tree/etc/rc.sysinit
parent448bd28d082118bf27c724df11b6a0a41bca9ca4 (diff)
downloaddrakx-cea41ee6a61d844cde0b4dbd6d325f351dadf4b1.tar
drakx-cea41ee6a61d844cde0b4dbd6d325f351dadf4b1.tar.gz
drakx-cea41ee6a61d844cde0b4dbd6d325f351dadf4b1.tar.bz2
drakx-cea41ee6a61d844cde0b4dbd6d325f351dadf4b1.tar.xz
drakx-cea41ee6a61d844cde0b4dbd6d325f351dadf4b1.zip
no_comment
Diffstat (limited to 'rescue/tree/etc/rc.sysinit')
-rwxr-xr-xrescue/tree/etc/rc.sysinit28
1 files changed, 28 insertions, 0 deletions
diff --git a/rescue/tree/etc/rc.sysinit b/rescue/tree/etc/rc.sysinit
new file mode 100755
index 000000000..476c9bfe9
--- /dev/null
+++ b/rescue/tree/etc/rc.sysinit
@@ -0,0 +1,28 @@
+#!/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
+
+/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0
+/sbin/route add 127.0.0.1 lo