PDA

View Full Version : auto floppyconfig



robk
02-22-2003, 08:53 AM
With the following modifications, the floppyconfig is the default. The system
tries to find a mountable floppy disk and executes the script "knoppix.sh" if
present on the disk. Even if no floppy is inserted, all works correctly.
For systems without floppy drive, "knoppix nofloppy" may be used at the boot prompt to avoid long timeout delays.

The CD has to be remastered.

Modifications:
Edit /etc/init.d/knoppix-autoconfig

..
# Check if we want the config floppy

<original>
MYCONF=""
case "$CMDLINE" in *myconf*|*floppyconf*|*custom*) MYCONF="yes"; ;; esac

<new>
# MYCONF=""
# case "$CMDLINE" in *myconf*|*floppyconf*|*custom*) MYCONF="yes"; ;; esac
MYCONF="yes"
if checkbootparam "nofloppy"; then
MYCONF=""
fi


robk
:wink: