USB booting :: usb boot without ramdisk
I've got another little question. I think it's to little to open a topic for it.
Is it possible to make a script run when you boot? I tried serveral things, but I didn't got it working.. Is there a place you can put your scripts or link to your script that it works?
I know it is a really noobie question But when I put the script in the init.d directory it is gone when I reboot...
On booting, you can add a command in /opt/bootlocal.sh, and put the script file in /home/dsl or /opt.
In Fluxbox, you can add a command in /home/dsl/.xinitrc
Thanx, that is just what I needed to know
For the people who want to know. I eventually put the script I wanted to start in the file .bash_profile in the home directory. This because I wanted to use a command that only is supported on the moment you are singed in as an user and your tty is /dev/tty1 (when I put the script in bootlocal.sh the tty was /dev/console).
The .bash_profile file is normally used to start x. I replaced the commando 'startx' in the file with my script path and name.
I hope there is someone out there who finds this information usefull...
original here.