Hello all,
I have to delay the boot process of my Pi (OSMC version 2016.10-2 ) for other components in the network have to be ready first and are booting slower than the Pi.
My plan so far was simply adding a sleep to the rc.local to delay the boot for some amount of time:
#!/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.
echo "Delay boot ...."
sleep 120
echo "Continue booting ..."
exit 0
I think that the execution bits are set correctly:
-rwxr-xr-x 1 root root rc.local
But once the Pi boots, the script seems to be ignored as it quickly boots as normal without delay. Executing the rc.local manually works as expected.
What am I missing here? Thanks for any suggestions!