mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
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)
|
logging.debug("new hosts:\n%s\n" % patched)
|
||||||
fp.write(patched)
|
fp.write(patched)
|
||||||
|
|
||||||
|
os.system("hostname '%s'" % new_name)
|
||||||
_name = new_name
|
_name = new_name
|
||||||
logging.info("restarting avahi ...")
|
logging.info("restarting avahi ...")
|
||||||
os.system("service avahi-daemon restart")
|
os.system("service avahi-daemon restart")
|
||||||
|
Reference in New Issue
Block a user