Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2012
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. #!/bin/sh
  2. out=`ifconfig wlan0`
  3. if [ $? -eq "0" ] ; then
  4. if [ `echo "$out" | grep -c RUNNING` -gt "0" ] ; then
  5. run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
  6. fi
  7. ifconfig wlan0 down
  8. rmmod wl12xx
  9. run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Wi-Fi disabled'
  10. exit 2
  11. else
  12. modprobe wl12xx
  13. wl1251-cal
  14. stop wlancond
  15. start wlancond
  16. ifconfig wlan0 up
  17. run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_ui.show_conn_dlg boolean:false
  18. exit 0
  19. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement