diff --git a/motds/motd b/motds/motd new file mode 100644 index 0000000..5a412be --- /dev/null +++ b/motds/motd @@ -0,0 +1,15 @@ +Welcome to Termux! + +Docs: https://termux.dev/docs +Donate: https://termux.dev/donate +Community: https://termux.dev/community + +Working with packages: + + - Search: pkg search + - Install: pkg install + - Upgrade: pkg upgrade + +Report issues at https://termux.dev/issues +Termux needs your help! Donations help fund development and infrastructure import for Termux's continued existence +Consider donating at https://termux.dev/en/donate diff --git a/motds/motd.sh.in b/motds/motd.sh.in index 1a76844..89f4839 100644 --- a/motds/motd.sh.in +++ b/motds/motd.sh.in @@ -24,8 +24,12 @@ else \e[1mWelcome to Termux!\e[0m \e[1mDocs:\e[0m \e[4mhttps://termux.dev/docs\e[0m -\e[1mDonate:\e[0m \e[4mhttps://termux.dev/donate\e[0m -\e[1mCommunity:\e[0m \e[4mhttps://termux.dev/community\e[0m +" + if [ "$(date +%m)" != "12" ]; then + motd+="\e[1mDonate:\e[0m \e[4mhttps://termux.dev/donate\e[0m +" + fi + motd+="\e[1mCommunity:\e[0m \e[4mhttps://termux.dev/community\e[0m \e[1mTermux version:\e[0m ${TERMUX_VERSION-Unknown} " @@ -58,4 +62,13 @@ motd+=" ${motd_indent}Report issues at \e[4mhttps://termux.dev/issues\e[0m " +if [ "$(date +%m)" = "12" ]; then + + motd+=" +\e[1m\e[31mTermux needs your help! Donations help fund development and infrastructure import for Termux's continued existence\e[0m +\e[1mConsider donating at \e[34mhttps://termux.dev/en/donate\e[0m +" + +fi + echo -e "$motd"