aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts/ifup
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2020-03-05 16:18:14 +0100
committerLukáš Nykrýn <lnykryn@redhat.com>2020-03-09 15:52:50 +0100
commit28dddb9c38a511276b239bf302830ede554aa420 (patch)
tree6e0db66a48446005729c5a8d9410febfa36d9489 /network-scripts/ifup
parent5fca0facd3acceba4030726720efb71e6e924682 (diff)
downloadinitscripts-28dddb9c38a511276b239bf302830ede554aa420.tar
initscripts-28dddb9c38a511276b239bf302830ede554aa420.tar.gz
initscripts-28dddb9c38a511276b239bf302830ede554aa420.tar.bz2
initscripts-28dddb9c38a511276b239bf302830ede554aa420.tar.xz
initscripts-28dddb9c38a511276b239bf302830ede554aa420.zip
Use function is_true for testing true conditions
Diffstat (limited to 'network-scripts/ifup')
-rwxr-xr-xnetwork-scripts/ifup2
1 files changed, 1 insertions, 1 deletions
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