sonic-buildimage/platform/broadcom/sonic-platform-modules-mitac/debian/sonic-platform-mitac-ly1200-32x.init

52 lines
921 B
Plaintext
Raw Normal View History

#!/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 ly1200-32x board.
### END INIT INFO
case "$1" in
start)
echo -n "Setting up board... "
echo 0 > /proc/sys/kernel/perf_cpu_time_max_percent
/etc/init.d/gpe start
/etc/init.d/i2c_init start
/etc/init.d/sys_polld start
/opt/script/start_watchdog.sh &
/opt/script/start_service.sh &
echo "done."
;;
stop)
echo -n "cleaning... "
/etc/init.d/gpe stop
/etc/init.d/i2c_init stop
/etc/init.d/xcvr_servd stop
/etc/init.d/sys_servd stop
/etc/init.d/sys_polld stop
echo "done."
;;
force-reload|restart)
echo "Not supported"
;;
*)
echo "Usage: /etc/init.d/sonic-platform-mitac-ly1200-32x.init {start|stop}"
exit 1
;;
esac
exit 0