install startup scripts - SOLVED
Posted: 13. Oct 2010, 12:48
This is more a request for some kind help than a problem as such. My research suggested that putting a line in /etc/rc.d/rc.local could be a good way to get Salix to run a script on every boot, but it didn't work:
The little one-line script itself works perfectly, helping me get along with a keyboard missing a backspace key. Of course, I wouldn't expect to have to do anything to rc.local if it does indeed run during boot. But I was just testing.
I imagine I haven't been going about this the right way - and would be very grateful for any pointers. It'd be useful for all sorts of things to know how to add automatic actions at boot, not just my dodgy keyboard.
Btw I read the help file in /etc/init.d, so I know that isn't the right place to put this sort of thing, but that surely isn't important for the problem at hand.
Code: Select all
bash: rc.local: command not found
root[rc.d]# cat rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
# swap functions of delete and backspace keys
/etc/init.d/swap_delete_bksp.sh
root[rc.d]# chmod +x rc.local
root[rc.d]# rc.local
bash: rc.local: command not found
I imagine I haven't been going about this the right way - and would be very grateful for any pointers. It'd be useful for all sorts of things to know how to add automatic actions at boot, not just my dodgy keyboard.
Btw I read the help file in /etc/init.d, so I know that isn't the right place to put this sort of thing, but that surely isn't important for the problem at hand.