Skip to content

Commit

Permalink
armbian-fix: Hidd the IP address of WAN
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Sep 18, 2024
1 parent e84fd3b commit 22de9a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build-armbian/armbian-files/common-files/usr/sbin/armbian-fix
Original file line number Diff line number Diff line change
Expand Up @@ -281,5 +281,12 @@ todo_rootfs_resize="/root/.no_rootfs_resize"
tolog "92. Update the MAC address for the wireless network card"
}

# Hidd the IP address of WAN
[[ -f "/etc/update-motd.d/30-armbian-sysinfo" ]] && {
sed -i 's|^curl.*akamai.*|curl -s http://whatismyip.akamai.com/ \| sed -r '\''s/(\.[0-9]+){2}$/.\*\*\*\.\*\*\*/'\''|' \
/etc/update-motd.d/30-armbian-sysinfo
tolog "93. Hide the IP address of WAN"
}

# Show end message
tolog "successfully fixed."

0 comments on commit 22de9a0

Please sign in to comment.