From 63f481e11c477308ebb689398bacdd1c7b24fa85 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Wed, 17 Aug 2016 14:48:06 +0200 Subject: [PATCH] gh-50: use ifup to configure interfaces in debian --- base_deb.one/etc/one-context.d/10-network | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/base_deb.one/etc/one-context.d/10-network b/base_deb.one/etc/one-context.d/10-network index fd3777e..28a84e9 100755 --- a/base_deb.one/etc/one-context.d/10-network +++ b/base_deb.one/etc/one-context.d/10-network @@ -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