aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-aliases
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/network-scripts/ifup-aliases
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/network-scripts/ifup-aliases')
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases5
1 files changed, 3 insertions, 2 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