aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-aliases
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-06-18 21:23:18 +0000
committerBill Nottingham <notting@redhat.com>1999-06-18 21:23:18 +0000
commit365f962999cfc85d1f921c5f057be940421c1e57 (patch)
tree65a39628d623c6d1a0e07d988fb00d6cf77130d9 /sysconfig/network-scripts/ifup-aliases
parenta5a94f762b8e72693a58e08d383aed4b45170c21 (diff)
downloadinitscripts-365f962999cfc85d1f921c5f057be940421c1e57.tar
initscripts-365f962999cfc85d1f921c5f057be940421c1e57.tar.gz
initscripts-365f962999cfc85d1f921c5f057be940421c1e57.tar.bz2
initscripts-365f962999cfc85d1f921c5f057be940421c1e57.tar.xz
initscripts-365f962999cfc85d1f921c5f057be940421c1e57.zip
remove commented-out linuxconf support ;)r4-21
Diffstat (limited to 'sysconfig/network-scripts/ifup-aliases')
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases41
1 files changed, 3 insertions, 38 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 8353a751..163492c3 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -8,46 +8,11 @@ if [ "$device" = "" ]; then
exit 1
fi
-# don't run linuxconf if /usr isn't there...
-#
-# Heck, it's broken. Don't run linuxconf at all.
-#
-#if [ -x /bin/linuxconf -a -f /usr/lib/libncurses.so.4.2 ] ; then
-# # ask linuxconf for lines like:
-# # add <device> <ip>
-# # del <device>
-# # reload <number_of_aliases>
-# linuxconf --hint ipalias $1 | while read verb arg1 arg2 arg3 arg4; do
-# case $verb in
-# add)
-# if [ -z "$arg3" ] ; then
-# # old linuxconf
-# /sbin/ifconfig $arg1 $arg2
-# else
-# # new linuxconf
-# /sbin/ifconfig $arg1 $arg2 netmask $arg3 broadcast $arg4
-# fi
-# ;;
-# del)
-# # the <device> 0.0.0.0 tells the kernel to remove the device
-# # it is necessary to remove it in order for reload to work.
-# /sbin/ifconfig ${arg1} 0.0.0.0
-# ;;
-# reload)
-# echo $arg1 > /proc/sys/net/core/net_alias_max
-# ;;
-# esac
-# done
-#
-#else
- # we don't have linuxconf to fall back on, so presumably we do
- # not have to parse linuxconf ipalias ranges, either.
- current=0
- while : ; do
+current=0
+while : ; do
if [ ! -f /etc/sysconfig/network-scripts/$device:$current ]; then
return
fi
/etc/sysconfig/network-scripts/ifup $device:$current
current=`expr $current + 1`
- done
-#fi
+done