From 333285d76dd8a7c03b9c9e0d941fdb4abc688f28 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Fri, 22 Feb 2013 22:04:00 +0100 Subject: [PATCH] ifup-wireless: remove unneeded pipes Signed-off-by: Davide Madrisan --- etc/sysconfig/network-scripts/ifup-wireless | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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