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:
@ -585,8 +585,10 @@
|
||||
- name: install old libpcap packages
|
||||
become_user: root
|
||||
apt:
|
||||
deb: /usr/local/src/libpcap*
|
||||
args: allow-downgrades
|
||||
force: True
|
||||
state: present
|
||||
deb: "/usr/local/src/{{ item }}"
|
||||
with_items: "{{ packages.apt.downgrade }}"
|
||||
register: libpcap
|
||||
|
||||
- name: add firmware packages to hold
|
||||
|
@ -79,7 +79,7 @@ def _cpu_stat():
|
||||
Returns the splitted first line of the /proc/stat file
|
||||
"""
|
||||
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):
|
||||
@ -130,7 +130,7 @@ def shutdown():
|
||||
|
||||
def restart(mode):
|
||||
logging.warning("restarting in %s mode ...", mode)
|
||||
|
||||
mode = mode.upper()
|
||||
if mode == 'AUTO':
|
||||
os.system("touch /root/.pwnagotchi-auto")
|
||||
else:
|
||||
|
Reference in New Issue
Block a user