aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1998-11-10 16:26:05 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1998-11-10 16:26:05 +0000
commit246f59248128f19c333ab44ad5398ea333a4f838 (patch)
tree59a0b475c0c6ef3ee8ed3bb7123caad9a389bf06 /sysconfig/network-scripts
parentea97e28d7dcaa3c1cca11dd1dc9171fc0444a272 (diff)
downloadinitscripts-246f59248128f19c333ab44ad5398ea333a4f838.tar
initscripts-246f59248128f19c333ab44ad5398ea333a4f838.tar.gz
initscripts-246f59248128f19c333ab44ad5398ea333a4f838.tar.bz2
initscripts-246f59248128f19c333ab44ad5398ea333a4f838.tar.xz
initscripts-246f59248128f19c333ab44ad5398ea333a4f838.zip
linuxconf ipalias fix; work with both old and new linuxconfr3-79
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases10
1 files changed, 8 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 39233819..8021a3dc 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -12,10 +12,16 @@ if [ -x /bin/linuxconf ] ; then
# add <device> <ip>
# del <device>
# reload <number_of_aliases>
- linuxconf --hint ipalias $1 | while read verb arg1 arg2 ; do
+ linuxconf --hint ipalias $1 | while read verb arg1 arg2 arg3 arg4; do
case $verb in
add)
- /sbin/ifconfig $arg1 $arg2
+ if [ -z "$arg3" ] ; then
+ # old linuxconf
+ /sbin/ifconfig $arg1 $arg2
+ else
+ # new linuxconf
+ /sbin/ifconfig $arg1 $arg2 netmask $arg3 broadcast $arg4
+ fi
/sbin/route add $arg2 $arg1
;;
del)