configuring wireless connection - beginner

Bob Beers bob.beers at gmail.com
Wed Jun 29 15:32:28 EDT 2005


You can do both at once.  I like this ...

                #!/bin/sh
                echo "Testing compatibility ..."
                prism2_srec wlan0 $PRIFILE $STAFILE > /tmp/result.txt
                while read VAL
                do
                        echo $VAL
                        LAST=$VAL
                done < /tmp/result.txt
                if [ $LAST == "OK." ]; then
                        echo "Compatibility verified, upgrading ..."
                        prism2_srec -f wlan0 $PRIFILE $STAFILE
                        echo "Done upgrading firmware."
                else
                        echo "Something is not right, not gonna do it,
wouldn't be prudent."
                fi

-- 
-Bob



More information about the HostAP mailing list