sonic-buildimage/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-z9100.init
Guohan Lu 9047edc38e [platform]: move dell platform modules into buildimage repo
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-13 10:39:07 +00:00

41 lines
636 B
Bash
Executable File

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