Hi,
I managaed to get a script to run at startup last night, You were right to look at /etc/init.d/bootup.
I didnt try the command you are trying to get working, I just tested with some other commands. For the sake of tidiness i created a new file to run the commands I wanted then added the path to that file in /etc/init.d/bootup. This is cleaner because you only have one line added to the /etc/init.d/bootup file and you can modify the newly created file to do whatever you want at a later stage.
Make a backup of /etc/init.d/bootup
Create a new file to run your commands.
Code:
touch /home/root/boot_script
Add a few lines to the file using your favourite application.
I used the following.
Code:
echo "this file was created at boot time on " > /tmp/boot_script_output
date >> /tmp/boot_script_output
Set the executable bit on the file.
Code:
chmod 755 /home/root/boot_script
Add the path to the script to a new line in /etc/init.d/bootup.
Code:
echo /home/root/boot_script >> /etc/init.d/bootup
Reboot the dreambox.
When the box has rebooted you should find a file called boot_script_output in the /tmp directory. Open it up, it should read something like
Code:
this file was created at boot time on
Fri May 23 11:04:14 IST 2008
Add your own commands to the /home/root/boot_script file. If you are still having trouble I would suggest you redirect the output of your commands to a file. That way you can see any errors that were generated e.g.
Code:
YourCommand >> /tmp/boot_script_output
To make sure your settings are not being overridden by something else in the boot sequence, just execute the script manually by typing the file path in at the command prompt. .
Code:
/home/root/boot_script
If running the script manually doesn't work then its not going to at boot.
Hope this helps.