diff options
author | Bill Nottingham <notting@redhat.com> | 2000-12-12 05:31:49 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-12-12 05:31:49 +0000 |
commit | 7598f8cb5a31d96c26090cadda678c1ea1a5dc37 (patch) | |
tree | 31ead2ef1da6fd86f05e5412fc9a73d00e171c18 /sysconfig/network-scripts/ifup-aliases | |
parent | 627c85848617976158d87542b8ed87100f171979 (diff) | |
download | initscripts-7598f8cb5a31d96c26090cadda678c1ea1a5dc37.tar initscripts-7598f8cb5a31d96c26090cadda678c1ea1a5dc37.tar.gz initscripts-7598f8cb5a31d96c26090cadda678c1ea1a5dc37.tar.bz2 initscripts-7598f8cb5a31d96c26090cadda678c1ea1a5dc37.tar.xz initscripts-7598f8cb5a31d96c26090cadda678c1ea1a5dc37.zip |
fix more ifconfig greps (patch from Conectiva)
Diffstat (limited to 'sysconfig/network-scripts/ifup-aliases')
-rwxr-xr-x | sysconfig/network-scripts/ifup-aliases | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases index 88cb3c34..82f0b0d8 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -76,7 +76,7 @@ parent_device=$device # # sorry this is all one line -- it didn't work on multiple lines for me -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; if [ -z "$rdev_LIST" ]; then no_devices_are_up=yes |