1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-24 23:22:27 +01:00

Swapped the order of the command line arguments for the dhcp clients and removed the

quotes around the hostnames.
This commit is contained in:
Andrew Psaltis
2009-11-18 09:45:05 -05:00
parent ae477daa22
commit ef72026e04

View File

@@ -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,
},