aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-09-21 15:38:05 +0000
committerBill Nottingham <notting@redhat.com>2001-09-21 15:38:05 +0000
commitc9e63689f7192bdb82a088c835783a9de1fe862c (patch)
treee49c76a88733380ad6cf25df76b95e488e852de2 /sysconfig/network-scripts
parent14b615784a583431f64b77e4718730f7e9a3e491 (diff)
downloadinitscripts-c9e63689f7192bdb82a088c835783a9de1fe862c.tar
initscripts-c9e63689f7192bdb82a088c835783a9de1fe862c.tar.gz
initscripts-c9e63689f7192bdb82a088c835783a9de1fe862c.tar.bz2
initscripts-c9e63689f7192bdb82a088c835783a9de1fe862c.tar.xz
initscripts-c9e63689f7192bdb82a088c835783a9de1fe862c.zip
expunge more linuxconf support
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases31
1 files changed, 1 insertions, 30 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 84d37200..40d27f7d 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -291,38 +291,11 @@ function new_interface ()
if [ "$BASH_VERSINFO" ]; then shopt -s nullglob; else allow_null_glob_expansion=foo; fi
-# Is there any linuxconf-style alias files.
-linuxconfstyle=0
for FILE in ifcfg-${parent_device}:* ; do
-
ini_env;
. $FILE;
- if [ -z "$DEVICE" ]; then
- # it's a linuxconf file.
- # I don't think this script will handle both style correctly
- # though. Well, those who knows about the other style don't know
- # the other style and vice versa
- linuxconfstyle=1
- else
- new_interface;
- fi
+ new_interface;
done
-if [ "$linuxconfstyle" = "1" ] ; then
- linuxconf --hint ipalias $device \
- | while read command ali ip mask bcast
- do
- if [ "$command" = "del" ] ; then
- /sbin/ifconfig $ali down
- do_netreport=yes
- elif [ "$command" = "add" ] ; then
- /sbin/ifconfig $ali $ip netmask $mask broadcast $bcast
- do_netreport=yes
- else
- echo Incomatible hinting: $command $rest >&2
- fi
- done
-fi
-
for FILE in ifcfg-${parent_device}-range* ; do
@@ -357,7 +330,6 @@ done
#
# Remove any devices that should not be around
#
-if [ "$linuxconfstyle" = "0" ] ; then
for DEVNUM in $rdev_LIST ; do
eval " rdev_mark=\$rdev_${DEVNUM}_mark ";
if [ -z "$rdev_mark" ]; then
@@ -366,7 +338,6 @@ if [ "$linuxconfstyle" = "0" ] ; then
do_netreport=yes
fi
done
-fi
#
# Notify of new device creation
#