mirror of
https://github.com/shokinn/.files.git
synced 2025-01-19 05:22:25 +00:00
Add some more options to the c3voc helper scripts.
This commit is contained in:
parent
a74a3063be
commit
30b1f332a6
|
@ -4,14 +4,14 @@
|
||||||
# {{@@ env['dotdrop_warning'] @@}}
|
# {{@@ env['dotdrop_warning'] @@}}
|
||||||
#
|
#
|
||||||
|
|
||||||
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
|
if [[ -z "$1" ]] || [[ -z "$2" ]] || [[ -z "$3" ]]; then
|
||||||
echo "Usage: $0 <event> <talk-id>"
|
echo "Usage: $0 <player> <event> <talk-id>"
|
||||||
echo "e.g.: $0 35c3 9766"
|
echo "e.g.: $0 vlc 35c3 9766"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mediainfo /video/video/encoded/$1/$2-hd.mp4
|
mediainfo /video/video/encoded/$2/$3-hd.mp4
|
||||||
|
|
||||||
read -p "Press any key to continue... " -n1 -s
|
read -p "Press any key to continue... " -n1 -s
|
||||||
|
|
||||||
vlc /video/video/encoded/$1/$2-hd.mp4
|
$1 /video/video/encoded/$2/$3-hd.mp4
|
||||||
|
|
|
@ -9,7 +9,7 @@ if [[ $UID -ne 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
options=( storage aws )
|
options=( storage aws umount )
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Usage: $0 <project>"
|
echo "Usage: $0 <project>"
|
||||||
|
@ -23,6 +23,7 @@ fi
|
||||||
|
|
||||||
fuse="/video/fuse"
|
fuse="/video/fuse"
|
||||||
video="/video/video"
|
video="/video/video"
|
||||||
|
tmp="/video/tmp"
|
||||||
|
|
||||||
if mount | grep $fuse > /dev/null; then
|
if mount | grep $fuse > /dev/null; then
|
||||||
umount $fuse
|
umount $fuse
|
||||||
|
@ -32,14 +33,22 @@ if mount | grep $video > /dev/null; then
|
||||||
umount $video
|
umount $video
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if mount | grep $tmp > /dev/null; then
|
||||||
|
umount $tmp
|
||||||
|
fi
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
storage)
|
storage)
|
||||||
mount.cifs //storage.lan.c3voc.de/fuse $fuse -o rw,guest -o uid=phg
|
mount.cifs //storage.lan.c3voc.de/fuse $fuse -o rw,guest -o uid=phg
|
||||||
mount.cifs //storage.lan.c3voc.de/video $video -o rw,guest -o uid=phg
|
mount.cifs //storage.lan.c3voc.de/video $video -o rw,guest -o uid=phg
|
||||||
|
mount.cifs //storage.lan.c3voc.de/tmp $tmp -o rw,guest -o uid=phg
|
||||||
;;
|
;;
|
||||||
aws)
|
aws)
|
||||||
mount.cifs //aws.lan.c3voc.de/fuse $fuse -o rw,guest -o uid=phg
|
mount.cifs //aws.lan.c3voc.de/fuse $fuse -o rw,guest -o uid=phg
|
||||||
mount.cifs //aws.lan.c3voc.de/video $video -o rw,guest -o uid=phg
|
mount.cifs //aws.lan.c3voc.de/video $video -o rw,guest -o uid=phg
|
||||||
|
mount.cifs //aws.lan.c3voc.de/tmp $tmp -o rw,guest -o uid=phg
|
||||||
|
;;
|
||||||
|
umount)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Mountpoint does not exist."
|
echo "Mountpoint does not exist."
|
||||||
|
|
Loading…
Reference in a new issue