2005-10-21 12:47:13 +02:00
|
|
|
#!/bin/sh
|
2006-02-17 15:05:46 +01:00
|
|
|
DRIVERS=/sbin
|
2005-10-21 12:47:13 +02:00
|
|
|
RESCUE=/boot/rescue
|
|
|
|
|
|
|
|
if [ "$1" != start ]
|
|
|
|
then exit
|
|
|
|
fi
|
|
|
|
|
2005-10-21 16:34:13 +02:00
|
|
|
service up $DRIVERS/rescue -dev /dev/rescue -args 128 -period 4HZ
|
2005-10-21 12:47:13 +02:00
|
|
|
mkfs /dev/rescue || exit
|
|
|
|
mount /dev/rescue $RESCUE || exit
|
2006-02-17 15:05:46 +01:00
|
|
|
cp /usr/sbin/memory $RESCUE
|
2005-10-21 12:47:13 +02:00
|
|
|
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
|
2005-10-21 16:34:13 +02:00
|
|
|
service rescue $RESCUE
|