aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2001-11-19 10:17:58 +0000
committerHarald Hoyer <harald@redhat.com>2001-11-19 10:17:58 +0000
commit70d1d57a2214ecc45344ea112f45f1ec47312523 (patch)
tree0374cf820d90c22b5139bac792edfdf5dc7b7bf8 /sysconfig
parentdfb8ca5fb5407de11942bc49bf0c2139b53b84a0 (diff)
downloadinitscripts-70d1d57a2214ecc45344ea112f45f1ec47312523.tar
initscripts-70d1d57a2214ecc45344ea112f45f1ec47312523.tar.gz
initscripts-70d1d57a2214ecc45344ea112f45f1ec47312523.tar.bz2
initscripts-70d1d57a2214ecc45344ea112f45f1ec47312523.tar.xz
initscripts-70d1d57a2214ecc45344ea112f45f1ec47312523.zip
better nickname handling
Diffstat (limited to 'sysconfig')
-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}