mirror of https://github.com/OpenIPC/firmware.git
[no ci] overlay: add rc.local capability (#964)
parent
f42e67577d
commit
c69052cc90
|
@ -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 $?
|
|
@ -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
|
Loading…
Reference in New Issue