PDA

View Full Version : Run scripts from floppy at boot



Ghost_Rider176
08-13-2006, 06:18 AM
Hi!

I am experimenting with a knoppix router running the live cd. I could easily remaster a cd tailored to my network configuration (I use that term loosely as I have yet to remaster a cd) but I would like it if I could make my image a little more versatile than just tailored to my immediate needs especially if at any time I need to change my network configuration. I read somewhere that it's possible to write some bash configuration scripts (such as commands to set eth0 to a certain ip address, etc.) on a floppy disk and then have those commands executed when the system boots. This would give me the flexability I'm looking for I think. I didn't write down the forums I saw that on though and can't find them again. Does anyone have some pointers on how I can do this or can perhaps point me in the direction of a howto on it? Thanks!

malaire
08-14-2006, 08:59 AM
Just create a script called knoppix.sh on the floppy and then use knoppix floppyconfig when booting the LiveCD.

This and some other boot-options are listed at http://www.knoppix.net/wiki/Cheat_Codes, or in a file KNOPPIX/knoppix-cheatcodes.txt in your Knoppix CD/DVD.

Ghost_Rider176
08-14-2006, 08:40 PM
Ok, I'll do that. Thanks!

knoppu
11-14-2006, 10:30 AM
I am trying to use knoppix.sh in the main image (basically the same function as putting one on floppy).

The script gets pickup and run when I boot but it not doing what I expect. This is probably because I dont know what state knoppix is in at that point and what environment the script is running in.

Since the script is outside the KNOPPIX compressed system who can I refer to, say, the /opt directory of the live system.

I want my script to untar some data into the fresh system before X starts.

This would seem to be the place to do it I just dont know the relative path to live system.

TIA. 8)

knoppu
11-14-2006, 10:32 AM
PS , I forgot that the script that I need to run needs some user keyboard input and it would be helpful to see the console at this point.

any suggestions ? 8)