--- /etc/ifplugd/netcfg.action 2009-11-15 01:19:50.000000000 +0100 +++ netcfg.action 2009-11-15 18:57:04.993644638 +0100 @@ -1,10 +1,11 @@ -#!/bin/sh +#!/bin/bash # # ifplugd.action script for netcfg . /etc/rc.conf . /etc/rc.d/functions . /usr/lib/network/network +shopt -s extglob case "$2" in up) @@ -20,10 +21,10 @@ netcfg $profile && exit 0 fi ) done - for profile in $(list profiles}; do ( + for profile in $(list_profiles); do ( load_profile $profile [[ $INTERFACE != $1 ]] && continue - [[ $CONNECTION != "(ethernet|ethernet-iproute)" ]] && continue + [[ $CONNECTION != @(ethernet|ethernet-iproute) ]] && continue netcfg $profile && exit 0 ) done exit 1