From 6dccfc356f3517e9d0125d64c485f6b21e1990e1 Mon Sep 17 00:00:00 2001 From: ycharbi Date: Sun, 9 Jun 2024 18:31:22 +0200 Subject: [PATCH] =?UTF-8?q?Changement=20de=20la=20m=C3=A9thode=20permettan?= =?UTF-8?q?t=20de=20passer=20une=20interface=20physique=20au=20conteneur.?= =?UTF-8?q?=20La=20technique=20utilis=C3=A9e=20via=20/run/network=20ne=20f?= =?UTF-8?q?onctionne=20plus=20depuis=20Debian=2011.=20/sys/class/net/=20es?= =?UTF-8?q?t=20d=C3=A9sormait=20utilis=C3=A9=20via=20un=20find=20trouv?= =?UTF-8?q?=C3=A9=20dans=20le=20commentaire=20https://stackoverflow.com/qu?= =?UTF-8?q?estions/36976302/how-to-find-physical-interfaces-on-linux-witho?= =?UTF-8?q?ut-bridges-aliases-vlans#answer-56204180?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ifup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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