lots: shellcheck, streaming stuff, fixes
[distro-setup] / trusted-network
index 825604e8421e21698b066860f0fb8dfe3807b471..755fb1f5239dd999f2388471ee6fe09e352eb25b 100755 (executable)
@@ -8,8 +8,6 @@
 
 source /a/bin/bash-bear-trap/bash-bear
 
-readonly this_file=$(readlink -f -- "${BASH_SOURCE[0]}")
-readonly this_dir="${this_file%/*}"
 script_name="${BASH_SOURCE[0]}"
 script_name="${script_name##*/}"
 
@@ -92,7 +90,7 @@ fi
 
 
 # wait for networkmanager to come back
-for f in {1..20}; do
+for ((i=0; i<10; i++)); do
   if read -r _ _ _ _  gateway_if _ < <(ip route get 8.8.8.8); then
     break
   fi