mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -537,31 +537,31 @@
|
||||
echo
|
||||
echo "(◕‿‿◕) $_hostname"
|
||||
echo
|
||||
echo "Hi! I'm a pwnagotchi $_version, please take good care of me!"
|
||||
echo "Here are some basic things you need to know to raise me properly!"
|
||||
echo " Hi! I'm a pwnagotchi $_version, please take good care of me!"
|
||||
echo " Here are some basic things you need to know to raise me properly!"
|
||||
echo
|
||||
echo "If you want to change my configuration, use /etc/pwnagotchi/config.toml"
|
||||
echo " If you want to change my configuration, use /etc/pwnagotchi/config.toml"
|
||||
echo
|
||||
echo "All the configuration options can be found on /etc/pwnagotchi/default.toml,"
|
||||
echo "but don't change this file because I will recreate it every time I'm restarted!"
|
||||
echo " All the configuration options can be found on /etc/pwnagotchi/default.toml,"
|
||||
echo " but don't change this file because I will recreate it every time I'm restarted!"
|
||||
echo
|
||||
echo "I use oPwnGrid as my main API, you can check stats at https://opwngrid.xyz"
|
||||
echo " I use oPwnGrid as my main API, you can check stats at https://opwngrid.xyz"
|
||||
echo
|
||||
echo "I'm managed by systemd. Here are some basic commands."
|
||||
echo " I'm managed by systemd. Here are some basic commands."
|
||||
echo
|
||||
echo "If you want to know what I'm doing, you can check my logs with the command"
|
||||
echo "- pwnlog"
|
||||
echo "- pwnver, to check the current version"
|
||||
echo "- sudo pwnagotchi --donate, to see how you can donate to this project"
|
||||
echo "- sudo pwnagotchi --check-update, to see if there is a new version available"
|
||||
echo " If you want to know what I'm doing, you can check my logs with the command"
|
||||
echo " - pwnlog"
|
||||
echo " - sudo pwnagotchi --version, to check the current version"
|
||||
echo " - sudo pwnagotchi --donate, to see how you can donate to this project"
|
||||
echo " - sudo pwnagotchi --check-update, to see if there is a new version available"
|
||||
echo
|
||||
echo "If you want to know if I'm running, you can use"
|
||||
echo "sudo systemctl status pwnagotchi"
|
||||
echo " If you want to know if I'm running, you can use"
|
||||
echo " systemctl status pwnagotchi"
|
||||
echo
|
||||
echo "You can restart me using"
|
||||
echo "sudo systemctl restart pwnagotchi"
|
||||
echo " You can restart me using"
|
||||
echo " systemctl restart pwnagotchi"
|
||||
echo
|
||||
echo "You learn more about me at https://pwnagotchi.ai/"
|
||||
echo " You learn more about me at https://pwnagotchi.ai/"
|
||||
when: hostname.changed
|
||||
|
||||
- name: Add pwnlog alias
|
||||
|
@ -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