mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -79,12 +79,12 @@ is_auto_mode() {
|
|||||||
|
|
||||||
# if usb0 is up, we're in MANU
|
# if usb0 is up, we're in MANU
|
||||||
if is_interface_up usb0; then
|
if is_interface_up usb0; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if eth0 is up (for other boards), we're in MANU
|
# if eth0 is up (for other boards), we're in MANU
|
||||||
if is_interface_up eth0; then
|
if is_interface_up eth0; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# no override, but none of the interfaces is up -> AUTO
|
# no override, but none of the interfaces is up -> AUTO
|
||||||
@ -105,12 +105,12 @@ is_auto_mode_no_delete() {
|
|||||||
|
|
||||||
# if usb0 is up, we're in MANU
|
# if usb0 is up, we're in MANU
|
||||||
if is_interface_up usb0; then
|
if is_interface_up usb0; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if eth0 is up (for other boards), we're in MANU
|
# if eth0 is up (for other boards), we're in MANU
|
||||||
if is_interface_up eth0; then
|
if is_interface_up eth0; then
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# no override, but none of the interfaces is up -> AUTO
|
# no override, but none of the interfaces is up -> AUTO
|
||||||
|
Reference in New Issue
Block a user