getminera/minera

motd.sh - eth0 or wlan0 check

pazor opened this issue · 0 comments

pazor commented

device=$(ip link | grep -q eth0 && echo eth0 || echo wlan0)
label5="$(extend "$(ip addr show $device | grep 'inet\b' | awk '{print $2}' | cut -d/ -f1)")"