diff options
author | Bill Nottingham <notting@redhat.com> | 2001-04-02 20:47:37 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-04-02 20:47:37 +0000 |
commit | 476b54f28af6bd99e7e5fbdd91243e8cfdfe8141 (patch) | |
tree | aace0d012968c3ef4cc0d978f0316f71992338c6 /sysconfig | |
parent | 3a6e6c3dfd753a441182041b0645e3191998a4e3 (diff) | |
download | initscripts-476b54f28af6bd99e7e5fbdd91243e8cfdfe8141.tar initscripts-476b54f28af6bd99e7e5fbdd91243e8cfdfe8141.tar.gz initscripts-476b54f28af6bd99e7e5fbdd91243e8cfdfe8141.tar.bz2 initscripts-476b54f28af6bd99e7e5fbdd91243e8cfdfe8141.tar.xz initscripts-476b54f28af6bd99e7e5fbdd91243e8cfdfe8141.zip |
fix more ifconfig greps (patch from Conectiva)
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-aliases | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-aliases b/sysconfig/network-scripts/ifdown-aliases index 6334d2f5..bc62dbf0 100755 --- a/sysconfig/network-scripts/ifdown-aliases +++ b/sysconfig/network-scripts/ifdown-aliases @@ -13,7 +13,7 @@ parent_device=$device . network-functions # This is the same messy sed script as in the ifup-aliases script. -eval ` ifconfig | sed -e ' /^[^[:space:]]*:[0-9]*/ { s|^\([^:]*\):\([0-9]*\).*$|X=x; TMP="\2"; [ "$device" != "\1" ] \|\| |g; b; }; /^[^[:space:]]/ { s|.*|X=x; [ 0 = 0 ] \|\| |g; b; }; /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}\\\\"; " \|\| |g; b; }; s|^.*$||g; ' ` X=x; +eval `LC_ALL= LANG= ifconfig | sed -e ' /^[^[:space:]]*:[0-9]*/ { s|^\([^:]*\):\([0-9]*\).*$|X=x; TMP="\2"; [ "$device" != "\1" ] \|\| |g; b; }; /^[^[:space:]]/ { s|.*|X=x; [ 0 = 0 ] \|\| |g; b; }; /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}\\\\"; " \|\| |g; b; }; s|^.*$||g; ' ` X=x; for DEVNUM in $rdev_LIST ; do ifconfig $parent_device:$DEVNUM down |