8353c56c0b
On several devices several tools in /system/bin/ requires LD_LIBRARY_PATH to contain /system/lib(64). Check for the bit-ness with `getprop ro.product.cpu.abilist64` and setup the environment accordingly. Closes #193. Closes #206.
13 lines
388 B
Bash
Executable File
13 lines
388 B
Bash
Executable File
#!/data/data/com.termux/files/usr/bin/sh
|
|
|
|
if [ "$#" != "0" ]; then
|
|
echo 'usage: termux-setup-storage'
|
|
echo 'Use without arguments to ensure storage permission granted'
|
|
echo 'and symlinks to storage available in $HOME/.storage'
|
|
exit
|
|
fi
|
|
|
|
am broadcast --user 0 \
|
|
--es com.termux.app.reload_style storage \
|
|
-a com.termux.app.reload_style com.termux > /dev/null
|