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
|
- 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