diff options
Diffstat (limited to 'sysconfig/network-scripts/ifup-aliases')
-rwxr-xr-x | sysconfig/network-scripts/ifup-aliases | 5 |
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 |