Update 2024-12-22 21:08 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id
2024-12-22 21:08:35 +01:00
parent a145968b49
commit ebae25d46e
2 changed files with 22 additions and 14 deletions

View File

@@ -1,10 +1,18 @@
#!/bin/sh
case $1 in
cp) shift; rsync -rvP $@ osmc:/media/USBDisk/ ;;
df) ssh osmc "df -h /media/USBDisk/" ;;
ls) ssh osmc "cd /media/USBDisk/ && ls -1 | grep -v lost+found" ;;
lls) ssh osmc "cd /media/USBDisk/ && ls -lh | grep -v lost+found" ;;
rm) shift; ssh osmc "cd /media/USBDisk/ && rm -v $@" ;;
*) echo "available commands: df, ls, lls, cp <file>, rm <file>" ;;
put) shift; rsync -rvP $@ osmc:/media/USBDisk/ ;;
df) ssh osmc "df -h /media/USBDisk/" ;;
ls) ssh osmc "cd /media/USBDisk/ && ls -1 | grep -v lost+found" ;;
lls) ssh osmc "cd /media/USBDisk/ && ls -lh | grep -v lost+found" ;;
del) shift; ssh osmc "cd /media/USBDisk/ && rm -v $@" ;;
ren) shift; ssh osmc "cd /media/USBDisk/ && mv \"$1\" \"$2\"" ;;
*) echo "usage: osmc <command> <args>"
echo " df - show disk space allocation"
echo " ls - list files"
echo " lls - list files with details"
echo " put <file> - copy files to USBDisk"
echo " ren <old> <new> - rename file"
echo " del <file> - delete file"
;;
esac