From 6ddce805ccecb7f02a31a413c501217336e3791a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 12 Mar 2012 12:42:43 -0400 Subject: Fix IFS usage mangling device names (#802119) --- sysconfig/network-scripts/ifup-aliases | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases index 7ef7ccea..16005cbd 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -86,10 +86,7 @@ cd /etc/sysconfig/network-scripts # # A list of all the devices is created in rdev_LIST. -OLDIFS=$IFS -IFS='\n' - -for RDEV_VAR in $( ip addr show $device label $device:* | \ +eval $( ip addr show $device label $device:* | \ awk 'BEGIN { COUNT=0;LAST_DEV="" } /inet / { # Split IP address into address/prefix split($2,IPADDR,"/"); @@ -105,11 +102,6 @@ for RDEV_VAR in $( ip addr show $device label $device:* | \ } END { if(LAST_DEV == "") print "no_devices_are_up=yes" }' ); -do - eval $RDEV_VAR -done - -IFS=$OLDIFS # # Store configuration of the parent device and network -- cgit v1.2.1