From 22de9a08e92bc96b0a84b9dcf99580ec47aac817 Mon Sep 17 00:00:00 2001 From: ophub <68696949+ophub@users.noreply.github.com> Date: Wed, 18 Sep 2024 12:23:00 +0800 Subject: [PATCH] armbian-fix: Hidd the IP address of WAN --- .../armbian-files/common-files/usr/sbin/armbian-fix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build-armbian/armbian-files/common-files/usr/sbin/armbian-fix b/build-armbian/armbian-files/common-files/usr/sbin/armbian-fix index 78dd61140f..8bab1765f3 100755 --- a/build-armbian/armbian-files/common-files/usr/sbin/armbian-fix +++ b/build-armbian/armbian-files/common-files/usr/sbin/armbian-fix @@ -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."