I have the following rc.local
script:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sh /home/incero/startup_script.sh
/bin/chmod +x /script.sh
sh /script.sh
exit 0
The first line, startup_script.sh
actually downloads the script.sh
file to /script.sh
referred to in the third line.
Unfortunately, it appears that it is not making the script executeable or running the script. Running the rc.local
file manually after having started works perfectly. Can chmod not be run at startup or something?