misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
@@ -34,6 +34,7 @@ def set_name(new_name):
|
||||
logging.debug("new hosts:\n%s\n" % patched)
|
||||
fp.write(patched)
|
||||
|
||||
os.system("hostname '%s'" % new_name)
|
||||
_name = new_name
|
||||
logging.info("restarting avahi ...")
|
||||
os.system("service avahi-daemon restart")
|
||||
|
Reference in New Issue
Block a user