96636e2124
* [device/accton]: Update Accton-AS7712-32X * Add Broadcom LED microprocessor / pre-emphasis initialization Signed-off-by: polly_hsu@accton.com * Update start.sh * Update start.sh * [device/accton]: Update Accton-AS7712-32X * Add Broadcom LED microprocessor (Remove pre-emphasis initialization) Signed-off-by: polly_hsu@accton.com
26 lines
601 B
Bash
Executable File
26 lines
601 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
PLATFORM_DIR=/usr/share/sonic/platform
|
|
|
|
rm -f /var/run/rsyslogd.pid
|
|
|
|
supervisorctl start rsyslogd
|
|
|
|
supervisorctl start syncd
|
|
|
|
# Function: wait until syncd has created the socket for bcmcmd to connect to
|
|
wait_syncd() {
|
|
while true; do
|
|
if [ -e /var/run/sswsyncd/sswsyncd.socket ]; then
|
|
break
|
|
fi
|
|
sleep 1
|
|
done
|
|
}
|
|
|
|
# If this platform has an initialization file for the Broadcom LED microprocessor, load it
|
|
if [ -r ${PLATFORM_DIR}/led_proc_init.soc ]; then
|
|
wait_syncd
|
|
/usr/bin/bcmcmd -t 60 "rcload ${PLATFORM_DIR}/led_proc_init.soc"
|
|
fi
|