Skip to content

Commit b1140d3

Browse files
committed
Adjust hidden WAN & IPv6 addresses
1 parent 40ca692 commit b1140d3

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ ip_info_file="/etc/update-motd.d/20-ip-info"
350350
[[ -f "${ip_info_file}" ]] && {
351351
sed -i \
352352
-e '/^get_wan.*_address/s/{.*/{ true; }/' \
353-
-e '/if.*ipv6s.*||.*wan6/,/fi/s/^/#/' \
353+
-e '/^[#[:space:]]*if[^#]*ipv6s.*||.*wan6/,/^[#[:space:]]*fi[[:space:]]*$/{/^[[:space:]]*#/!s/^/#/}' \
354354
${ip_info_file} 2>/dev/null || true
355355
tolog "92. Hide WAN & IPv6 addresses from MOTD"
356356
} || true

rebuild

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,15 +1166,6 @@ refactor_rootfs() {
11661166
chmod +x etc/update-motd.d/{10-*,20-*,30-*}
11671167
}
11681168

1169-
# Disable IP information display
1170-
ip_info_file="etc/update-motd.d/20-ip-info"
1171-
[[ -f "${ip_info_file}" ]] && {
1172-
sed -i \
1173-
-e '/^get_wan.*_address/s/{.*/{ true; }/' \
1174-
-e '/if.*ipv6s.*||.*wan6/,/fi/s/^/#/' \
1175-
"${ip_info_file}"
1176-
}
1177-
11781169
# Explicitly disable resizing for Amlogic device [ /usr/lib/armbian/armbian-resize-filesystem ], use armbian-tf settings
11791170
echo "yes" >root/.no_rootfs_resize
11801171

0 commit comments

Comments
 (0)