Bladeren bron

Changed: check of network interface presence

Laurent HUBERT 9 maanden geleden
bovenliggende
commit
3b8c706fed
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 4 3
      scripts/lfirewall

+ 4 - 3
scripts/lfirewall

@@ -239,10 +239,11 @@ if [ -f $CONFIGURATION_LOCAL_FILE ] ; then
 	set -u
 fi
 
-
-if ! /usr/sbin/ifup --no-act $NETWORK_IF > /dev/null 2>&1
+# Should I disable this ?
+# I think I should... but will the 
+if ! ip link show $NETWORK_IF > /dev/null 2>&1
 then
-	echo "Network interface '$NETWORK_IF' is not present or configured" >&2
+	echo "Network interface '$NETWORK_IF' is not present" >&2
 	exit 2
 fi