Skip to content

Commit

Permalink
Synchronously update the wan address file
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Oct 1, 2024
1 parent 174bd2b commit 9c8c5b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-armbian/armbian-files/common-files/usr/sbin/armbian-fix
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ todo_rootfs_resize="/root/.no_rootfs_resize"
}

# 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
[[ -f "/etc/update-motd.d/10-armbian-header" ]] && {
sed -i 's|^curl.*akamai.*|curl --connect-timeout 2 -s http://whatismyip.akamai.com/ \| sed -r '\''s/(\.[0-9]+){2}$/.\*\*\*\.\*\*\*/'\''|' \
/etc/update-motd.d/10-armbian-header
tolog "93. Hide the IP address of WAN"
}

Expand Down

0 comments on commit 9c8c5b1

Please sign in to comment.