[interfaces]: Restart networking service after the file is updated (#430)

Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
This commit is contained in:
Shuotian Cheng 2017-03-23 16:30:18 -07:00 committed by GitHub
parent e2cc409f8a
commit 5150ed55c7

View File

@ -1,6 +1,4 @@
#!/bin/bash
sonic-cfggen -m /etc/sonic/minigraph.xml -t /usr/share/sonic/templates/interfaces.j2 >/etc/network/interfaces
ifdown eth0 && ifup eth0
ifdown lo && ifup lo
service networking restart