Skip to content

Commit cefd024

Browse files
taoyl-mslguohan
authored andcommitted
Kill dhclient when reconfig interfaces (#683)
1 parent a7de6eb commit cefd024

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

33
sonic-cfggen -m /etc/sonic/minigraph.xml -t /usr/share/sonic/templates/interfaces.j2 >/etc/network/interfaces
4+
[ -f /var/run/dhclient.eth0.pid ] && kill `cat /var/run/dhclient.eth0.pid` && rm -f /var/run/dhclient.eth0.pid
45
service networking restart
56
ifdown lo && ifup lo

0 commit comments

Comments
 (0)