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.