1
0
mirror of https://github.com/gryf/wicd.git synced 2026-03-12 20:45:52 +01:00

Add support in the daemon for setting hostnames in dhcpcd, pump, and udhcpc. No client support yet.

This commit is contained in:
Andrew Psaltis
2009-08-22 21:12:33 -04:00
parent 126a4e145e
commit 33ae33e660
3 changed files with 18 additions and 12 deletions

View File

@@ -18,6 +18,7 @@ class WirelessDaemon() -- DBus interface to managed the wireless network.
# Copyright (C) 2007 - 2009 Adam Blackburn
# Copyright (C) 2007 - 2009 Dan O'Reilly
# Copyright (C) 2007 - 2009 Byron Hillis
# Copyright (C) 2009 Andrew Psaltis
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License Version 2 as
@@ -1457,6 +1458,7 @@ class WiredDaemon(dbus.service.Object):
"postdisconnectscript"]:
self.config.set(profilename, option, None)
self.config.set(profilename, "default", default)
self.config.set(profilename,"dhcphostname",os.uname()[1])
self.config.write()
return True