diff options
author | Bill Nottingham <notting@redhat.com> | 2003-05-28 18:53:50 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-05-28 18:53:50 +0000 |
commit | e956fb172d00dc564cc50f2a33a0feb9ddd53839 (patch) | |
tree | 8316038834ff51a4d745dd867b4535ca94ea94b5 /sysconfig/network-scripts/ifdown | |
parent | 515094b273406277de12adc648846435e27ce389 (diff) | |
download | initscripts-e956fb172d00dc564cc50f2a33a0feb9ddd53839.tar initscripts-e956fb172d00dc564cc50f2a33a0feb9ddd53839.tar.gz initscripts-e956fb172d00dc564cc50f2a33a0feb9ddd53839.tar.bz2 initscripts-e956fb172d00dc564cc50f2a33a0feb9ddd53839.tar.xz initscripts-e956fb172d00dc564cc50f2a33a0feb9ddd53839.zip |
- 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
(<harald@redhat.com>)
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 5 |
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 |