iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
t12 related changes
[automated-distro-installer]
/
fai
/
config
/
distro-install-common
/
ethusb-static
diff --git
a/fai/config/distro-install-common/ethusb-static
b/fai/config/distro-install-common/ethusb-static
index 0a6d1ae9a85e15af9d06d2008079eb829a44824e..5ca8b933b3afc2843e6f545920624b9bf69ea402 100755
(executable)
--- a/
fai/config/distro-install-common/ethusb-static
+++ b/
fai/config/distro-install-common/ethusb-static
@@
-25,6
+25,8
@@
# -c config only, don't tell networkmanager to change anything
# -f force interface reup
# -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 ! 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
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
fi
+
get-cur
## end common setup / detection ##
get-cur
## end common setup / detection ##