2018-03-01 04:14:26 -06:00
|
|
|
#!/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 ag9064 board.
|
|
|
|
### END INIT INFO
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
echo -n "Setting up board... "
|
|
|
|
depmod -a
|
|
|
|
rmmod i2c-i801
|
|
|
|
rmmod i2c-ismt
|
|
|
|
modprobe i2c-dev
|
|
|
|
modprobe i2c-i801
|
|
|
|
modprobe i2c-ismt
|
|
|
|
modprobe i2c-mei
|
|
|
|
modprobe i2c-mux-pca954x
|
|
|
|
modprobe at24
|
2018-03-17 18:43:14 -05:00
|
|
|
modprobe ipmi_devintf
|
|
|
|
modprobe ipmi_si trydefaults=1
|
2018-03-01 04:14:26 -06:00
|
|
|
modprobe delta_ag9064_platform
|
2018-03-23 12:45:01 -05:00
|
|
|
modprobe delta_ag9064_cpld
|
|
|
|
modprobe delta_ag9064_swpld
|
2018-03-01 04:14:26 -06:00
|
|
|
|
|
|
|
/usr/local/bin/ag9064_platform_init.sh
|
|
|
|
|
|
|
|
echo "done."
|
|
|
|
;;
|
|
|
|
|
|
|
|
stop)
|
|
|
|
echo "done."
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
force-reload|restart)
|
|
|
|
echo "Not supported"
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "Usage: /etc/init.d/platform-modules-ag9064.init {start|stop}"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|