Compare commits
12
Commits
6b8e9c0596
..
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0ffe060b6 | ||
|
|
f9de5682a6 | ||
|
|
b3ea91f3a7 | ||
|
|
fed005d70d | ||
|
|
9d86aa1585 | ||
|
|
29fe9343e9 | ||
|
|
fc9db88670 | ||
|
|
0c7adfadcb | ||
|
|
10b33b023c | ||
|
|
500db502cc | ||
|
|
4f28529537 | ||
|
|
4c5f9eca37 |
No files matched your search
@@ -127,9 +127,14 @@ export PROJECT_TERMUX="$HOME/.git-env-termux"
|
||||
function test-termux {
|
||||
if [[ -d "$PROJECT_TERMUX" ]]; then
|
||||
log "`date` - Updating '$PROJECT_TERMUX'.\n"
|
||||
echo " Switching to '$BRANCH'."
|
||||
git -C "$PROJECT_TERMUX" switch "$BRANCH"
|
||||
echo " Pulling with submodules."
|
||||
git -C "$PROJECT_TERMUX" pull --recurse-submodules || \
|
||||
( echo "Failed to pull project, exiting." && return 1 )
|
||||
# Something above is doing a 'D setup.sh', so ensure it gets recreated.
|
||||
echo " Ensuring setup.sh exists."
|
||||
git -C "$PROJECT_TERMUX" restore setup.sh
|
||||
else
|
||||
log "`date` - Downloading '$PROJECT_TERMUX'.\n"
|
||||
git clone https://git.hyperling.com/me/env-termux \
|
||||
@@ -385,28 +390,48 @@ function pull-plex {
|
||||
dest=/sdcard/Movies/
|
||||
fi
|
||||
|
||||
echo "`date` - Copying files from '$plex_dir' to '$dest'."
|
||||
su -c "cp -Rv '$plex_dir'/{1,2}/* '$dest'"
|
||||
|
||||
echo -e "\n`date` - Combining videos split into chunks."
|
||||
cd "$dest"
|
||||
ls | while read dir; do
|
||||
echo "Checking '$dir'"
|
||||
echo -e "\n\n`date` - Checking '$dir'"
|
||||
ls -lh "$dir"/*.mkv 2>/dev/null ||
|
||||
ls -lh "$dir"/* 2>/dev/null ||
|
||||
{
|
||||
echo " Directory is empty, removing."
|
||||
rmdir -v "$dir"
|
||||
echo " Skipping to next directory."
|
||||
continue
|
||||
}
|
||||
cd "$dir"
|
||||
ls -lh
|
||||
# Unsure why -e and -f don't work here. Spaces in filenames? Globs?
|
||||
if [[ `ls *.chunk0 2>/dev/null` ]]; then
|
||||
final="movie.mkv"
|
||||
echo "Catting files together to make '$final'."
|
||||
final="$dir.mkv"
|
||||
echo -e "\n Catting files together to make '$final'."
|
||||
|
||||
cat *.chunk* > $final
|
||||
ls -lh $final
|
||||
cat *.chunk* > "$final"
|
||||
ls -lh "$final"
|
||||
|
||||
rm -v *.chunk*
|
||||
mv -v *.chunk* ~/TRASH/
|
||||
fi
|
||||
echo "`date` - Done."
|
||||
cd ..
|
||||
done
|
||||
}
|
||||
alias get-plex="pull-plex"
|
||||
|
||||
## End Root ##
|
||||
|
||||
|
||||
## LLMs ##
|
||||
|
||||
export OLLAMA_VULKAN=1
|
||||
export OLLAMA_IGPU_ENABLE=0
|
||||
|
||||
## End LLMs ##
|
||||
|
||||
|
||||
## Finalize ##
|
||||
|
||||
@@ -424,6 +449,7 @@ eval "$(declare -F | grep -v _ | sed 's/-f /-fx /')"
|
||||
title=TBD
|
||||
message=TBD
|
||||
success=0
|
||||
cp "$PROJECT_TERMUX"/bashrc.sh ~/.bashrc
|
||||
reload-termux || success=1
|
||||
if [[ "$success" == 0 ]]; then
|
||||
title="env-termux Updated"
|
||||
|
||||
@@ -33,19 +33,20 @@ if [[ ! -e ~/storage/shared ]]; then
|
||||
echo "~/storage/shared/ now exists. :)"
|
||||
else
|
||||
echo "ERROR: Something ain't right, Jim! Abort!" >&2
|
||||
exit 1
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
echo "Everything looks good already, pal."
|
||||
fi
|
||||
|
||||
|
||||
echo -e "\n`date` - Install & Updayte Crtical Software"
|
||||
echo -e "\n`date` - Install & Update Critical Software"
|
||||
pkg install -y \
|
||||
openssh tsu vim htop git cronie man zip ncurses-utils \
|
||||
openssh tsu vim htop git cronie man zip ncurses-utils which \
|
||||
nmap traceroute wget rsync \
|
||||
ffmpeg imagemagick \
|
||||
kotlin php nodejs python libllvm hugo
|
||||
kotlin php nodejs python libllvm hugo jq \
|
||||
ollama ollama-backend-vulkan vulkan-tools vulkan-loader-android
|
||||
|
||||
|
||||
echo -e "\n`date` - BASH Environment"
|
||||
@@ -134,4 +135,4 @@ echo "*******"
|
||||
|
||||
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
||||
echo -e "\n`date` - Finished $PROG"
|
||||
exit 0
|
||||
return 0
|
||||
Reference in new issue
Block a user