2018-08-13 05:31:11 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
### BEGIN INIT INFO
|
|
|
|
# Provides: setup-board
|
|
|
|
# Required-Start:
|
|
|
|
# Required-Stop:
|
|
|
|
# Should-Start:
|
|
|
|
# Should-Stop:
|
|
|
|
# Default-Start: S
|
|
|
|
# Default-Stop: 0 6
|
|
|
|
# Short-Description: Setup S6000 board.
|
|
|
|
### END INIT INFO
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2019-07-24 14:15:46 -05:00
|
|
|
echo -n "Setting up board... "
|
2018-08-13 05:31:11 -05:00
|
|
|
|
2019-07-24 14:15:46 -05:00
|
|
|
/usr/local/bin/s6000_platform.sh init
|
2018-08-13 05:31:11 -05:00
|
|
|
|
2019-07-24 14:15:46 -05:00
|
|
|
echo "done."
|
|
|
|
;;
|
2018-08-13 05:31:11 -05:00
|
|
|
|
|
|
|
stop)
|
2019-07-24 14:15:46 -05:00
|
|
|
/usr/local/bin/s6000_platform.sh deinit
|
|
|
|
echo "done."
|
2018-08-13 05:31:11 -05:00
|
|
|
|
2019-07-24 14:15:46 -05:00
|
|
|
;;
|
2018-08-13 05:31:11 -05:00
|
|
|
|
|
|
|
force-reload|restart)
|
2019-07-24 14:15:46 -05:00
|
|
|
echo "Not supported"
|
|
|
|
;;
|
2018-08-13 05:31:11 -05:00
|
|
|
|
|
|
|
*)
|
2019-07-24 14:15:46 -05:00
|
|
|
echo "Usage: /etc/init.d/platform-modules-s6000.init {start|stop}"
|
|
|
|
exit 1
|
|
|
|
;;
|
2018-08-13 05:31:11 -05:00
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|