Fix output IPv4 addr when removing CIDR notation (#1498)

This commit is contained in:
WaLLy3K 2017-05-26 17:57:27 +10:00 committed by DL6ER
parent 4ad0cdf5d4
commit 10139241f5

View file

@ -361,7 +361,7 @@ chronoFunc() {
printFunc " HDD usage: " "$disk_perc"
printf "%s(%s)%s\n" "$COL_DARK_GRAY" "Used: $(hrBytes "$disk_used") of $(hrBytes "$disk_total")" "$COL_NC"
printFunc " LAN addr: " "${IPV4_ADDRESS:0:-3}"
printFunc " LAN addr: " "${IPV4_ADDRESS/\/*/}"
printf "%s(%s)%s\n" "$COL_DARK_GRAY" "Gateway: $net_gateway" "$COL_NC"
if [[ "$DHCP_ACTIVE" == "true" ]]; then