termux-tools: Add termux-setup-storage
This commit is contained in:
parent
01df0fb682
commit
561edf1bac
@ -1,11 +1,11 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://termux.com/
|
||||
TERMUX_PKG_DESCRIPTION="Some tools for Termux"
|
||||
TERMUX_PKG_VERSION=0.13
|
||||
TERMUX_PKG_VERSION=0.14
|
||||
|
||||
termux_step_make_install () {
|
||||
$CXX $CFLAGS $LDFLAGS -std=c++14 -Wall -Wextra -pedantic -Werror $TERMUX_PKG_BUILDER_DIR/*.cpp -o $TERMUX_PREFIX/bin/termux-elf-cleaner
|
||||
|
||||
cp $TERMUX_PKG_BUILDER_DIR/{am,pm,termux-fix-shebang,termux-reload-settings,chsh,termux-open-url} $TERMUX_PREFIX/bin/
|
||||
cp $TERMUX_PKG_BUILDER_DIR/{am,pm,termux-fix-shebang,termux-reload-settings,termux-setup-storage,chsh,termux-open-url} $TERMUX_PREFIX/bin/
|
||||
|
||||
sed -i "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin/termux-fix-shebang
|
||||
}
|
||||
|
12
packages/termux-tools/termux-setup-storage
Executable file
12
packages/termux-tools/termux-setup-storage
Executable file
@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
|
||||
LD_LIBRARY_PATH= am broadcast --user 0 \
|
||||
--es com.termux.app.reload_style storage \
|
||||
-a com.termux.app.reload_style com.termux > /dev/null
|
Loading…
Reference in New Issue
Block a user