termux-elf-cleaner: Move to standalone repo
[termux-packages] / packages / termux-tools / login
1 #!/data/data/com.termux/files/usr/bin/sh
2
3 if [ -f $PREFIX/etc/motd ] && [ ! -f ~/.hushlogin ]; then
4 cat $PREFIX/etc/motd
5 fi
6
7 if [ -G ~/.termux/shell ]; then
8 SHELL="`realpath ~/.termux/shell`"
9 else
10 for file in $PREFIX/bin/bash $PREFIX/bin/sh /system/bin/sh; do
11 if [ -x $file ]; then
12 SHELL=$file
13 break
14 fi
15 done
16 fi
17
18 exec "$SHELL" -l
19