termux-chroot: Specify command to execute
authorOliver Schmidhauser <oli@glow.li>
Wed, 16 Aug 2017 07:08:12 +0000 (09:08 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Wed, 16 Aug 2017 21:47:26 +0000 (23:47 +0200)
commit2f90522ad337a206e8e0a219b05b756f77c5b951
tree44d9fcfd299204864837605c5c7d8967c804f64d
parentc87e861bae3d1b01535ec676ec7d84beaea54102
termux-chroot: Specify command to execute
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
```
packages/proot/build.sh
packages/proot/termux-chroot