mirror of
https://github.com/gryf/wicd.git
synced 2026-03-10 11:35:49 +01:00
added value to be passed if there is no essid/bssid
This commit is contained in:
@@ -205,10 +205,10 @@ class Controller(object):
|
|||||||
""" Disconnect from the network. """
|
""" Disconnect from the network. """
|
||||||
iface = self.iface
|
iface = self.iface
|
||||||
# mac and name need to be strings
|
# mac and name need to be strings
|
||||||
if mac == None:
|
if mac in (None, ''):
|
||||||
mac = ''
|
mac = 'X'
|
||||||
if name == None:
|
if name in (None, ''):
|
||||||
name = ''
|
name = 'X'
|
||||||
misc.ExecuteScripts(wpath.predisconnectscripts, self.debug,
|
misc.ExecuteScripts(wpath.predisconnectscripts, self.debug,
|
||||||
extra_parameters=(nettype, name, mac))
|
extra_parameters=(nettype, name, mac))
|
||||||
if self.pre_disconnect_script:
|
if self.pre_disconnect_script:
|
||||||
|
|||||||
Reference in New Issue
Block a user