From a25395a945cd54ad8bdd7f1b89295c68add60077 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Thu, 24 Oct 2019 17:52:43 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pwnagotchi/__init__.py b/pwnagotchi/__init__.py index cc1262be..f79ecee5 100644 --- a/pwnagotchi/__init__.py +++ b/pwnagotchi/__init__.py @@ -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")