diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..744b214 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "bashdb", + "request": "launch", + "name": "Bash-Debug (simplest configuration)", + "program": "${file}" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..66959e4 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "bashIde.path": "/usr/local/bin/bash-language-server", + "bashIde.highlightParsingErrors": false, + "shellcheck.enableQuickFix": true, + "Quick open": true, + "Toggle render whitespace": true, + "bracket-pair-colorizer-2.colorMode": "Independent", +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..34ddbb0 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,21 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "run bash script", + "type": "shell", + "command": "${file}", + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "reveal": "always", + "focus": true, + "panel": "dedicated" + } + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 12083f9..0da12ff 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ Main UI with graph on. Config files stored in "$HOME/.config/spdtest" folder #### spdtest.cfg: (auto generated if not found) + ```bash net_device="auto" #* Network interface to get current speed from, set to "auto" to get default interface from "ip route" command unit="megabit" #* Default speed value to use, valid values are "megabit" and "megabyte" @@ -78,12 +79,13 @@ mtrpings="25" #* Number of pings sent with mtr testonly="false" #* If "true", never enter UI mode, always run full tests and quit testnum="1" #* Number of times to loop full tests in testonly mode -ookla_speedtest="speedtest" #* Command or full path to official speedtest client +ookla_speedtest="speedtest" #* Command or full path to official speedtest client trace_errors="true" #* In event of error print line number of offending command to $HOME/.config/spdtest/errors ``` #### route.cfg.sample: (rename to route.cfg to use additional hosts in route test) + ```bash #? List of routes to test with mtr #? Format: @@ -109,6 +111,7 @@ routelistport["amazon.com"]="auto" ``` #### Command line options: (to be updated) + ``` USAGE: ./spdtest.sh [OPTIONS]