sonic-buildimage/files/image_config/interfaces/interfaces-config.sh

10 lines
263 B
Bash
Raw Normal View History

#!/bin/bash
sonic-cfggen -d -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
systemctl restart networking
ifdown lo && ifup lo