QtMoko - /opt/qtmoko/bin/lan-network

5 messages Options
Embed this post
Permalink
Torfinn Ingolfsen

QtMoko - /opt/qtmoko/bin/lan-network

Reply Threaded More More options
Print post
Permalink
Hi,

This probably goes for other QT / Qtopia based distributions too.
The network script /opt/qtmoko/bin/lan-network have this on line 73:

let COUNT=COUNT+1

I don't know which shell allows this (it's certainly not POSIX), and QtMoko (v11 now) which uses bash complains:
Sep 22 23:05:00 neo Qtopia: + let COUNT=COUNT+1
Sep 22 23:05:00 neo Qtopia: /opt/qtmoko//bin/lan-network: 1: let: not found

If you instead change the line to:
COUNT=$(( $COUNT + 1 ))

it works. Hopefully this will work on other POSIX compliant shells too.

HTH
--
Regards,
Torfinn Ingolfsen

_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community
Radek Polak

Re: QtMoko - /opt/qtmoko/bin/lan-network

Reply Threaded More More options
Print post
Permalink
Torfinn Ingolfsen wrote:

> The network script /opt/qtmoko/bin/lan-network have this on line 73:
>
> let COUNT=COUNT+1
>
> I don't know which shell allows this (it's certainly not POSIX), and
> QtMoko (v11 now) which uses bash complains:
> Sep 22 23:05:00 neo Qtopia: + let COUNT=COUNT+1
> Sep 22 23:05:00 neo Qtopia: /opt/qtmoko//bin/lan-network: 1: let: not
> found
>
> If you instead change the line to:
> COUNT=$(( $COUNT + 1 ))

Good catch, its fixed now in my git.

Thanks

Radek


_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community
Torfinn Ingolfsen

Re: QtMoko - /opt/qtmoko/bin/lan-network

Reply Threaded More More options
Print post
Permalink
Here is another:
If you runt WPA-PSK with AES you will get this output from the script:
+ . /root/Settings/Network/wireless/eth0
+ WIRELESS_ESSID=kg4
+ WIRELESS_AUTH_MODE=WPA-PSK
+ WIRELESS_WPA_PSK=j85first
+ WIRELESS_PAIRWISE=CCMP TKIP
/root/Settings/Network/wireless/eth0: 1: TKIP: not found
+ WIRELESS_GROUP=CCMP TKIP
/root/Settings/Network/wireless/eth0: 1: TKIP: not found

To fix that, change lines 277 and 278 into:
echo "WIRELESS_PAIRWISE=\"CCMP TKIP\"" >> $TMP_FILE;
echo "WIRELESS_GROUP=\"CCMP TKIP\"" >> $TMP_FILE;

HTH
--
Regards,
Torfinn Ingolfsen

_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community
Torfinn Ingolfsen

Re: QtMoko - /opt/qtmoko/bin/lan-network

Reply Threaded More More options
Print post
Permalink
Hello,

On Wed, Sep 23, 2009 at 11:10 PM, Torfinn Ingolfsen <[hidden email]> wrote:
Here is another:
If you runt WPA-PSK with AES you will get this output from the script:

+ . /root/Settings/Network/wireless/eth0
+ WIRELESS_ESSID=kg4
+ WIRELESS_AUTH_MODE=WPA-PSK
+ WIRELESS_WPA_PSK=j85first
+ WIRELESS_PAIRWISE=CCMP TKIP
/root/Settings/Network/wireless/eth0: 1: TKIP: not found
+ WIRELESS_GROUP=CCMP TKIP
/root/Settings/Network/wireless/eth0: 1: TKIP: not found

To fix that, change lines 277 and 278 into:
echo "WIRELESS_PAIRWISE=\"CCMP TKIP\"" >> $TMP_FILE;
echo "WIRELESS_GROUP=\"CCMP TKIP\"" >> $TMP_FILE;


It seems these two fixes aren't in the lan-network script used in QtMoko v14.
Perhaps it should be fixed?
--
Regards,
Torfinn Ingolfsen

_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community
Radek Polak

Re: QtMoko - /opt/qtmoko/bin/lan-network

Reply Threaded More More options
Print post
Permalink
On Friday 30 of October 2009 18:33:35 Torfinn Ingolfsen wrote:

> Hello,
>
> On Wed, Sep 23, 2009 at 11:10 PM, Torfinn Ingolfsen <[hidden email]>wrote:
> > Here is another:
> > If you runt WPA-PSK with AES you will get this output from the script:
> >
> > + . /root/Settings/Network/wireless/eth0
> > + WIRELESS_ESSID=kg4
> > + WIRELESS_AUTH_MODE=WPA-PSK
> > + WIRELESS_WPA_PSK=j85first
> > + WIRELESS_PAIRWISE=CCMP TKIP
> > /root/Settings/Network/wireless/eth0: 1: TKIP: not found
> > + WIRELESS_GROUP=CCMP TKIP
> > /root/Settings/Network/wireless/eth0: 1: TKIP: not found
> >
> > To fix that, change lines 277 and 278 into:
> > echo "WIRELESS_PAIRWISE=\"CCMP TKIP\"" >> $TMP_FILE;
> > echo "WIRELESS_GROUP=\"CCMP TKIP\"" >> $TMP_FILE;
>
> It seems these two fixes aren't in the lan-network script used in QtMoko
> v14.
> Perhaps it should be fixed?

Hi Torfinn,
sorry for delay - i have missed the patch. It's now in my git (although not
tested yet, because i am quite busy with other stuff).

Thanks

Radek

_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community