t12 related changes
[automated-distro-installer] / fai / config / distro-install-common / ethusb-static
index 0a6d1ae9a85e15af9d06d2008079eb829a44824e..5ca8b933b3afc2843e6f545920624b9bf69ea402 100755 (executable)
@@ -25,6 +25,8 @@
 # -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
@@ -213,9 +215,14 @@ fi
 
 
 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 ##