diff --git a/build-armbian/armbian-files/common-files/usr/sbin/armbian-fix b/build-armbian/armbian-files/common-files/usr/sbin/armbian-fix index 336b830fcc..5ec33c8db8 100755 --- a/build-armbian/armbian-files/common-files/usr/sbin/armbian-fix +++ b/build-armbian/armbian-files/common-files/usr/sbin/armbian-fix @@ -82,4 +82,10 @@ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.ta # Disable ttyFIQ0 (ttyS2) [[ "${platform_name}" == "rockchip" ]] && sudo systemctl disable serial-getty@ttyFIQ0 2>/dev/null && echo "29. Disable ttyFIQ0 (ttyS2)" +# Clear quotes content for [ /etc/update-motd.d/35-armbian-tips ] +quotes_file="/etc/update-motd.d/quotes.txt" +quotes_cron="/etc/cron.weekly/armbian-quotes" +[[ -f "${quotes_file}" ]] && echo "" >${quotes_file} && echo "30. Clear quotes content" +[[ -f "${quotes_cron}" ]] && sed -i "s|^curl |#curl |g" ${quotes_cron} && echo "31. Disable quotes cron plan" + sync && echo "armbian-fix: Loading finished." diff --git a/rebuild b/rebuild index 9647eb7745..cc498fa8b1 100755 --- a/rebuild +++ b/rebuild @@ -697,7 +697,9 @@ refactor_files() { # Clear quotes content for [ /etc/update-motd.d/35-armbian-tips ] quotes_file="etc/update-motd.d/quotes.txt" + quotes_cron="etc/cron.weekly/armbian-quotes" [[ -f "${quotes_file}" ]] && echo "" >${quotes_file} + [[ -f "${quotes_cron}" ]] && sed -i "s|^curl |#curl |g" ${quotes_cron} # Make the .bashrc take effect, Default shell settings file: /etc/default/useradd echo '[[ "${SHELL}" == *bash && -f "${HOME}/.bashrc" ]] && . ${HOME}/.bashrc' >>etc/profile