diff --git a/general/overlay/etc/init.d/S99rc.local b/general/overlay/etc/init.d/S99rc.local new file mode 100755 index 00000000..84a48f86 --- /dev/null +++ b/general/overlay/etc/init.d/S99rc.local @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Start rc.local +# + + +start() { + printf "Starting rc.local" + /etc/rc.local +} + +restart() { + printf "Restarting rc.local" + /etc/rc.local +} + +case "$1" in + start) + "$1" + ;; + + restart|reload) + start + ;; + + *) + echo "Usage: $0 {start|restart|reload}" + exit 1 + ;; +esac + +exit $? diff --git a/general/overlay/etc/rc.local b/general/overlay/etc/rc.local new file mode 100755 index 00000000..65634dfa --- /dev/null +++ b/general/overlay/etc/rc.local @@ -0,0 +1,14 @@ +#!/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. + +exit 0