From a7209c5449edfc864eb5748fee3d58c96acd6ed3 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 19 Aug 2015 17:43:54 +0200 Subject: [PATCH] Fix ifquery error on Debian based OS like ubuntu In Ubuntu 12.04 ifquery don't have any option "-l" we need to pass --list instead. Debian 8 ifquery don't have this "-l" option. --- base_deb/etc/one-context.d/00-network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base_deb/etc/one-context.d/00-network b/base_deb/etc/one-context.d/00-network index 4ad31a3..f134272 100755 --- a/base_deb/etc/one-context.d/00-network +++ b/base_deb/etc/one-context.d/00-network @@ -209,7 +209,7 @@ deactivate_network() { . /etc/os-release if [ $ID = "ubuntu" ]; then - IFACES=`/sbin/ifquery -la` + IFACES=`/sbin/ifquery --list -a` for i in $IFACES; do if [ $i != 'lo' ]; then @@ -226,7 +226,7 @@ activate_network() { . /etc/os-release if [ $ID = "ubuntu" ]; then - IFACES=`/sbin/ifquery -la` + IFACES=`/sbin/ifquery --list -a` for i in $IFACES; do /sbin/ifup $i