aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases5
-rwxr-xr-xsysconfig/network-scripts/ifup-post2
2 files changed, 4 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 40d27f7d..65e97e55 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -62,12 +62,14 @@ TEXTDOMAIN=initscripts
device=$1
if [ "$device" = "" ]; then
- echo $"usage: ifup-aliases <net-device>\n"
+ echo $"usage: ifup-aliases <net-device> [<parent-config>]\n"
exit 1
fi
+PARENTCONFIG=${2:-ifcfg-$device}
parent_device=$device
+cd /etc/sysconfig/network-scripts
. network-functions
#
@@ -102,7 +104,6 @@ eval ` (
) `
# read defaults from the parent config file
-PARENTCONFIG=ifcfg-$device
[ -f $PARENTCONFIG ] || {
echo $"Missing config file $PARENTCONFIG." >&2
exit 1
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index 86e69544..09734aee 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -15,7 +15,7 @@ else
fi
if [ "$ISALIAS" = no ] ; then
- /etc/sysconfig/network-scripts/ifup-aliases ${DEVICE}
+ /etc/sysconfig/network-scripts/ifup-aliases ${DEVICE} ${CONFIG}
fi
/etc/sysconfig/network-scripts/ifup-routes ${DEVICE}