]> johannes.truschnigg.info Git - sqm_lagthrottle/commitdiff
Drop unused script reflector_detect
authorJohannes Truschnigg <johannes@truschnigg.info>
Sat, 3 Sep 2022 17:36:41 +0000 (19:36 +0200)
committerJohannes Truschnigg <johannes@truschnigg.info>
Sat, 3 Sep 2022 17:36:41 +0000 (19:36 +0200)
reflector_detect [deleted file]

diff --git a/reflector_detect b/reflector_detect
deleted file mode 100755 (executable)
index 63903ba..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-get_first_pingpeer() {
-  traceroute -n "${1}" | while read num peer lat1 _ lat2 _ lat3 _
-  do
-    case "${num}" in
-      [123456789]*)
-        if ping -c 1 -s 1280 -W 2 -w 2 "${peer}" >/dev/null 2>/dev/null
-        then
-          printf '# %s - hop #%d (%s) responds to ICMP ECHO\n' "${1}" "${num}" "${peer}"
-          printf 'PEER %s\n' "${peer}"
-          break
-        fi
-      ;;
-      *)
-        : pass $num $peer
-      ;;
-    esac
-  done
-}
-
-
-for p in 8.8.8.8 1.1.1.1 example.com google.com
-do
-  get_first_pingpeer "${p}"
-done