]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/cdrom/roottree/linuxrc
Initial revision
[bacula/rescue] / rescue / linux / cdrom / roottree / linuxrc
1 #!/bin/sh
2 #
3 # First script called by Linux when booting
4 #
5
6 trap "" 1 2 3 15
7 exec >/dev/console </dev/console 2>&1
8 mount -t proc none /proc
9
10 CMDLINE=`cat /proc/cmdline`
11 DEBUG=""
12 case "$CMDLINE" in *debug*) DEBUG="yes"; ;; esac
13 export DEBUG
14
15 # Magic incantation for root to remain in ram 
16 echo 0x0100 > /proc/sys/kernel/real-root-dev
17
18 mount -o remount,rw /dev/root /
19
20 # sh
21
22 exit 0