minix/etc/rc.rescue

28 lines
378 B
Text
Raw Normal View History

#!/bin/sh
2006-02-17 15:05:46 +01:00
DRIVERS=/sbin
RESCUE=/boot/rescue
if [ "$1" != start ]
then exit
fi
service up $DRIVERS/rescue -dev /dev/rescue -args 128 -period 4HZ
mkfs /dev/rescue || exit
mount /dev/rescue $RESCUE || exit
label=`sysenv label`
case "$label" in
AT)
d=at_wini
;;
FLOPPY)
d=floppy
;;
BIOS)
d=bios_wini
;;
*) exit
;;
esac
2005-10-21 15:23:22 +02:00
cp $DRIVERS/$d $RESCUE/driver
service rescue $RESCUE