From 84c74542168374f2f6417f1cf6ef9e2f8680f463 Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Tue, 28 Jul 2020 11:05:19 +0200 Subject: network-functions: make use of is_true and is_false in our customizations --- network-scripts/network-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network-scripts/network-functions b/network-scripts/network-functions index 2d95cfcf..9cb659d1 100755 --- a/network-scripts/network-functions +++ b/network-scripts/network-functions @@ -469,7 +469,7 @@ check_device_down () check_link_down () { - if [ "${MII_NOT_SUPPORTED}" = yes ]; then + if is_true "${MII_NOT_SUPPORTED}"; then return 1 fi if ! LC_ALL=C ip link show dev $1 2>/dev/null| grep -q ",UP" ; then -- cgit v1.2.1