From 987cc20e486e5568031f77d04a85e3ca1b732377 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 1 Feb 2012 12:34:54 -0500 Subject: Allow for ifup-$TYPE/ifdown-$TYPE as well. This allows extending scripts without having to modifiy the case statement in network-functions each time. --- sysconfig/network-scripts/ifdown | 4 ++++ sysconfig/network-scripts/ifup | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index db045da4..f2c13086 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -58,6 +58,10 @@ fi OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-${DEVICETYPE}" if [ ! -x ${OTHERSCRIPT} ]; then + OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-${TYPE}" +fi + +if [ ! - x ${OTHERSCRIPT} ]; then OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-eth" fi diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index f2980b39..62564224 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -139,6 +139,10 @@ fi OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-${DEVICETYPE}" if [ ! -x ${OTHERSCRIPT} ]; then + OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-${TYPE}" +fi + +if [ ! - x ${OTHERSCRIPT} ]; then OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-eth" fi -- cgit v1.2.1