V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -13,11 +13,13 @@
|
||||
guard_sourcing
|
||||
|
||||
#######################################
|
||||
# Specify the NIC interactively for setup.
|
||||
# Specify the network interface card (NIC) interactively for setup.
|
||||
# Globals:
|
||||
# DIR_TMP
|
||||
# Arguments:
|
||||
# None
|
||||
# None
|
||||
# Returns:
|
||||
# 0: Successfully executed commands.
|
||||
#######################################
|
||||
check_nic() {
|
||||
ip -o link show | awk -F': ' '{print $2}' | sed 's!lo!!' | sed '/^$/d' | awk '{$1=$1};1' >| "${DIR_TMP}nic.tmp"
|
||||
@@ -35,6 +37,7 @@ check_nic() {
|
||||
var_nic=$(dialog --ascii-lines --clear --backtitle "Specify the NIC for setup" --radiolist "NIC available" 0 0 ${var_counter} ${var_radiolist} 3>&1 1>&2 2>&3)
|
||||
clear
|
||||
|
||||
do_log "info" "false" "You have selected: '${var_nic}' - proceeding with setup."
|
||||
do_log "info" "true" "You have selected: '${var_nic}' - proceeding with setup."
|
||||
return 0
|
||||
}
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
|
||||
Reference in New Issue
Block a user