V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 39s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 39s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
|
||||
if [[ ${HANDLER_BRA} = 1 ]]; then
|
||||
|
||||
do_log "info" "true" "Branch 'testing' confirmed: '${BRANCH_SELECTION}'."
|
||||
do_log "info" "file_only" "Branch 'testing' confirmed: '${BRANCH_SELECTION}'."
|
||||
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
do_log "info" "false" "Live environment DHCP information collection: timeout='${network_timeout_dhcp}' seconds. Please wait."
|
||||
do_log "info" "file_only" "Live environment DHCP information collection: timeout='${network_timeout_dhcp}' seconds. Please wait."
|
||||
|
||||
dhclient -v -1 "${var_auto_nic}" 2>&1 | timeout "${network_timeout_dhcp}" dhcpdump -i "${var_auto_nic}" >> "${LOG_NIC}" || true
|
||||
awk 'BEGIN {RS="---------------------------------------------------------------------------"; \
|
||||
ORS="---------------------------------------------------------------------------"} \
|
||||
NF {last=$0} END {print last}' "${LOG_NIC}" > "${LOG_NIC}".tmp && mv "${LOG_NIC}".tmp "${LOG_NIC}"
|
||||
|
||||
do_log "info" "false" "Live environment DHCP information collection: collection completed."
|
||||
do_log "info" "file_only" "Live environment DHCP information collection: collection completed."
|
||||
|
||||
### Extract 'FQDN' from '${LOG_NIC}'
|
||||
var_auto_fqdn=$(awk -F 'Host name' '/Host name/ {print $2}' "${LOG_NIC}" | xargs)
|
||||
|
||||
Reference in New Issue
Block a user