From 96c617e1521c28f5a4b0ee7f6acb6e6d15490fdb Mon Sep 17 00:00:00 2001
From: Simone Margaritelli <evilsocket@gmail.com>
Date: Thu, 31 Oct 2019 12:56:27 +0100
Subject: [PATCH] misc: small fix or general refactoring i did not bother
 commenting

---
 builder/data/usr/bin/bettercap-launcher  | 3 +++
 builder/data/usr/bin/pwnagotchi-launcher | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/builder/data/usr/bin/bettercap-launcher b/builder/data/usr/bin/bettercap-launcher
index 29be33e..c3cdde2 100755
--- a/builder/data/usr/bin/bettercap-launcher
+++ b/builder/data/usr/bin/bettercap-launcher
@@ -1,5 +1,8 @@
 #!/usr/bin/env bash
+# start mon0
 /usr/bin/monstart
+
+# if usb0 or eth0 are up
 if [[ $(ifconfig | grep usb0 | grep RUNNING) ]] || [[ !$(grep '1' /sys/class/net/eth0/carrier) ]]; then
   # if override file exists, go into auto mode
   if [ -f /root/.pwnagotchi-auto ]; then
diff --git a/builder/data/usr/bin/pwnagotchi-launcher b/builder/data/usr/bin/pwnagotchi-launcher
index 8042e9b..079467e 100755
--- a/builder/data/usr/bin/pwnagotchi-launcher
+++ b/builder/data/usr/bin/pwnagotchi-launcher
@@ -1,7 +1,8 @@
 #!/usr/bin/env bash
 # blink 10 times to signal ready state
 /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 override file exists, go into auto mode
   if [ -f /root/.pwnagotchi-auto ]; then