Update 2024-12-22 19:37 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id
2024-12-22 19:37:24 +01:00
parent 7948d7cd1d
commit a145968b49
2 changed files with 39 additions and 28 deletions

View File

@@ -1,11 +1,10 @@
#!/bin/sh
case $1 in
cp) shift; scp -r $@ osmc:/media/USBDisk/ ;;
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" ;;
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>" ;;
*) echo "available commands: df, ls, lls, cp <file>, rm <file>" ;;
esac