Browse Source

termux-tools: Add etc/motd to be shown on login

android-5
Fredrik Fornwall 8 years ago
parent
commit
4d7154eff8
  1. 3
      packages/termux-tools/build.sh
  2. 14
      packages/termux-tools/motd

3
packages/termux-tools/build.sh

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://termux.com/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_VERSION=0.36
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
TERMUX_PKG_CONFFILES="etc/motd"
termux_step_make_install () {
# Remove LD_LIBRARY_PATH from environment to avoid conflicting
@ -19,4 +20,6 @@ termux_step_make_install () {
cp -p $TERMUX_PKG_BUILDER_DIR/{dalvikvm,su,termux-fix-shebang,termux-reload-settings,termux-setup-storage,chsh,termux-open-url,termux-wake-lock,termux-wake-unlock} $TERMUX_PREFIX/bin/
perl -p -i -e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin/dalvikvm
cp $TERMUX_PKG_BUILDER_DIR/motd $TERMUX_PREFIX/etc/motd
}

14
packages/termux-tools/motd

@ -0,0 +1,14 @@
Welcome to Termux!
Online help: https://termux.com/help
Community forum: https://termux.com/community
IRC channel: #termux on freenode
Gitter chat: https://gitter.im/termux/termux
Mailing list: termux+subscribe@groups.io
Search for packages: termux search <query>
Install a package: termux install <package>
Upgrade installed packages: termux upgrade
Learn more: termux help
Run 'touch ~/.hushlogin' to get rid of this login message.
Loading…
Cancel
Save