Compare commits
9
Commits
500db502cc
..
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0ffe060b6 | ||
|
|
f9de5682a6 | ||
|
|
b3ea91f3a7 | ||
|
|
fed005d70d | ||
|
|
9d86aa1585 | ||
|
|
29fe9343e9 | ||
|
|
fc9db88670 | ||
|
|
0c7adfadcb | ||
|
|
10b33b023c |
No files matched your search
@@ -390,28 +390,48 @@ function pull-plex {
|
|||||||
dest=/sdcard/Movies/
|
dest=/sdcard/Movies/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "`date` - Copying files from '$plex_dir' to '$dest'."
|
||||||
su -c "cp -Rv '$plex_dir'/{1,2}/* '$dest'"
|
su -c "cp -Rv '$plex_dir'/{1,2}/* '$dest'"
|
||||||
|
|
||||||
|
echo -e "\n`date` - Combining videos split into chunks."
|
||||||
cd "$dest"
|
cd "$dest"
|
||||||
ls | while read dir; do
|
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"
|
cd "$dir"
|
||||||
ls -lh
|
|
||||||
# Unsure why -e and -f don't work here. Spaces in filenames? Globs?
|
# Unsure why -e and -f don't work here. Spaces in filenames? Globs?
|
||||||
if [[ `ls *.chunk0 2>/dev/null` ]]; then
|
if [[ `ls *.chunk0 2>/dev/null` ]]; then
|
||||||
final="movie.mkv"
|
final="$dir.mkv"
|
||||||
echo "Catting files together to make '$final'."
|
echo -e "\n Catting files together to make '$final'."
|
||||||
|
|
||||||
cat *.chunk* > $final
|
cat *.chunk* > "$final"
|
||||||
ls -lh $final
|
ls -lh "$final"
|
||||||
|
|
||||||
rm -v *.chunk*
|
mv -v *.chunk* ~/TRASH/
|
||||||
fi
|
fi
|
||||||
|
echo "`date` - Done."
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
alias get-plex="pull-plex"
|
alias get-plex="pull-plex"
|
||||||
|
|
||||||
|
## End Root ##
|
||||||
|
|
||||||
|
|
||||||
|
## LLMs ##
|
||||||
|
|
||||||
|
export OLLAMA_VULKAN=1
|
||||||
|
export OLLAMA_IGPU_ENABLE=0
|
||||||
|
|
||||||
|
## End LLMs ##
|
||||||
|
|
||||||
|
|
||||||
## Finalize ##
|
## Finalize ##
|
||||||
|
|
||||||
@@ -429,6 +449,7 @@ eval "$(declare -F | grep -v _ | sed 's/-f /-fx /')"
|
|||||||
title=TBD
|
title=TBD
|
||||||
message=TBD
|
message=TBD
|
||||||
success=0
|
success=0
|
||||||
|
cp "$PROJECT_TERMUX"/bashrc.sh ~/.bashrc
|
||||||
reload-termux || success=1
|
reload-termux || success=1
|
||||||
if [[ "$success" == 0 ]]; then
|
if [[ "$success" == 0 ]]; then
|
||||||
title="env-termux Updated"
|
title="env-termux Updated"
|
||||||
|
|||||||
@@ -33,19 +33,20 @@ if [[ ! -e ~/storage/shared ]]; then
|
|||||||
echo "~/storage/shared/ now exists. :)"
|
echo "~/storage/shared/ now exists. :)"
|
||||||
else
|
else
|
||||||
echo "ERROR: Something ain't right, Jim! Abort!" >&2
|
echo "ERROR: Something ain't right, Jim! Abort!" >&2
|
||||||
exit 1
|
return 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Everything looks good already, pal."
|
echo "Everything looks good already, pal."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n`date` - Install & Updayte Crtical Software"
|
echo -e "\n`date` - Install & Update Critical Software"
|
||||||
pkg install -y \
|
pkg install -y \
|
||||||
openssh tsu vim htop git cronie man zip ncurses-utils which \
|
openssh tsu vim htop git cronie man zip ncurses-utils which \
|
||||||
nmap traceroute wget rsync \
|
nmap traceroute wget rsync \
|
||||||
ffmpeg imagemagick \
|
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"
|
echo -e "\n`date` - BASH Environment"
|
||||||
@@ -134,4 +135,4 @@ echo "*******"
|
|||||||
|
|
||||||
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
||||||
echo -e "\n`date` - Finished $PROG"
|
echo -e "\n`date` - Finished $PROG"
|
||||||
exit 0
|
return 0
|
||||||
Reference in new issue
Block a user