Skip to content

Commit 9c8c5b1

Browse files
committed
Synchronously update the wan address file
1 parent 174bd2b commit 9c8c5b1

File tree

1 file changed

+3
-3
lines changed
  • build-armbian/armbian-files/common-files/usr/sbin

1 file changed

+3
-3
lines changed

build-armbian/armbian-files/common-files/usr/sbin/armbian-fix

+3-3
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ todo_rootfs_resize="/root/.no_rootfs_resize"
282282
}
283283

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

0 commit comments

Comments
 (0)