40 lines
608 B
Plaintext
40 lines
608 B
Plaintext
|
#!/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 N32xx board.
|
||
|
### END INIT INFO
|
||
|
|
||
|
case "$1" in
|
||
|
start)
|
||
|
echo -n "Setting up board... "
|
||
|
|
||
|
/usr/local/bin/n3248pxe_platform.sh init
|
||
|
|
||
|
echo "done."
|
||
|
;;
|
||
|
|
||
|
stop)
|
||
|
/usr/local/bin/n3248pxe_platform.sh deinit
|
||
|
echo "done."
|
||
|
|
||
|
;;
|
||
|
|
||
|
force-reload|restart)
|
||
|
echo "Not supported"
|
||
|
;;
|
||
|
|
||
|
*)
|
||
|
echo "Usage: /etc/init.d/platform-modules-n3248pxe.init {start|stop}"
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
exit 0
|