ifup-wireless: remove unneeded pipes

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2013-02-22 22:04:00 +01:00
parent 93397b69a2
commit 333285d76d

View File

@ -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