You are not logged in.
I have written a script, which start my wlan.
#!/bin/bash
#/usr/local/bin/wlan
function wlan_start {
# a workaround. reload the module
modprobe -r iwlagn
modprobe iwlagn
ifconfig wlan0 up
dhcpcd -b -q -t 0 wlan0
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dwext -B
wpa_gui &
}
function wlan_stop {
dhcpcd -q -x wlan0
killall wpa_supplicant
ifconfig wlan0 down
}
case "$1" in
start) wlan_start ;;
stop) wlan_stop ;;
esac
If I run it from a console (sudo /usr/local/bin/wlan start) the wpa_gui pops up.
I have installed it into the handler.sh from acpi. The script is correctly executed, if fn+f5 is pressed, but wpa_gui does not pop up.
What should I change, that it the gui pops up whith fn+f5?
Edit:
The problem was, that I forgot the access restriction of X.
Adding following code helps:
export DISPLAY=:0.0
export XAUTHORITY=/root/.Xauthority
Remark: /root/.Xauthority is a link to the file of the notebook user.
Last edited by dudell (2010-01-25 10:10:07)
Offline