Kill dhclient when reconfig interfaces (#683)
This commit is contained in:
parent
a7de6ebe24
commit
cefd024c26
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sonic-cfggen -m /etc/sonic/minigraph.xml -t /usr/share/sonic/templates/interfaces.j2 >/etc/network/interfaces
|
sonic-cfggen -m /etc/sonic/minigraph.xml -t /usr/share/sonic/templates/interfaces.j2 >/etc/network/interfaces
|
||||||
|
[ -f /var/run/dhclient.eth0.pid ] && kill `cat /var/run/dhclient.eth0.pid` && rm -f /var/run/dhclient.eth0.pid
|
||||||
service networking restart
|
service networking restart
|
||||||
ifdown lo && ifup lo
|
ifdown lo && ifup lo
|
||||||
|
Reference in New Issue
Block a user