1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-09-28 08:13:06 +02:00
cdf2018-principal/raspberrypi/board/robotech/cdfprincipal/rootfs_overlay/etc/init.d/S90extra

38 lines
421 B
Plaintext
Raw Normal View History

2018-02-07 17:57:01 +01:00
#!/bin/sh
#
# Start extra services when not in debug mode
#
start() {
printf "Starting extra services: "
2018-04-04 16:17:13 +02:00
# if ! /opt/cdf/bin/testpin 0 1
# then
2018-02-07 17:57:01 +01:00
/etc/extra.d/rcS
2018-04-04 16:17:13 +02:00
# fi
2018-02-07 17:57:01 +01:00
echo "OK"
}
stop() {
printf "Stopping extra services: "
/etc/extra.d/rcK
echo "OK"
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?