Skip to content

Commit

Permalink
Merge branch 'ophub:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
QXY716 authored Sep 19, 2024
2 parents 00195c0 + 22de9a0 commit d5b4217
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 d5b4217

Please sign in to comment.