From d041811a7872a301164de49aa1336bb8dcb0539f Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Tue, 30 Sep 2008 13:43:02 -1000 Subject: Store nameserver in NetworkDevice object. Store provided nameserver as the 'DNS1' value in the NetworkDevice object, rather than writing out resolv.conf from the netconfig interface code. --- textw/netconfig_text.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'textw') diff --git a/textw/netconfig_text.py b/textw/netconfig_text.py index 8efeb5d18..323261bcf 100644 --- a/textw/netconfig_text.py +++ b/textw/netconfig_text.py @@ -237,9 +237,7 @@ class NetworkConfiguratorText: try: if ns: network.sanityCheckIPString(ns) - f = open("/etc/resolv.conf", "w") - f.write("nameserver %s\n" % ns) - f.close() + netdev.set(("DNS1", ns)) except network.IPError, msg: self._handleIPError(_("Nameserver"), msg) continue -- cgit