V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 52s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 52s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -51,42 +51,6 @@ generate_subnetmask() {
|
||||
return 0
|
||||
}
|
||||
|
||||
#######################################
|
||||
# Collect NIC driver modules for initramfs installation.
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
# 0: on success
|
||||
#######################################
|
||||
#grep_nic_driver_modules() {
|
||||
# ### Collect all ethernet driver names and sort them uniquely.
|
||||
# declare -a _mods
|
||||
# declare var_nic_module var_nic_modules
|
||||
# # shellcheck disable=SC2312
|
||||
# readarray -t _mods < <(
|
||||
# lspci -k \
|
||||
# | grep -A2 -i ethernet \
|
||||
# | grep 'Kernel driver in use' \
|
||||
# | awk '{print $5}' \
|
||||
# | sort -u
|
||||
# )#
|
||||
#
|
||||
# ### If only one entry remains, save it in 'var_nic_module', otherwise save all modules in 'var_nic_modules'.
|
||||
# if [[ "${#_mods[@]}" -eq 1 ]]; then
|
||||
# var_nic_module="${_mods[0]}"
|
||||
# else
|
||||
# var_nic_modules="${_mods[*]}"
|
||||
# fi
|
||||
#
|
||||
# if [[ -n "${var_nic_module}" ]]; then
|
||||
# echo "${var_nic_module}"
|
||||
# else
|
||||
# echo "${var_nic_modules}"
|
||||
# fi
|
||||
#
|
||||
# return 0
|
||||
#}
|
||||
|
||||
#######################################
|
||||
# Collect NIC driver modules for initramfs installation (no lspci required).
|
||||
# Uses '/sys' introspection to stay independent of pciutils/ethtool.
|
||||
|
||||
Reference in New Issue
Block a user