mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
auto-update.py: Added aarch64 check for pwngrid/bettercap
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -129,12 +129,10 @@ def install(display, update):
|
|||||||
|
|
||||||
logging.info("[update] stopping %s ..." % update['service'])
|
logging.info("[update] stopping %s ..." % update['service'])
|
||||||
os.system("service %s stop" % update['service'])
|
os.system("service %s stop" % update['service'])
|
||||||
os.system("service pwnagotchi stop")
|
|
||||||
os.system("mv %s %s" % (source_path, dest_path))
|
os.system("mv %s %s" % (source_path, dest_path))
|
||||||
os.system("chmod +x %s/*" % dest_path)
|
os.system("chmod +x /usr/local/bin/%s" % name)
|
||||||
logging.info("[update] restarting %s ..." % update['service'])
|
logging.info("[update] restarting %s ..." % update['service'])
|
||||||
os.system("service %s start" % update['service'])
|
os.system("service %s start" % update['service'])
|
||||||
os.system("service pwnagotchi start")
|
|
||||||
else:
|
else:
|
||||||
if not os.path.exists(source_path):
|
if not os.path.exists(source_path):
|
||||||
source_path = "%s-%s" % (source_path, update['available'])
|
source_path = "%s-%s" % (source_path, update['available'])
|
||||||
|
Reference in New Issue
Block a user