mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
add mode parameter to agent._restart, and call agent._restart from USR1 handler instead of pwnagotchi.restart()
This commit is contained in:
@ -323,7 +323,7 @@ def pwnagotchi_cli():
|
||||
|
||||
def usr1_handler(*unused):
|
||||
logging.info('Received USR1 singal. Restart process ...')
|
||||
restart("MANU" if args.do_manual else "AUTO")
|
||||
agent._restart("MANU" if args.do_manual else "AUTO")
|
||||
|
||||
signal.signal(signal.SIGUSR1, usr1_handler)
|
||||
|
||||
|
Reference in New Issue
Block a user