I ended up simply adding the sudo commands to the knoppix.sh script to resolve my issue.
However, if anyone knows where/how to insert a new shell script during remastering, I am still curious to know!
Thank you,
Brandon
For reasons mentioned in another topic:
http://knoppix.net/forum/viewtopic.p...886de5994fd572
I need to write a shell script. The script needs to simply perform the following command:
sudo ifdown eth0 && sudo ifup eth0
Can someone help me? I need to know how to write this script and where to place it to have it automatically run when the KNOPPIX OS is loaded on a remastered CD. I'm new to Linux, but it looks like I can create a new text file, name it SudoTest.sh and simply put the above text followed by 'exit' and it will work. So if I'm correct, all I need to know is where I need to place this SudoTest.sh file in order to have it auto-run at bootup. If I'm reading the remastering instructions properly, this script needs to be placed in the /mnt/hda5/knx/source/KNOPPIX/etc/rc5.d directory. Can someone confirm? Is it really that simple?
Thank you,
Brandon
I ended up simply adding the sudo commands to the knoppix.sh script to resolve my issue.
However, if anyone knows where/how to insert a new shell script during remastering, I am still curious to know!
Thank you,
Brandon
you were on the right track, but didn't quite understand how the rc?.d directories work - they are an old unix way of doing startup.
Knoppix is mostly setup by the knoppix-autoconfig, and not much is needed in the other runlevels like 5.
What you would want to do is place your SudoTest.sh script in /etc/init.d, then create a symlink in /etc/rc5.d of the form:
S##SudoTest where the ## is replaced by a two digit number that represents when in the startup sequence the script should run.
Make sure your script is executable ( chmod +x /etc/init.d/SudoTest.sh ),
There isn't much there on a stock knoppix as far as I recall (I'm working from a heavily changed version now, and don't have the original handy),
so you could safely use S50SudoTest. If there are other scripts, just make sure yours happens after the network is brought up the first time...
(prepend your source tree to the dirs above if not working in the chroot environment - /mnt/hda5/knx/source/KNOPPIX/ it looks like ...)

Vintage Think Pascal 4.0 MAC Apple Macintosh 3.5 Diskette Software NEW SEALED
$275.99
Vintage NOS Apple iBook Two Sided Cloth Banner Think Different
$99.99
Rare Vintage Apple 820-0729-B PC Compatibility Card PCI PowerMac
$299.00
Lot of 3 VIntage Apple Computer Rainbow Logo Sticker Decal Macintosh 1980s NOS
$7.00
Applied Engineering Vulcan Hard Drive Vintage Apple IIgs
$200.00
Rare Vintage Apple Computer Promo Set Rainbow Logo Towel Polo Shirt Report Pad
$230.00
Vintage Apple Newton MessagePad 130 PDA - Working, Clean + Batteries & Extras
$149.99
Vintage Apple Macintosh PowerBook 520 M4880 Laptop - Clean / Untested / Parts
$50.00
3 Boxes-Vintage Apple Claris Macwrite MacPaint MacDraw - Sealed - NOS Rare 1988
$74.99
Vintage 1988 Apple Macintosh Plus 1MB M0001A Computer Keyboard WORKING See Video
$225.00