mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge branch 'pwnagotchi-torch-testing' into pwnagotchi-torch-64
This commit is contained in:
@ -129,10 +129,10 @@ if __name__ == '__main__':
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if plugins_cmd.used_plugin_cmd(args):
|
if plugins_cmd.used_plugin_cmd(args):
|
||||||
config = utils.load_config(args)
|
config = utils.load_config(args)
|
||||||
log.setup_logging(args, config)
|
log.setup_logging(args, config)
|
||||||
rc = plugins_cmd.handle_cmd(args, config)
|
rc = plugins_cmd.handle_cmd(args, config)
|
||||||
sys.exit(rc)
|
sys.exit(rc)
|
||||||
|
|
||||||
if args.version:
|
if args.version:
|
||||||
print(pwnagotchi.__version__)
|
print(pwnagotchi.__version__)
|
||||||
|
@ -585,8 +585,10 @@
|
|||||||
- name: install old libpcap packages
|
- name: install old libpcap packages
|
||||||
become_user: root
|
become_user: root
|
||||||
apt:
|
apt:
|
||||||
deb: /usr/local/src/libpcap*
|
force: True
|
||||||
args: allow-downgrades
|
state: present
|
||||||
|
deb: "/usr/local/src/{{ item }}"
|
||||||
|
with_items: "{{ packages.apt.downgrade }}"
|
||||||
register: libpcap
|
register: libpcap
|
||||||
|
|
||||||
- name: add firmware packages to hold
|
- name: add firmware packages to hold
|
||||||
|
@ -79,7 +79,7 @@ def _cpu_stat():
|
|||||||
Returns the splitted first line of the /proc/stat file
|
Returns the splitted first line of the /proc/stat file
|
||||||
"""
|
"""
|
||||||
with open('/proc/stat', 'rt') as fp:
|
with open('/proc/stat', 'rt') as fp:
|
||||||
return list(map(int,fp.readline().split()[1:]))
|
return list(map(int, fp.readline().split()[1:]))
|
||||||
|
|
||||||
|
|
||||||
def cpu_load(tag=None):
|
def cpu_load(tag=None):
|
||||||
@ -130,7 +130,7 @@ def shutdown():
|
|||||||
|
|
||||||
def restart(mode):
|
def restart(mode):
|
||||||
logging.warning("restarting in %s mode ...", mode)
|
logging.warning("restarting in %s mode ...", mode)
|
||||||
|
mode = mode.upper()
|
||||||
if mode == 'AUTO':
|
if mode == 'AUTO':
|
||||||
os.system("touch /root/.pwnagotchi-auto")
|
os.system("touch /root/.pwnagotchi-auto")
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user