_restore_saved_bw() {
- echo 'Restoring saved bandwith limits...' >&2
+ echo 'Restoring saved bandwidth limits...' >&2
(
set -x
tc qdisc change root dev "${IFACE_RX}" cake bandwidth "${saved_bw_rx}"
if [ -e /sys/class/net/"${iface_tx}" ]
then
printf 'Auto-detected dependent upstream (tx) device:\n\t%s\n\n' "${iface_tx}" >&2
- printf 'Possible choices:\n\t%s\n\n' "$(cd /sys/class/net/; for dev in *; do printf '%s ' "${dev}" >&2; done)" >&2
+ printf 'Possible choices:\n\t%s\n\n' "$(cd /sys/class/net/; for dev in *; do printf '%s ' "${dev}"; done)" >&2
printf 'Please confirm this by supplying either this interface name again,\nor a custom value to replace it:\n\t' >&2
else
printf 'Failed to auto-detect a suitable upstream/tx interface.\nPlease key in the proper interface name.\n\t' >&2
if ! [ ${bw_down_min}0 -lt ${bw_down_max}0 ]
then
- printf 'FATAL: Maximum shaping bandwith must be greater than the minimum.\n'
+ printf 'FATAL: Maximum shaping bandwidth must be greater than the minimum.\n'
exit 1
fi
printf 'Effective RX bandwidth range: [%dKbps ... %dKbps]\n\n' "${bw_down_min}" "${bw_down_max}"
_goon
_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 the dynamic 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'
+printf 'sqm_lagthrottle can be configured to prioritize bandwidth over latency,\nor vice versa.\n\nIf you would prefer to keep the dynamic target bandwidth high even in\nthe face of worsening latency/bufferbloat, please key in "bandwidth" 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 ]
then