Auto-connect OFF option.



Im using this script to disable the autoconnect function on all my stored networks:

### Disables auto-connect on all saved networks
netlist=$(ls .gconf/system/networking/connections/ | grep -v %)
for l in ${netlist[*]}; { gconftool-2 --type bool --set /system/networking/connections/$l/connection/autoconnect false ;}

1) Can you add a button with this option?
2) How can i detect the latest network added to disable the autoconnect on it instead of do it on all of them? (This is implemented on the program but dont know what code is used)
3) How can i make this run everytime i connect to a network? (Tried using a new script on /etc/NetworkManager/dispatcher.d without luck)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]