Re: How to enable/disable wireless from command line



Try:

dbus-send --system --type=method_call --dest=org.freedesktop.NetworkManager \
    /org/freedesktop/NetworkManager org.freedesktop.DBus.Properties.Set \
    string:org.freedesktop.NetworkManager string:WirelessEnabled \
    variant:boolean:false

or true

2009/8/20 Daniel Castro <castromd tcd ie>
Hello,

I hope this is the right place to ask this. I use network manager and it's beautiful. There is one thing I would like to do from command line (so that I can script it later).

To enable and disable wireless.

So if you right-click network manager there is a 'Enable Wireless' option that you tick or untick to achieve this.

How can I do that exact same thing from command line?

Using Ubuntu 9.04.

Thanks!

--
________________________

Daniel Castro, M.Sc.
+353 083-318-2058
dancasmo gmail com
castromd tcd ie
________________________

_______________________________________________
NetworkManager-list mailing list
NetworkManager-list gnome org
http://mail.gnome.org/mailman/listinfo/networkmanager-list




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