From 8ed5838dae9e2ce94a7373057e465d8aac2a1c28 Mon Sep 17 00:00:00 2001 From: Johannes Truschnigg Date: Sat, 3 Sep 2022 13:13:31 +0200 Subject: [PATCH] Config wizard: cosmetic improvements --- sqm_lagthrottle_suggest_config.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sqm_lagthrottle_suggest_config.sh b/sqm_lagthrottle_suggest_config.sh index 747dced..212bcd1 100755 --- a/sqm_lagthrottle_suggest_config.sh +++ b/sqm_lagthrottle_suggest_config.sh @@ -49,7 +49,7 @@ set -u _h "sqm_lagthrottle configuration wizard - WELCOME" echo "" >&2 printf 'This script will prompt you for a number of settings\n(recommending sensible defaults where thought possible)\nrequired for proper operation of sqm_lagthrottle.\n\nPlease take a few minutes to follow its instructions\nto make the most out of dynamically adjusting your\nbandwidth shaper.\n' -_goon +echo "" >&2 printf 'After this process, a configuration file drop-in will be created at\n\t%s\n\nYou may rename and use that file as your sqm_lagthrottle configuration\nfile as per its instructions.\n' "${cfgo}" >&2 echo "" >&2 @@ -95,7 +95,7 @@ then fi _goon -_h "configure sqm_lagthrottle behavior" +_h "configure sqm_lagthrottle bias" printf 'sqm_lagthrottle can be configured to prioritize bandwith over latency,\nor vice versa.\n\nIf you would prefer to keep configured target bandwidth high even in\nthe face of worsening latency/bufferbloat, please key in "bandwith" below.\n\nAll other inputs will lead to a preference for lower latency.\n\n\t' read bw_or_lat_bias if [ x${bw_or_lat_bias} = xbandwidth ] @@ -105,7 +105,9 @@ else bw_or_lat_bias="latency" fi printf 'Effective choice: [%s]\n\n' "${bw_or_lat_bias}" +_goon +_h "configure sqm_lagthrottle eagerness" printf 'sqm_lagthrottle can be configured to be eager or more relaxed\nwhen making shaper adjustment decisions.\n\nWith eager mode, decisions to try to react meaningfully to changing\ncircumstances are taken more often.\n\nIn relaxed mode, the bandwidth limits will be adjusted less frequently,\nwhich MAY save some CPU time.\n\nKeying in "relaxed" below chooses that mode.\nAll other inputs will lead to eager operation.\n\n\t' read relaxed_or_eager if [ x${relaxed_or_eager} = xrelaxed ] @@ -211,6 +213,7 @@ echo "" >&2 printf 'Suggested configuration values saved to\n\t%s\n\n' "${cfgo}" >&2 _goon 'Hit the [ENTER] to display full stats, or [CTRL]+[C] to exit.' >&2 +_h "Extended ping statistics (informational only)" cat "${sto}" >&2 echo "" >&2 printf 'In case you missed it the first time around:\nSuggested configuration values saved to\n\t%s\n\n' "${cfgo}" >&2 -- 2.39.5