mirror of https://github.com/OpenIPC/firmware.git
35 lines
355 B
Bash
Executable File
35 lines
355 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Start rc.local
|
|
#
|
|
|
|
|
|
start() {
|
|
echo "Starting rc.local"
|
|
/etc/rc.local
|
|
}
|
|
|
|
restart() {
|
|
echo "Restarting rc.local"
|
|
/etc/rc.local
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
"$1"
|
|
;;
|
|
|
|
restart|reload)
|
|
start
|
|
;;
|
|
stop)
|
|
# Intentionally left blank, no need to stop rc.local
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart|reload}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit $?
|