2017-03-16 12:40:33 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-03-29 20:07:25 -05:00
|
|
|
rm -f /var/run/rsyslogd.pid
|
|
|
|
service rsyslog start
|
|
|
|
|
2017-03-16 12:40:33 -05:00
|
|
|
VLAN_IFACE_NAME=`sonic-cfggen -m /etc/sonic/minigraph.xml -v "minigraph_vlan_interfaces[0]['name']"`
|
|
|
|
|
|
|
|
# Wait for the VLAN to come up (i.e., 'ip link show' returns 0)
|
|
|
|
until ip link show $VLAN_IFACE_NAME > /dev/null 2>&1; do
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
|
|
|
|
# Start the DHCP relay
|
|
|
|
service isc-dhcp-relay start
|
|
|
|
|