f01076ea2a
Why I did it Added Support for Dell EMC S5212f platform How I did it Implemented the support for Dell EMC S5212f platform Platform: x86_64-dellemc_s5212f_c3538-r0 HwSKU: DellEMC-S5212f-P-25G ASIC: broadcom ASIC Count: 1 How to verify it Verified the show command outputs
41 lines
640 B
Bash
Executable File
41 lines
640 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 S5212f board.
|
|
### END INIT INFO
|
|
|
|
case "$1" in
|
|
start)
|
|
echo -n "Setting up board... "
|
|
|
|
# /usr/local/bin/iom_power_on.sh
|
|
/usr/local/bin/s5212f_platform.sh init
|
|
|
|
echo "done."
|
|
;;
|
|
|
|
stop)
|
|
/usr/local/bin/s5212f_platform.sh deinit
|
|
echo "done."
|
|
|
|
;;
|
|
|
|
force-reload|restart)
|
|
echo "Not supported"
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: /etc/init.d/platform-modules-s5212f.init {start|stop}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|