mirror of
https://github.com/gryf/wicd.git
synced 2026-01-05 21:34:16 +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:
|
if self.pre_disconnect_script:
|
||||||
print 'Running pre-disconnect script'
|
print 'Running pre-disconnect script'
|
||||||
misc.ExecuteScript(expand_script_macros(self.pre_disconnect_script,
|
misc.ExecuteScript(expand_script_macros(self.pre_disconnect_script,
|
||||||
'pre-disconnection', (mac,
|
'pre-disconnection',
|
||||||
name)),
|
mac, name),
|
||||||
self.debug)
|
self.debug)
|
||||||
iface.ReleaseDHCP()
|
iface.ReleaseDHCP()
|
||||||
iface.SetAddress('0.0.0.0')
|
iface.SetAddress('0.0.0.0')
|
||||||
@@ -229,7 +229,7 @@ class Controller(object):
|
|||||||
print 'Running post-disconnect script'
|
print 'Running post-disconnect script'
|
||||||
misc.ExecuteScript(expand_script_macros(self.post_disconnect_script,
|
misc.ExecuteScript(expand_script_macros(self.post_disconnect_script,
|
||||||
'post-disconnection',
|
'post-disconnection',
|
||||||
(mac, name)),
|
mac, name),
|
||||||
self.debug)
|
self.debug)
|
||||||
|
|
||||||
def ReleaseDHCP(self):
|
def ReleaseDHCP(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user