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() activate_network()
{ {
. /etc/os-release IFACES=`/sbin/ifquery --list -a`
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
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 [ -z "$(env | cut -d= -f1 | grep -E '^ETH[0-9]+_IPV*6*')" ] && exit 0

Loading…
Cancel
Save