mirror of
https://github.com/gryf/wicd.git
synced 2025-12-24 07:02:29 +01:00
Fixed bug in script macro expansion.
This commit is contained in:
@@ -215,8 +215,8 @@ class Controller(object):
|
||||
if self.pre_disconnect_script:
|
||||
print 'Running pre-disconnect script'
|
||||
misc.ExecuteScript(expand_script_macros(self.pre_disconnect_script,
|
||||
'pre-disconnection', (mac,
|
||||
name)),
|
||||
'pre-disconnection',
|
||||
mac, name),
|
||||
self.debug)
|
||||
iface.ReleaseDHCP()
|
||||
iface.SetAddress('0.0.0.0')
|
||||
@@ -229,7 +229,7 @@ class Controller(object):
|
||||
print 'Running post-disconnect script'
|
||||
misc.ExecuteScript(expand_script_macros(self.post_disconnect_script,
|
||||
'post-disconnection',
|
||||
(mac, name)),
|
||||
mac, name),
|
||||
self.debug)
|
||||
|
||||
def ReleaseDHCP(self):
|
||||
|
||||
Reference in New Issue
Block a user