1
0
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:
Andrew Psaltis
2010-01-27 14:06:21 -05:00
parent fa7f9743c7
commit cdc88f4ac0

View File

@@ -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):