2016-10-27 20:02:32 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
function clean_up {
|
|
|
|
service rsyslog stop
|
|
|
|
}
|
|
|
|
|
|
|
|
start_bcm()
|
|
|
|
{
|
|
|
|
[ -e /dev/linux-bcm-knet ] || mknod /dev/linux-bcm-knet c 122 0
|
|
|
|
[ -e /dev/linux-user-bde ] || mknod /dev/linux-user-bde c 126 0
|
|
|
|
[ -e /dev/linux-kernel-bde ] || mknod /dev/linux-kernel-bde c 127 0
|
|
|
|
}
|
|
|
|
|
|
|
|
trap clean_up SIGTERM SIGKILL
|
|
|
|
|
2017-03-29 20:07:25 -05:00
|
|
|
rm -f /var/run/rsyslogd.pid
|
2016-10-27 20:02:32 -05:00
|
|
|
service rsyslog start
|
|
|
|
|
|
|
|
start_bcm
|
|
|
|
|
|
|
|
/usr/bin/saiserver -p /etc/sai/profile.ini -f /etc/sai/portmap.ini
|