misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
0f171c35ce
commit
a25395a945
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user