2009/6/27 kimaidou <[email protected]>: > Hi list > > I am using a personalized wpa_supplicant file which suits my connection > needs (my home network and any other open ones). > To connect , I have created a desktop icon > (/usr/share/applications/mywifi.desktop) which launch the following script : > > #!/bin/sh > ifconfig eth0 up > wpa_supplicant -i eth0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B > udhcpc eth0 > > This way, I do not have to open a -always- heavy wifi software, open the > keyboard, push one or 2 button , etc. : I can connect simply with one click > on the desktop icon. > Humm... in fact I *could*, if I knew the command-line SHR > settings/connectivity uses when moving the "Wifi radio" slider to "On". > > So here are my questions : > * what is the command line to activate the wifi (it is long to open the > Setting apps, then wait then open the "Connectivity" etc.) > * what is the command line to deactivate it the proper way ? > > By the way, before -today manually- deactivating the wifi via this slider, I > do a : > > #!/bin/sh > killall wpa_supplicant > ifconfig eth0 down > > So 3rd question: > * Is it the proper way too ?
You could use mdbus to check and set the wifi power: "mdbus -s org.freesmartphone.odeviced /org/freesmartphone/Device/PowerControl/WiFi org.freesmartphone.Device.PowerControl.GetPower" should return True or False Use the method "SetPower" to enable or disable it. _______________________________________________ Shr-User mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-user
