# -c config only, don't tell networkmanager to change anything
# -f force interface reup
+# shellcheck disable=SC2317 # false positive
+
if ! test "$BASH_VERSION"; then echo "error: shell is not bash" >&2; exit 1; fi
shopt -s inherit_errexit 2>/dev/null ||: # ignore fail in bash < 4.4
set -eE -o pipefail
if ! type -p dig &>/dev/null; then
- apt-get install dig
+ apt-get -y install dig
+fi
+
+if ! type -p ethtool &>/dev/null; then
+ apt-get -y install ethtool
fi
+
get-cur
## end common setup / detection ##