diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1999-09-08 20:14:38 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1999-09-08 20:14:38 +0000 |
commit | 40ecc9bedb8b80aea208404be2c9eb23fa52ff55 (patch) | |
tree | d171e3319033fae76fe800e9bd4f3a1a04392916 /sysconfig/network-scripts/ifup | |
parent | 8f705efdedc37e43620b8ec88f9b156f85a1f2d0 (diff) | |
download | initscripts-40ecc9bedb8b80aea208404be2c9eb23fa52ff55.tar initscripts-40ecc9bedb8b80aea208404be2c9eb23fa52ff55.tar.gz initscripts-40ecc9bedb8b80aea208404be2c9eb23fa52ff55.tar.bz2 initscripts-40ecc9bedb8b80aea208404be2c9eb23fa52ff55.tar.xz initscripts-40ecc9bedb8b80aea208404be2c9eb23fa52ff55.zip |
make ifdown synchronous modulo timeout
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 4 |
1 files changed, 3 insertions, 1 deletions
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 |