Compare commits

...
9 Commits
2 changed files with 33 additions and 11 deletions

No files matched your search

+28 -7
View File
@@ -390,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 ##
@@ -429,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"
+5 -4
View File
@@ -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 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