Update 2024-12-23 02:01 OpenBSD/amd64-t14
This commit is contained in:
parent
fa50579054
commit
0582999ac9
@ -19,16 +19,13 @@ PUBLIC="\
|
|||||||
"
|
"
|
||||||
|
|
||||||
DEFAULT="\
|
DEFAULT="\
|
||||||
--auto-save-interval=30
|
--auto-save-interval=60
|
||||||
--save-session-interval=30
|
|
||||||
--listen-port=55500
|
--listen-port=55500
|
||||||
--log-level=info
|
|
||||||
--disk-cache=256M
|
--disk-cache=256M
|
||||||
--bt-save-metadata=true
|
--bt-save-metadata=true
|
||||||
--bt-load-saved-metadata=true
|
--bt-load-saved-metadata=true
|
||||||
--bt-prioritize-piece=head=10M,tail=10M
|
--bt-prioritize-piece=head=10M,tail=10M
|
||||||
--content-disposition-default-utf8=true
|
--content-disposition-default-utf8=true
|
||||||
--log=$DIR/aria2.log
|
|
||||||
--dht-file-path=$DIR/dht.dat
|
--dht-file-path=$DIR/dht.dat
|
||||||
--dht-file-path6=$DIR/dht6.dat
|
--dht-file-path6=$DIR/dht6.dat
|
||||||
--save-cookies=$DIR/cookies.dat
|
--save-cookies=$DIR/cookies.dat
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
put) shift; rsync -rv --progress --append-verify $@ osmc:/media/USBDisk/ ;;
|
put|push) shift; rsync -rv --progress --append-verify $@ osmc:/media/USBDisk/ ;;
|
||||||
df) shift; ssh osmc "df -h /media/USBDisk/" ;;
|
df) shift; ssh osmc "df -h /media/USBDisk/" ;;
|
||||||
ls) shift; ssh osmc "cd /media/USBDisk/ && ls $@ | grep -v lost+found" ;;
|
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" ;;
|
lls) shift; ssh osmc "cd /media/USBDisk/ && ls -lh | grep -v lost+found" ;;
|
||||||
del) shift; ssh osmc "cd /media/USBDisk/ && rm -v $@" ;;
|
del) shift; ssh osmc "cd /media/USBDisk/ && rm -v $@" ;;
|
||||||
ren) shift; ssh osmc "cd /media/USBDisk/ && mv \"$1\" \"$2\"" ;;
|
ren) shift; ssh osmc "cd /media/USBDisk/ && mv \"$1\" \"$2\"" ;;
|
||||||
|
at) shift; ssh -tt osmc "tmux at" ;;
|
||||||
*) echo "usage: osmc <command> <args>"
|
*) echo "usage: osmc <command> <args>"
|
||||||
echo " df - show disk space allocation"
|
echo " df - show disk space allocation"
|
||||||
echo " ls - list files"
|
echo " ls - list files"
|
||||||
@ -14,5 +15,7 @@ case $1 in
|
|||||||
echo " put <files> - copy files to USBDisk"
|
echo " put <files> - copy files to USBDisk"
|
||||||
echo " ren <old> <new> - rename file"
|
echo " ren <old> <new> - rename file"
|
||||||
echo " del <files> - delete file"
|
echo " del <files> - delete file"
|
||||||
|
echo " at - attach to tmux session"
|
||||||
|
exit 2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user