From e956fb172d00dc564cc50f2a33a0feb9ddd53839 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 28 May 2003 18:53:50 +0000 Subject: - make usernetctl use the nickname instead of the device name - don't look in /etc/sysconfig/networking - fix calling of nameif before the device was loaded - clean up route handling () --- sysconfig/network-scripts/ifdown | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sysconfig/network-scripts/ifdown') 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 -- cgit