Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion automated/linux/ethernet/ethernet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ip addr
ip addr show "${INTERFACE}"

# Get IP address of a given interface
IP_ADDR=$(ip addr show "${INTERFACE}" | grep -a2 "state UP" | tail -1 | awk '{print $2}' | cut -f1 -d'/')
IP_ADDR=$(ip addr show "${INTERFACE}" | grep -A2 "state UP" | tail -1 | awk '{print $2}' | cut -f1 -d'/')

[ -n "${IP_ADDR}" ]
exit_on_fail "ethernet-ping-state-UP" "ethernet-ping-route"
Expand Down