|
2011-03-09
, 20:48
|
Posts: 112 |
Thanked: 26 times |
Joined on Sep 2009
|
#2
|
|
2011-03-10
, 17:10
|
Posts: 215 |
Thanked: 158 times |
Joined on Jan 2010
|
#3
|
|
2011-03-10
, 17:17
|
|
Posts: 723 |
Thanked: 519 times |
Joined on Nov 2010
@ Kuching:Malaysia
|
#4
|
|
2011-03-10
, 17:27
|
Posts: 112 |
Thanked: 26 times |
Joined on Sep 2009
|
#5
|
The Following User Says Thank You to Dead1nside For This Useful Post: | ||
|
2011-03-11
, 05:07
|
Posts: 215 |
Thanked: 158 times |
Joined on Jan 2010
|
#6
|
|
2011-03-14
, 22:42
|
Posts: 215 |
Thanked: 158 times |
Joined on Jan 2010
|
#7
|
|
2011-03-15
, 03:43
|
Posts: 215 |
Thanked: 158 times |
Joined on Jan 2010
|
#8
|
#!/bin/bash #get current ssid LIST=$(iwconfig wlan0 | awk -F":" '/ESSID/{print $2}') #if already connected then quit if [ $LIST = '"nasa"' ]; then exit 1; fi #clear previous ssid scans rm /home/user/MyDocs/scripts/scans #if not connected, bring up wlan (if not already) and scan ssids ifconfig wlan0 up SCANS=$(iwlist wlan0 scan | awk -F":" '/ESSID/{print $2}') echo "$SCANS" > /home/user/MyDocs/scripts/scans GOAL=$(more scans | awk '/"nasa"/{print "1"}' /home/user/MyDocs/scans) #if network not found, exit [ "$GOAL" ] || exit #if network found, disconnect current network and connect to network using dbus if [ "$GOAL" ]; then dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true sleep 5 dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:5f027850-3445-4eef-ac3f-76b423515990 uint32:0 fi
The Following 4 Users Say Thank You to Flynx For This Useful Post: | ||
|
2011-07-19
, 12:47
|
Posts: 37 |
Thanked: 18 times |
Joined on Apr 2010
|
#9
|
#!/bin/sh #get current SSID LIST=`iwconfig wlan0 | awk -F":" '/ESSID/{print $2}'` echo Current connection: $LIST #Quit if already connected if [ $LIST = "\"$1\"" ]; then echo \"$1\" is already connected exit 1; fi #Bring up wlan and scan for SSIDs ifconfig wlan0 up if [ -z `iwlist wlan0 scan | grep -m 1 -o \"$1\"` ]; then echo SSID \"$1\" not found; exit 1; fi #Disconnect current using dbus dbus-send --system --dest=com.nokia.icd \ /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true #Wait for disconnect sleep 6 #Find IAP_ID from SSID IAP_ID=`gconftool-2 -R /system/osso/connectivity/IAP | tac | \ awk "/name = $1/,/connectivity\/IAP/" | \ awk -F '/|:' '/connectivity\/IAP/{ print $6}'` echo IAP ID = $IAP_ID #Connect to chosen SSID once disconnected dbus-send --system --type=method_call --dest=com.nokia.icd \ /com/nokia/icd com.nokia.icd.connect string:"$IAP_ID" uint32:0 sleep 20 LIST=`iwconfig wlan0 | awk -F":" '/ESSID/{print $2}'` echo Connected to $LIST dbus-send --type=method_call --dest=org.freedesktop.Notifications \ /org/freedesktop/Notifications \ org.freedesktop.Notifications.SystemNoteDialog \ string:"Connected to $LIST" uint32:0 string:"OK"
|
2011-10-20
, 23:14
|
Posts: 215 |
Thanked: 158 times |
Joined on Jan 2010
|
#10
|
$ sudo /usr/bin/run-standalone.sh ~/MyDocs/scripts/hutchinsfairy 'nasa' Current connection: wlan0 IEEE 802.11bg ESSID:"" sh: IEEE: unknown operand SSID "" not found
if [ $LIST = '"nasa"' ]; then
dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:5f027850-3445-4eef-ac3f-76b423515990 uint32:0
string:5f027850-3445-4eef-ac3f-76b423515990
gconftool -R /system/osso/connectivity/IAP
sudo bash nameofscript
Tags |
maemo 5, wpa2-eap |
Thread Tools | |
|
I have wifi networks configured on my N900 for my house, girlfriend's house, and work. I scan every 5 min and auto-connect to wifi when avail. When I go home or to girlfriend's house the wifi automatically connects. When I go to work it sees the wifi network, and it can connect to the wifi network, but it doesn't.
The main difference is that the wifi at work is WPA2/PEAP/MSCHAPv2. Is there some reason that security would prevent auto-connect from working? I am using the power kernel.
Last edited by Flynx; 2011-03-15 at 03:45. Reason: solved