This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/platform/broadcom/sonic-platform-modules-accton/debian/platform-modules-as7712-32x.init
Polly Hsu c1c8a122be [Accton]: Add a new supported device and platform, AS7712-32X (#662)
* platform/broadcom: Add a new supported device and platform, AS7712-32X

* Switch Vendor: Edge-core
* Switch SKU:  AS7712-32X
* ASIC Vendor: Broadcom
* Swich ASIC: Tomahawk
* Port Configuration: 32x100G
* SONiC Image: SONiC-ONIE-Broadcom

  Signed-off-by: polly_hsu@accton.com
2017-06-15 10:33:42 -07:00

45 lines
743 B
Bash

#!/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 AS7712-32X board.
### END INIT INFO
case "$1" in
start)
echo -n "Setting up board... "
modprobe i2c_dev
modprobe i2c_mux_pca954x
modprobe accton_i2c_cpld
modprobe accton_as7712_32x_fan
modprobe accton_as7712_32x_sfp
modprobe leds-accton_as7712_32x
modprobe accton_as7712_32x_psu
echo "done."
;;
stop)
echo "done."
;;
force-reload|restart)
echo "Not supported"
;;
*)
echo "Usage: /etc/init.d/platform-modules-as7712-32x.init {start|stop}"
exit 1
;;
esac
exit 0