aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts/network-functions
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-07-28 11:05:19 +0200
committerOlav Vitters <olav@vitters.nl>2020-07-28 11:05:19 +0200
commit84c74542168374f2f6417f1cf6ef9e2f8680f463 (patch)
tree044ce434bff626d53de510d4adb328ed02f678c2 /network-scripts/network-functions
parent37a78367b03f77b618c65085accadf2643779379 (diff)
downloadinitscripts-84c74542168374f2f6417f1cf6ef9e2f8680f463.tar
initscripts-84c74542168374f2f6417f1cf6ef9e2f8680f463.tar.gz
initscripts-84c74542168374f2f6417f1cf6ef9e2f8680f463.tar.bz2
initscripts-84c74542168374f2f6417f1cf6ef9e2f8680f463.tar.xz
initscripts-84c74542168374f2f6417f1cf6ef9e2f8680f463.zip
network-functions: make use of is_true and is_false in our customizations
Diffstat (limited to 'network-scripts/network-functions')
-rwxr-xr-xnetwork-scripts/network-functions2
1 files changed, 1 insertions, 1 deletions
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