Update 2024-12-22 19:14 OpenBSD/amd64-t14
This commit is contained in:
parent
e304b53c34
commit
7948d7cd1d
11
.bin/osmc
Executable file
11
.bin/osmc
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
cp) shift; scp -r $@ 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>" ;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user