From: Johannes Truschnigg Date: Sun, 20 Mar 2022 10:24:14 +0000 (+0100) Subject: Rename script suite to sqm_lagthrottle X-Git-Url: https://johannes.truschnigg.info/gitweb/?a=commitdiff_plain;h=6f4a9dc0dfcd52d90950d0b7b1851e9b6512a44e;p=sqm_lagthrottle Rename script suite to sqm_lagthrottle --- diff --git a/__lagdetect.awk b/__sqm_lagthrottle.awk similarity index 100% rename from __lagdetect.awk rename to __sqm_lagthrottle.awk diff --git a/lagdetect.sh b/sqm_lagthrottle.sh similarity index 94% rename from lagdetect.sh rename to sqm_lagthrottle.sh index 880d357..3103281 100755 --- a/lagdetect.sh +++ b/sqm_lagthrottle.sh @@ -24,8 +24,9 @@ # CONFIGURATION - adapt these variables to yor needs # These will be docmented once this is finished - promise ;) -# HINT: You may want to use lagdetect_suggest_config from this distribution to -# get (hopefully) sensible configration values for FUDGE_MS and PING_PEERS. +# HINT: You may want to use sqm_lagthrottle_suggest_config.sh from this +# distribution to get (hopefully) sensible configration values for FUDGE_MS and +# PING_PEERS. FUDGE_MS=20.0 # "fudge" factor in msec that yor PING_PEERS are expected to fluctuate in latency under normal conditions PING_PEERS='1.1.1.1 8.8.8.8' # space-separated list of peer addresses to ping @@ -103,9 +104,9 @@ do done -if ! test -r ./__lagdetect.awk +if ! test -r ./__sqm_lagthrottle.awk then - printf 'FATAL: "__lagdetect.awk" not found; are you in the correct directory?"\n' + printf 'FATAL: "__sqm_lagthrottle.awk" not found; are you in the correct directory?"\n' exit 1 fi @@ -238,4 +239,4 @@ fping --loop --retry=1 --size=1280 --period="${PING_INTERVAL}" --random ${PING_P -v PINGSLOTS="${PING_SLOTS_PER_PEER}" \ -v FUDGE="${FUDGE_MS}" \ -v PING_PEERS="${PING_PEERS}" \ - -f ./__lagdetect.awk + -f ./__sqm_lagthrottle.awk diff --git a/lagdetect_suggest_config b/sqm_lagthrottle_suggest_config.sh similarity index 96% rename from lagdetect_suggest_config rename to sqm_lagthrottle_suggest_config.sh index 654abfe..7a698bb 100755 --- a/lagdetect_suggest_config +++ b/sqm_lagthrottle_suggest_config.sh @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -for p in sort sleep cat awk fping +for p in sort sleep cat awk tee fping do type "${p}" >/dev/null || { printf 'FATAL: Required program "%s" not installed.\n' "${p}" >&2; exit 1; } done @@ -27,7 +27,7 @@ POTENTIAL_PING_PEERS='1.1.1.1 8.8.8.8 a.root-servers.net b.root-servers.net c.ro set -u echo "This script will ping potential peers for two minutes," >&2 -echo "record stats, and recommend configuration values for lagdetect.sh" >&2 +echo "record stats, and recommend configuration values for sqm_lagthrottle.sh" >&2 echo "" >&2 echo "Please keep your Internet-directed traffic at a minimum while pinging." >&2 echo "" >&2