ETC=/etc/
USRETC=/usr/etc/
-FILES1=fstab group hostname.file inet.conf motd mtab passwd profile protocols rc services termcap ttytab utmp rc.cd binary_sizes binary_sizes.big
+FILES1=fstab group hostname.file inet.conf motd mtab passwd profile protocols rc services termcap ttytab utmp rc.cd binary_sizes binary_sizes.big rc.rescue
FILES2=shadow
FILES3=daily dhcptags.conf rc
# Further initialization.
test -f /usr/etc/rc && sh /usr/etc/rc $action
test -f /usr/local/etc/rc && sh /usr/local/etc/rc $action
+test -f /etc/rc.rescue && sh /etc/rc.rescue $action
# Any messages?
test "$action" = start -a -f /etc/issue && cat /etc/issue
--- /dev/null
+#!/bin/sh
+DRIVERS=/sbin
+RESCUE=/boot/rescue
+
+if [ "$1" != start ]
+then exit
+fi
+
+service up $DRIVERS/rescue -dev /dev/rescue -arg 128
+mkfs /dev/rescue || exit
+mount /dev/rescue $RESCUE || exit
+cp $DRIVERS/memory $RESCUE
+label=`sysenv label`
+case "$label" in
+AT)
+ d=at_wini
+ ;;
+FLOPPY)
+ d=floppy
+ ;;
+BIOS)
+ d=bios_wini
+ ;;
+*) exit
+ ;;
+esac
+cp $DRIVERS/$d $RESCUE
+service rescue $RESCUE