1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00

make wicd-cli easier to use

This commit is contained in:
Adam Blackburn
2010-01-03 23:07:34 -10:00
parent d9d6328ba1
commit 9cfdcbb4f0

View File

@@ -145,11 +145,16 @@ if options.network_details:
if options.network_property:
options.network_property = option.network_property.lower()
if options.wireless:
if options.network >= 0:
is_valid_wireless_network_id(options.network)
if not options.set_to:
print wireless.GetWirelessProperty(options.network, options.network_property)
network_id = options.network
else:
wireless.SetWirelessProperty(options.network, \
network_id = wireless.GetCurrentNetworkID(0)
is_valid_wireless_network_id(network_id)
if not options.set_to:
print wireless.GetWirelessProperty(network_id, options.network_property)
else:
wireless.SetWirelessProperty(network_id, \
options.network_property, options.set_to)
elif options.wired:
if not options.set_to: