maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [solved] Enterprise WPA2 Auto-connect fails (https://talk.maemo.org/showthread.php?t=70866)

hutchinsfairy 2011-10-21 07:46

Re: [solved] Enterprise WPA2 Auto-connect fails
 
1 Attachment(s)
The code in my post above seems to be missing bits....
Attached is the script I use as a file.
If you still have problems it might be worth using another folder to hold your scripts; anything under MyDocs is on the 32GB drive which is a FAT32 format and so cannot be given execute permissions. I use /home/user/scripts as for my bash scripts.

hutchinsfairy 2011-10-21 08:28

Re: [solved] Enterprise WPA2 Auto-connect fails
 
Also of note is the alarmd schedule. I use the 'cron string' scheduling in alarmd as I only want this script to run during my working hours.
Examples:
*/5 9-17 * * 1-5 <-- Every 5 minutes, 9am til 5pm, Mon to Fri, 365 days a year.

30 * * * 1-5 <-- Half past every hour, weekdays

Flynx 2011-10-21 18:45

Re: [solved] Enterprise WPA2 Auto-connect fails
 
Quote:

Originally Posted by hutchinsfairy (Post 1111593)
The code in my post above seems to be missing bits....
Attached is the script I use as a file.
If you still have problems it might be worth using another folder to hold your scripts; anything under MyDocs is on the 32GB drive which is a FAT32 format and so cannot be given execute permissions. I use /home/user/scripts as for my bash scripts.

Thanks, that worked for me, and definitely more user-friendly than my attempt. Mine still seems to be throwing errors if the network isn't found.

However, it might be a moot point. When I opened alarmed today I noticed that "connect to network" is a built-in event type. Don't think that was there earlier in the year. So maybe the script is no longer necessary.

......

feature was just added last month! :-D
http://talk.maemo.org/showpost.php?p...&postcount=486

Flynx 2011-10-21 18:53

Re: [solved] Enterprise WPA2 Auto-connect fails
 
aww dang. alarmed built-in network connect does not check to see if you are already connected to the network. so it will perpetually disconnect and reconnect in our usage case. Looks like I still need the script.

lucisandor 2012-06-28 21:21

Re: [solved] Enterprise WPA2 Auto-connect fails
 
Quote:

Originally Posted by hutchinsfairy (Post 1111593)
The code in my post above seems to be missing bits....
Attached is the script I use as a file.
If you still have problems it might be worth using another folder to hold your scripts; anything under MyDocs is on the 32GB drive which is a FAT32 format and so cannot be given execute permissions. I use /home/user/scripts as for my bash scripts.

The script above fails when the profile / network name contains non-letters, e.g., "Some Uni (iphone.works-here)". Please share the fix for this problem, if you have it.

pali 2022-10-08 18:18

Re: [solved] Enterprise WPA2 Auto-connect fails
 
Link to thread with proper system solution: https://talk.maemo.org/showthread.php?t=96277


All times are GMT. The time now is 15:42.

vBulletin® Version 3.8.8