gh-50: use ifup to configure interfaces in debian

pull/58/head
Javi Fontan 8 years ago
parent c9a384b3a3
commit 63f481e11c

@ -258,20 +258,11 @@ deactivate_network()
activate_network()
{
. /etc/os-release
if [ $ID = "ubuntu" ]; then
IFACES=`/sbin/ifquery --list -a`
for i in $IFACES; do
/sbin/ifup $i
done
else
service networking stop
sleep 1
service networking start
fi
IFACES=`/sbin/ifquery --list -a`
sleep 2
for i in $IFACES; do
/sbin/ifup $i
done
}
[ -z "$(env | cut -d= -f1 | grep -E '^ETH[0-9]+_IPV*6*')" ] && exit 0

Loading…
Cancel
Save