Merge pull request #16 from puppetmaster/fix-ifquery-error

Fix ifquery error on Debian based OS like ubuntu
pull/20/head
Javi Fontan 9 years ago
commit ef7ccabe3a

@ -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

Loading…
Cancel
Save