minix/etc/rc.rescue
2006-02-17 13:19:10 +00:00

28 lines
409 B
Bash

#!/bin/sh
DRIVERS=/usr/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
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/driver
service rescue $RESCUE