[no ci] overlay: add rc.local capability (#964)

pull/967/head
gtxaspec 2023-08-22 04:20:47 -07:00 committed by GitHub
parent f42e67577d
commit c69052cc90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View File

@ -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 $?

View File

@ -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