5
# Required-Start: mountall-bootclean $local_fs
7
# X-Start-Before: networking
10
# Short-Description: bootcdflop reads changes from floppy if running from bootcd
11
# Description: When running from bootcd this script tries to access
12
# the floppy to read changes last time saved with
13
# bootcdflopcp from a running bootcd.
18
BOOT_ONLY_WITH_FLOPPY="no"
19
FSTYPES="ext3,ext2,reiserfs,iso9660,vfat,auto"
23
# bootcdwrite modifies this script. FLOPPY could be unset.
24
if [ ! "$FLOPPY" ]; then
25
echo "No Floppy device specified !!"
30
fsck -a -t $FSTYPES $FLOPPY
31
mount -v -o ro -n -t $FSTYPES $FLOPPY $MNT
34
if [ "$BOOT_ONLY_WITH_FLOPPY" = "yes" -a $RET -ne 0 ]; then
35
echo "The floppy could not be mounted."
36
echo "Manual interaction required."
37
# Start a single user shell on the console
38
/sbin/sulogin $CONSOLE
41
[ -f $MNT/change.tgz ] && (cd /; tar xzf $MNT/change.tgz)
43
[ -f $MNT/remove ] && for i in `cat $MNT/remove`
48
[ -x $MNT/execute ] && $MNT/execute
52
# If something has been changed in /etc/inittab
58
# Only run this script if we have booted from bootcd
59
if [ "$(grep "\<bootcd=" /proc/cmdline)" ]; then
76
echo "Usage: /etc/init.d/bootcdram start" >&2