aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 6f1be524..9493a24c 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -6,7 +6,6 @@ cd /etc/sysconfig/network-scripts
. network-functions
[ -f ../network ] && . ../network
-[ -f ../networking/network ] && . ../networking/network
CONFIG=$1
@@ -25,8 +24,8 @@ need_config $CONFIG
if [ $UID != 0 ]; then
if [ -x /usr/sbin/usernetctl ]; then
source_config
- if /usr/sbin/usernetctl ${DEVICE} report ; then
- exec /usr/sbin/usernetctl ${DEVICE} down
+ if /usr/sbin/usernetctl ${CONFIG} report ; then
+ exec /usr/sbin/usernetctl ${CONFIG} down
fi
fi
echo $"Users cannot control this device." >&2