Skip to content
Snippets Groups Projects
Commit 4524a7ca authored by Christopher R. Gabriel's avatar Christopher R. Gabriel
Browse files

fixes #555 - fixed dhclient.conf path

parent 256f8d0d
No related branches found
No related tags found
No related merge requests found
2012-06-06 Christopher R. Gabriel <cgabriel@truelite.it>
* fussclient/actions.py (DhcpClient.real_do): precise
dhclient.conf file path changed on ubuntu 12.04
2008-03-09 Christopher R. Gabriel <cgabriel@truelite.it>
* fuss-client (set_nss_pam_configuration): added Ubuntu Gutsy workaround
......
fuss-client (6.0.1-1fuss1) precise; urgency=low
* fixes #555 - dhclient.conf file path
-- Christopher R. Gabriel <cgabriel@truelite.it> Wed, 06 Jun 2012 15:40:19 +0200
fuss-client (6.0) precise; urgency=low
* initial port to precise 12.04
......
......@@ -72,13 +72,13 @@ class NetworkRegister(Action):
os.system("service networking restart")
class DhcpClient(Action):
files = ['/etc/dhcp3/dhclient.conf']
files = ['/etc/dhcp/dhclient.conf']
description = _('Set DHCP Configuration')
priority = 25
def real_do(self):
lines = open("/etc/dhcp3/dhclient.conf").readlines()
lines = open("/etc/dhcp/dhclient.conf").readlines()
found = False
nf = open("/etc/dhcp3/dhclient.conf", "w")
nf = open("/etc/dhcp/dhclient.conf", "w")
hostname = os.popen("hostname").read().strip()
good_line = 'send host-name "%s";\n' % hostname
for line in lines:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment