this option terminates all processes when exiting termux-chroot session
to avoid hanging when doing exit when there's a daemon that is left running under termux-chroot
The check for a changed shell (e.g. by chsh) was correctly using $HOME/.termux/shell, but $HOME was being hardcoded to "/home" prior to the check.
Since most likely, $HOME is not yet "/home" (since the user is invoking termux-chroot) this test was failing to recognize changed shells (e.g. this failed with zsh).
Moving the assignment of HOME to /home after the shell has been read fixes this.
* Added arguments for proot to enable the use of MagiskSU from within termux-chroot.
* Restore original shebang to termux-chroot for pull-request.
* Added folder existence check to ensure MagiskSU changes don't break termux-chroot on later versions of Android, just in case.
* proot: Update for accept -> accept4 translation
Fixes the following warning when running termux-chroot on Android 8:
proot warning: can't sanitize binding "/property_contexts":
No such file or directory
Allow a command to be specified when running termux-chroot.
Example:
```
$ termux-chroot ls /
bin data dev etc home lib proc property_contexts share storage system tmp usr var vendor
```
This makes it possible to run scripts that include a part that needs to
be run in a chrooted environment, like a compile script.
```
./configure
make
termux-chroot make install
```
Previously it had to be done like this:
```
./configure
make
termux-chroot
cd program
make install
exit
```