Package: hostap-utils
Version: 0.4.0-1
Tags: patch

While trying to load firmware into a prism card's RAM, I noticed that
the if-pre-up script does nothing because of a FALSE condition.
I suspect that the results of grep'ing for "no_pri=1" and "pri_only=1"
 should be logically negated.

Mirko

--- hostap-utils.broken 2007-08-18 15:43:11.000000000 +0200
+++ /etc/network/if-pre-up.d/hostap-utils       2007-08-17 01:14:37.000000000 
+0200
@@ -13,7 +13,7 @@
                return 1
        fi
 
-       if grep -q no_pri=1 /proc/net/hostap/$1/debug; then
+       if ! grep -q no_pri=1 /proc/net/hostap/$1/debug; then
                echo "Downloading primary firmware $2 to interface $1"
                $PRISM2_SREC -gs $1 $2
                $PRISM2_SREC -gp $1 $2
@@ -24,7 +24,7 @@
 
 load_secondary()
 {
-       if grep -q pri_only=1 /proc/net/hostap/$1/debug; then
+       if ! grep -q pri_only=1 /proc/net/hostap/$1/debug; then
                echo "Downloading secondary (station) firmware $2 to interface 
$1"
                $PRISM2_SREC -rp $1 $2
        fi



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to