sonic-buildimage/dockers/docker-saiserver-brcm/start.sh

22 lines
446 B
Bash
Raw Normal View History

#!/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
rm -f /var/run/rsyslogd.pid
service rsyslog start
start_bcm
/usr/bin/saiserver -p /etc/sai/profile.ini -f /etc/sai/portmap.ini