diff --git a/ifup.sh b/ifup.sh index 1a118bc..1ea12a0 100755 --- a/ifup.sh +++ b/ifup.sh @@ -97,7 +97,7 @@ recupParams(){ echo "Erreur: le paramètre \"#VLAN=votreVLAN\" est manquant." exit 1 fi - elif [[ $(ls /run/network/ | sed -e "s/ifstate//g" -e "s/^.//" -e "/^$/d" -e "/^lo$/d" | grep "${val_param}" 2> /dev/null) ]]; then + elif [[ $(find /sys/class/net/ -type l ! -lname '*/devices/virtual/net/*' -printf '%f ' | grep "${val_param}" 2> /dev/null) ]]; then pont_init=0 vlan_init=0 ieee8021q_init=0