X-Git-Url: http://git.datanom.net/netconf.git/blobdiff_plain/c947c6e240b4c322ac911a79c1ea220de970bbae..6da15cee0bbf8fcdc6dbf32cbcd308e79c32f623:/netconf diff --git a/netconf b/netconf index 9dd9a81..0374493 100644 --- a/netconf +++ b/netconf @@ -160,8 +160,8 @@ def main(): print while not dns: dns = raw_input('Enter nameserver: ') - cmd = "echo 'nameserver %s' >> /etc/resolv.conf" % dns - cmd += '&& cp /etc/nsswitch.conf{,.bak}' + cmd = "echo 'nameserver %s' >> /etc/resolv.conf " % dns + cmd += '&& cp /etc/nsswitch.conf{,.bak} ' cmd += '&& cp /etc/nsswitch.{dns,conf}' (out, err) = runcmd(cmd) if err: