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/ifup | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysconfig/network-scripts/ifup') 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 From a54ce5d02861745ffcf5dbc6409950a22c7c65a2 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 12 Mar 2012 10:03:14 -0400 Subject: Fix typo. (#802055, ) --- sysconfig/network-scripts/ifup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 62564224..f5ac0fe0 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -142,7 +142,7 @@ if [ ! -x ${OTHERSCRIPT} ]; then OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-${TYPE}" fi -if [ ! - x ${OTHERSCRIPT} ]; then +if [ ! -x ${OTHERSCRIPT} ]; then OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-eth" fi -- cgit v1.2.1 From d1256a2ab6187b2c8696b25697f41a87c736de1b Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 30 Apr 2012 14:03:50 -0400 Subject: Rename internal tracking variable USE_NM to _use_nm, to more clearly state it's not for configuration use. --- sysconfig/network-scripts/ifup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index f5ac0fe0..6534f5a1 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -65,7 +65,7 @@ then exit 0 fi -if [ "$USE_NM" = "true" -a -n "$UUID" ]; then +if [ "$_use_nm" = "true" -a -n "$UUID" ]; then nmcli con up uuid "$UUID" exit $? fi -- cgit v1.2.1