Skip to content

Commit

Permalink
Disable quotes cron plan
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Dec 11, 2022
1 parent acebec5 commit 41be46f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-armbian/armbian-files/common-files/usr/sbin/armbian-fix
Original file line number Diff line number Diff line change
Expand Up @@ -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."
2 changes: 2 additions & 0 deletions rebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41be46f

Please sign in to comment.