diff options
author | Miloslav Trmac <mitr@volny.cz> | 2006-05-17 20:59:26 +0000 |
---|---|---|
committer | Miloslav Trmac <mitr@volny.cz> | 2006-05-17 20:59:26 +0000 |
commit | 7dd92dba3f3a5bc8f5b445153ce9a5789f56a8fc (patch) | |
tree | 76077c7a4c348c1f5baa0926b878c45cc2bd9b2c /sysconfig | |
parent | bf2f5792b96e56babad4bfde953caeb8d3fc2a6d (diff) | |
download | initscripts-7dd92dba3f3a5bc8f5b445153ce9a5789f56a8fc.tar initscripts-7dd92dba3f3a5bc8f5b445153ce9a5789f56a8fc.tar.gz initscripts-7dd92dba3f3a5bc8f5b445153ce9a5789f56a8fc.tar.bz2 initscripts-7dd92dba3f3a5bc8f5b445153ce9a5789f56a8fc.tar.xz initscripts-7dd92dba3f3a5bc8f5b445153ce9a5789f56a8fc.zip |
Remove unused ifdown-aliases.
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-aliases | 52 | ||||
-rwxr-xr-x | sysconfig/network-scripts/ifup-aliases | 1 |
2 files changed, 0 insertions, 53 deletions
diff --git a/sysconfig/network-scripts/ifdown-aliases b/sysconfig/network-scripts/ifdown-aliases deleted file mode 100755 index 6a310cc7..00000000 --- a/sysconfig/network-scripts/ifdown-aliases +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -# removes aliases of device $1 - -device=$1 -if [ "$device" = "" ]; then - echo $"usage: $0 <net-device>" - exit 1 -fi - -parent_device=$device - -cd /etc/sysconfig/network-scripts - -. network-functions - -# This is the same messy sed script as in the ifup-aliases script. -# Update also ifup-aliases! -eval $(LC_ALL= LANG= /sbin/ifconfig | LC_ALL=C sed -n ' -# Alias name: store the number in TMP, ignore the following address if the -# device name does not match. This may leave a hanging ||, so dummy X=x -# comands are used to ignore a possible previous condition. -/^[^[:space:]]*:[0-9A-Za-z_]*/ { - s|^\([^:]*\):\([0-9A-Za-z_]*\).*$|X=x; TMP="\2"; [ "$device" != "\1" ] \|\| |p - b -} -# Non-alias device: always ignore the following address -/^[^[:space:]]/ { - s|^.*$|X=x; true \|\| |p - b -} -# Address: Preceded by a device name, which was converted into -# condition || -# So this triggers only for $device. -# Add a trailing || (which will be swallowed by X=x) to keep the syntax -# correct. -/inet addr:[0-9]*\.[0-9]*\.[0-9]*\.[0-9]* *Bcast:[0-9.]* *Mask:[0-9.]*/ { - s|^.*inet addr:\(\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\) *Bcast:\([0-9.]*\) *Mask:\([0-9.]*\).*$|eval "rdev_${TMP}_addr=\1; rdev_${TMP}_mb=\7_\6; rdevip_\2_\3_\4_\5=${TMP}; rdev_LIST=\\"\\$rdev_LIST \\${TMP}\\"; " \|\| |p - b -}') X=x - -for DEVNUM in $rdev_LIST ; do - ifconfig $parent_device:$DEVNUM down - do_netreport=yes -done - -# notify programs that have requested notification, if we changed anything -if [ -n "$do_netreport" ]; then - do_netreport -fi - - diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases index 0d84ec0a..c5a9f840 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -78,7 +78,6 @@ cd /etc/sysconfig/network-scripts # into variables in the form: rdev_$DEVICE_addr, dev_$DEVICE_mb and # rdevip_$IPGLOP. A list of all the devices is created in rdev_LIST. -# Update also ifdown-aliases! eval $(LC_ALL= LANG= /sbin/ifconfig | LC_ALL=C sed -n ' # Alias name: store the number in TMP, ignore the following address if the # device name does not match. This may leave a hanging ||, so dummy X=x |