function f_motdnews { if test -f /etc/default/motd-news; then echo "[$SCRIPT_COUNT] Disable motd-news" sed -i 's/ENABLED=.*/ENABLED=0/' /etc/default/motd-news systemctl stop motd-news.timer systemctl mask motd-news.timer if [[ $VERBOSE == "Y" ]]; then systemctl status motd-news.timer --no-pager echo fi if command -v pro 2>/dev/null 1>&2; then pro config set apt_news=false fi ((SCRIPT_COUNT++)) fi }