From 40ecc9bedb8b80aea208404be2c9eb23fa52ff55 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Wed, 8 Sep 1999 20:14:38 +0000 Subject: make ifdown synchronous modulo timeout --- sysconfig/network-scripts/ifup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 64309d5b..3a979c91 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -21,7 +21,9 @@ CONFIG=$1 if [ $UID != 0 ]; then if [ -x /usr/sbin/usernetctl ]; then - exec /usr/sbin/usernetctl $CONFIG up + if /usr/sbin/usernetctl $CONFIG report ; then + exec /usr/sbin/usernetctl $CONFIG up + fi fi echo "Users cannot control this device." >&2 exit 1 -- cgit