aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnetwork-scripts/ifdown2
-rwxr-xr-xnetwork-scripts/ifup2
2 files changed, 2 insertions, 2 deletions
diff --git a/network-scripts/ifdown b/network-scripts/ifdown
index ec05891d..ceba9bab 100755
--- a/network-scripts/ifdown
+++ b/network-scripts/ifdown
@@ -47,7 +47,7 @@ then
exit 0
fi
-if [ "$_use_nm" = "true" ]; then
+if is_true "$_use_nm"; then
if [ -n "$UUID" -a -z "$DEVICE" ]; then
DEVICE=$(nmcli -t --fields uuid,device con show --active | awk -F ':' "\$1 == \"$UUID\" { print \$2 }")
fi
diff --git a/network-scripts/ifup b/network-scripts/ifup
index 9c1380bb..5aac4c9f 100755
--- a/network-scripts/ifup
+++ b/network-scripts/ifup
@@ -71,7 +71,7 @@ then
exit 0
fi
-if [ "$_use_nm" = "true" -a -n "$UUID" -a "$REALDEVICE" != "lo" ]; then
+if is_true "$_use_nm" && [ -n "$UUID" ] && [ "$REALDEVICE" != "lo" ]; then
if [ "foo$2" = "fooboot" ] && [ "${TYPE}" = "Wireless" ]; then
exit 0
fi