mirror of
https://github.com/shokinn/.files.git
synced 2025-06-28 07:40:40 +00:00
Add some more options to the c3voc helper scripts.
This commit is contained in:
parent
a74a3063be
commit
30b1f332a6
2 changed files with 15 additions and 6 deletions
|
@ -9,7 +9,7 @@ if [[ $UID -ne 0 ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
options=( storage aws )
|
||||
options=( storage aws umount )
|
||||
|
||||
if [[ -z "$1" ]]; then
|
||||
echo "Usage: $0 <project>"
|
||||
|
@ -23,6 +23,7 @@ fi
|
|||
|
||||
fuse="/video/fuse"
|
||||
video="/video/video"
|
||||
tmp="/video/tmp"
|
||||
|
||||
if mount | grep $fuse > /dev/null; then
|
||||
umount $fuse
|
||||
|
@ -32,14 +33,22 @@ if mount | grep $video > /dev/null; then
|
|||
umount $video
|
||||
fi
|
||||
|
||||
if mount | grep $tmp > /dev/null; then
|
||||
umount $tmp
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
storage)
|
||||
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/tmp $tmp -o rw,guest -o uid=phg
|
||||
;;
|
||||
aws)
|
||||
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/tmp $tmp -o rw,guest -o uid=phg
|
||||
;;
|
||||
umount)
|
||||
;;
|
||||
*)
|
||||
echo "Mountpoint does not exist."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue