Active Topics

 


Reply
Thread Tools
Banned | Posts: 34 | Thanked: 3 times | Joined on Jul 2011
#1
I want to write about a new network connection (IAP) script, but old is not successful, ask everybody to help me see this script which have a problem? Thank you thank you very much

The following is a script content

#!/bin/sh
sKey="1111-8888"
sSSID="[88,88,88,88]"
#sRoot="/system/osso/connectivity/IAP/${sKey}"---Operation tip error ---运行提示出错

sRoot="/system/osso/connectivity/IAP ${sKey}"
gconftool-2 --set --type string ${sRoot}/ipv4_type AUTO
gconftool-2 --set --type string ${sRoot}/name mymymy
gconftool-2 --set --type list --list-type int ${sRoot}/wlan_ssid $sSSID
gconftool-2 --set --type string ${sRoot}/type WLAN_INFRA
gconftool-2 --set --type string ${sRoot}/wlan_security NONE
gconftool-2 --set --type string ${sRoot}/proxytype NONE
gconftool-2 --set --type boolean ${sRoot}/wlan_hidden false
gconftool-2 --set --type boolean ${sRoot}/temporary true
gconftool-2 --set --type string ${sRoot}/wlan_security WPA_PSK
gconftool-2 --set --type string ${sRoot}/EAP_wpa_preshared_passphrase "333333333"
sleep 1
dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:${sKey} uint32:0

###gconftool-2 --set --type string ${sRoot}/wlan_security wep

Last edited by xsmabbs; 2012-03-21 at 13:48.
 
Banned | Posts: 34 | Thanked: 3 times | Joined on Jul 2011
#2
Thank you all, that seems a little progress, the HTML code is as follows, can build not to save the connection
ok成品自己写的自动 从曲美&#395.zip
此程序为n900自动备份并emial.zip
只要小九连接上了wifi就自动&#23.zip
#!/bin/sh
4th自动可执行微博sinatpy2.x.zip
sKey="55dai223-4432-6ak9-kkfs-p32xk65780h"
sSSID= "NEWAPNNAME"
gconftool-2 --set /system/osso/connectivity/IAP/55dai223-4432-6ak9-kkfs-p32xk65780h/type --type string "WLAN_INFRA"
gconftool-2 --set /system/osso/connectivity/IAP/55dai223-4432-6ak9-kkfs-p32xk65780h/name --type string "NEWAPNNAME"
gconftool-2 --set /system/osso/connectivity/IAP/55dai223-4432-6ak9-kkfs-p32xk65780h/ipv4_type --type string AUTO
gconftool-2 --set /system/osso/connectivity/IAP/55dai223-4432-6ak9-kkfs-p32xk65780h/wlan_ssid --type string $sSSID
gconftool-2 --set /system/osso/connectivity/IAP/55dai223-4432-6ak9-kkfs-p32xk65780h/proxytype --type string NONE
gconftool-2 --set /system/osso/connectivity/IAP/55dai223-4432-6ak9-kkfs-p32xk65780h/wlan_hidden --type boolean false
gconftool-2 --set /system/osso/connectivity/IAP/55dai223-4432-6ak9-kkfs-p32xk65780h/temporary --type boolean true
gconftool-2 --set /system/osso/connectivity/IAP/55dai223-4432-6ak9-kkfs-p32xk65780h/wlan_security --type string WPA_PSK
gconftool-2 --set /system/osso/connectivity/IAP/55dai223-4432-6ak9-kkfs-p32xk65780h/EAP_wpa_preshared_passphrase --type string 1234567890
#gconftool-2 --set /system/osso/connectivity/IAP/55dai223-4432-6ak9-kkfs-p32xk65780h/
dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:${sKey} uint32:0

Last edited by xsmabbs; 2012-03-25 at 14:12.
 
Reply


 
Forum Jump


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