-
Run scripts from floppy at boot
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!
-
Senior Member
registered user
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.
-
Ok, I'll do that. Thanks!
-
Junior Member
registered user
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.
-
Junior Member
registered user
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 ?
Similar Threads
-
By sunburnt in forum Tips and Tricks
Replies: 5
Last Post: 05-28-2005, 05:39 PM
-
By sunburnt in forum General Support
Replies: 2
Last Post: 04-18-2005, 07:13 PM
-
By acer0001 in forum Customising & Remastering
Replies: 1
Last Post: 01-25-2005, 05:38 PM
-
By proto in forum General Support
Replies: 3
Last Post: 03-17-2004, 11:29 PM
-
By Dan_Netwalker in forum Hdd Install / Debian / Apt
Replies: 7
Last Post: 02-23-2003, 01:40 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Intel Xeon E5-2689v4 10 Core 3.1G - SR2T7
$125.00
Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...
$242.99
Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc...
$539.99
Intel 6 Core i5-8600 3.1GHZ Desktop Processor SR3X0
$50.00
Intel Core i7-7700K. SR33A. 4.20GHZ
$100.00
Intel Core i5-6500 Quad-Core Processor 3.2 GHz 6MB LGA1151
$23.99
Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4...
$364.99
Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc...
$399.99
AMD Ryzen 7 2700X CPU Processor 3.7GHz AM4
$74.99
AMD EPYC 7282 cpu processor 16 cores 32 threads 2.8GHZ up to 3.2GHZ 120w
$78.00