Update 2024-12-22 22:44 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id
2024-12-22 22:44:47 +01:00
parent ebae25d46e
commit e27a96f17e
2 changed files with 8 additions and 6 deletions

View File

@@ -1,18 +1,18 @@
#!/bin/sh
case $1 in
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" ;;
put) shift; rsync -rv --progress --append-verify $@ osmc:/media/USBDisk/ ;;
df) shift; ssh osmc "df -h /media/USBDisk/" ;;
ls) shift; ssh osmc "cd /media/USBDisk/ && ls $@ | grep -v lost+found" ;;
lls) shift; 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 " put <files> - copy files to USBDisk"
echo " ren <old> <new> - rename file"
echo " del <file> - delete file"
echo " del <files> - delete file"
;;
esac