mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Small fixes
This commit is contained in:
@ -176,7 +176,11 @@ def pwnagotchi_cli():
|
|||||||
os.system("rm /root/.auto-update && systemctl restart pwnagotchi")
|
os.system("rm /root/.auto-update && systemctl restart pwnagotchi")
|
||||||
os.system("systemctl restart pwnagotchi")
|
os.system("systemctl restart pwnagotchi")
|
||||||
print("Okay, give me a couple minutes. Just watch pwnlog while you wait.")
|
print("Okay, give me a couple minutes. Just watch pwnlog while you wait.")
|
||||||
|
elif user_input.lower() in ('n', 'no'):
|
||||||
print("Okay, guess not!")
|
print("Okay, guess not!")
|
||||||
|
else:
|
||||||
|
print("Invalid input.")
|
||||||
|
else:
|
||||||
print("You are currently on the latest release, v%s." % pwnagotchi.__version__)
|
print("You are currently on the latest release, v%s." % pwnagotchi.__version__)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
@ -39,10 +39,8 @@ reload_brcm() {
|
|||||||
start_monitor_interface() {
|
start_monitor_interface() {
|
||||||
rfkill unblock all
|
rfkill unblock all
|
||||||
ifconfig wlan0 up
|
ifconfig wlan0 up
|
||||||
sleep 3
|
|
||||||
iw dev wlan0 set power_save off
|
iw dev wlan0 set power_save off
|
||||||
iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add wlan0mon type monitor
|
iw phy "$(iw phy | head -1 | cut -d" " -f2)" interface add wlan0mon type monitor
|
||||||
sleep 2
|
|
||||||
rfkill unblock all
|
rfkill unblock all
|
||||||
ifconfig wlan0 down
|
ifconfig wlan0 down
|
||||||
ifconfig wlan0mon up
|
ifconfig wlan0mon up
|
||||||
|
@ -7,6 +7,7 @@ EPD_HEIGHT = 128
|
|||||||
|
|
||||||
disp = SH1106.SH1106()
|
disp = SH1106.SH1106()
|
||||||
|
|
||||||
|
|
||||||
class EPD(object):
|
class EPD(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
Reference in New Issue
Block a user