From fa8a602cfeeb757a2117e4e1ad3d2717e69d34ff Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Tue, 28 Jul 2020 10:50:53 +0200 Subject: network-up: make use of is_true and is_false in our customizations --- mandriva/network-up | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mandriva/network-up b/mandriva/network-up index 18551414..d77b2137 100755 --- a/mandriva/network-up +++ b/mandriva/network-up @@ -24,7 +24,7 @@ RESOLVCONF_DIR=/var/run/resolvconf/interface . /etc/sysconfig/network # Check that networking is up. -[ "${NETWORKING}" = "no" ] && exit 0 +is_false "${NETWORKING}" && exit 0 cd /etc/sysconfig/network-scripts . network-functions @@ -88,7 +88,7 @@ function should_wait_network() { # only check interfaces using ifplug, other interfaces are # started synchronously from the network service - if [ "$MII_NOT_SUPPORTED" = "yes" ]; then + if is_true "$MII_NOT_SUPPORTED"; then continue fi @@ -143,7 +143,7 @@ function should_wait_network() { # wait for changes to be propagated by resolvconf if needed if [ -e $RESOLVCONF_FLAGFILE ]; then - if [ "$BOOTPROTO" = "dhcp" -a "$PEERDNS" != "no" ] \ + if [ "$BOOTPROTO" = "dhcp" ] && ! is_false "$PEERDNS" \ || [ -n "$DNS1" -o -n "$DNS2" ]; then if [ ! -e $RESOLVCONF_DIR/$DEVICE ]; then return 0 -- cgit v1.2.1