2017-05-08 17:43:31 -05:00
|
|
|
#!/usr/bin/env bash
|
2016-07-26 14:01:58 -05:00
|
|
|
|
2017-06-20 18:37:07 -05:00
|
|
|
PLATFORM_DIR=/usr/share/sonic/platform
|
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
rm -f /var/run/rsyslogd.pid
|
2016-09-09 19:53:41 -05:00
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
supervisorctl start rsyslogd
|
2016-09-09 19:53:41 -05:00
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
supervisorctl start syncd
|
2016-09-09 19:53:41 -05:00
|
|
|
|
2017-06-20 18:37:07 -05:00
|
|
|
# If this platform has an initialization file for the Broadcom LED microprocessor, load it
|
|
|
|
if [ -r ${PLATFORM_DIR}/led_proc_init.soc ]; then
|
2017-06-21 20:53:28 -05:00
|
|
|
# Wait until syncd has created the socket for bcmcmd to connect to
|
|
|
|
while true; do
|
|
|
|
if [ -e /var/run/sswsyncd/sswsyncd.socket ]; then
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
|
2017-06-20 18:37:07 -05:00
|
|
|
/usr/bin/bcmcmd -t 60 "rcload ${PLATFORM_DIR}/led_proc_init.soc"
|
|
|
|
fi
|
|
|
|
|