misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
783ac61594
commit
96c617e152
@ -1,5 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# start mon0
|
||||||
/usr/bin/monstart
|
/usr/bin/monstart
|
||||||
|
|
||||||
|
# if usb0 or eth0 are up
|
||||||
if [[ $(ifconfig | grep usb0 | grep RUNNING) ]] || [[ !$(grep '1' /sys/class/net/eth0/carrier) ]]; then
|
if [[ $(ifconfig | grep usb0 | grep RUNNING) ]] || [[ !$(grep '1' /sys/class/net/eth0/carrier) ]]; then
|
||||||
# if override file exists, go into auto mode
|
# if override file exists, go into auto mode
|
||||||
if [ -f /root/.pwnagotchi-auto ]; then
|
if [ -f /root/.pwnagotchi-auto ]; then
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# blink 10 times to signal ready state
|
# blink 10 times to signal ready state
|
||||||
/usr/bin/bootblink 10 &
|
/usr/bin/bootblink 10 &
|
||||||
# start a detached screen session with bettercap
|
|
||||||
|
# if usb0 or eth0 are up
|
||||||
if [[ $(ifconfig | grep usb0 | grep RUNNING) ]] || [[ !$(grep '1' /sys/class/net/eth0/carrier) ]]; then
|
if [[ $(ifconfig | grep usb0 | grep RUNNING) ]] || [[ !$(grep '1' /sys/class/net/eth0/carrier) ]]; then
|
||||||
# if override file exists, go into auto mode
|
# if override file exists, go into auto mode
|
||||||
if [ -f /root/.pwnagotchi-auto ]; then
|
if [ -f /root/.pwnagotchi-auto ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user