diff --git a/etc/sysconfig/network-scripts/ifup-wireless b/etc/sysconfig/network-scripts/ifup-wireless index 49edb02..7538969 100644 --- a/etc/sysconfig/network-scripts/ifup-wireless +++ b/etc/sysconfig/network-scripts/ifup-wireless @@ -38,18 +38,16 @@ if [ "$WIRELESS_ESSID" ]; then ifconfig ${DEVICE} up iwlist ${DEVICE} scan essid $WIRELESS_ESSID > $tmpfile; } - cat $tmpfile | \ while read line; do if [ "${line:0:5}" = "Cell " ]; then [ "$found_essid" ] && break || > $tmpfile1 fi echo $line >> $tmpfile1 [ "$line" = "ESSID:\"$WIRELESS_ESSID\"" ] && found_essid=1 - done + done < $tmpfile > $tmpfile - cat $tmpfile1 | \ while read line; do vname=${line/:*} if [ "${line:0:4}" = "Cell" ]; then @@ -79,7 +77,7 @@ if [ "$WIRELESS_ESSID" ]; then "$vname" = "WIRELESS_AUTO_Authentication_Suites" ]; then echo $vname=$vval >> $tmpfile fi - done + done < $tmpfile1 . $tmpfile else