File tree Expand file tree Collapse file tree
build-armbian/armbian-files/common-files/usr/sbin Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments