From ef72026e04623c48873f556902fb7e79cfdc4b9a Mon Sep 17 00:00:00 2001 From: Andrew Psaltis Date: Wed, 18 Nov 2009 09:45:05 -0500 Subject: [PATCH] Swapped the order of the command line arguments for the dhcp clients and removed the quotes around the hostnames. --- wicd/wnettools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wicd/wnettools.py b/wicd/wnettools.py index f21c2d2..e740fba 100644 --- a/wicd/wnettools.py +++ b/wicd/wnettools.py @@ -278,17 +278,17 @@ class BaseInterface(object): 'id' : misc.DHCLIENT, }, "pump" : - { 'connect' : r"%(cmd)s -h '%(hostname)s' -i %(iface)s", + { 'connect' : r"%(cmd)s -i %(iface)s -h %(hostname)s", 'release' : r"%(cmd)s -r -i %(iface)s", 'id' : misc.PUMP, }, "dhcpcd" : - {'connect' : r"%(cmd)s -h '%(hostname)s' %(iface)s ", + {'connect' : r"%(cmd)s %(iface)s -h %(hostname)s ", 'release' : r"%(cmd)s -k %(iface)s", 'id' : misc.DHCPCD, }, "udhcpc": - {'connect' : r"%(cmd)s -H '%(hostname)s' -n -i %(iface)s", + {'connect' : r"%(cmd)s -n -i %(iface)s -H %(hostname)s ", 'release' : r"killall -SIGUSR2 %(cmd)s", 'id' : misc.UDHCPC, },