PDA

View Full Version : knoppix.sh can't execute bash in the boot sequence?



slowhand
03-16-2005, 12:29 PM
Hi, I remastered my knoppix, but when I try to create my own simple knoppix.sh, only the last line works (resolv.conf), but I can't configure the network with the instructions of my script (ifconfig and route don't work).
I read the problem's cause is in the boot sequence, when knoppix.sh is executed, the system can't execute bash, X, .... cause they doesn't load.

my knoppix.sh looks like:
---------------------------------------
#!/bin/bash
ifconfig 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255
route add default gw 192.168.0.1
echo "nameserver 194.179.1.100" >> /etc/resolv.conf
---------------------------------------

Any idea for run a script same my knoppix.sh in the boot sequence?
Thanks and sorry for my english.
Adri

Gromit
04-17-2005, 10:48 PM
hi,
I put a script like yours in the CD root and a symlink in /etc/rc5.d to this script (you have to remaster!)
If you want to edit your script later you don't need to remaster again!
Cheers