mirror of
https://github.com/shokinn/.files.git
synced 2025-01-18 21:22:25 +00:00
Add options to mount chaos west storage.
This commit is contained in:
parent
4b31c2e4cf
commit
30e5f8ff72
|
@ -5,5 +5,35 @@ if [[ $UID -ne 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mount.cifs //storage.lan.c3voc.de/fuse /video/fuse -o rw,guest -o uid=phg
|
if [[ -z "$1" ]]; then
|
||||||
mount.cifs //storage.lan.c3voc.de/video /video/video -o rw,guest -o uid=phg
|
echo "Usage: $0 <project>"
|
||||||
|
echo "e.g.: $0 c3"
|
||||||
|
echo " "
|
||||||
|
echo "Valid options:"
|
||||||
|
options=( c3 c3cw )
|
||||||
|
for i in "${options[@]}"; do
|
||||||
|
echo " - $i"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
fuse="/video/fuse"
|
||||||
|
video="/video/video"
|
||||||
|
|
||||||
|
if mount | grep $fuse > /dev/null; then
|
||||||
|
umount $fuse
|
||||||
|
fi
|
||||||
|
|
||||||
|
if mount | grep $video > /dev/null; then
|
||||||
|
umount $video
|
||||||
|
fi
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
c3)
|
||||||
|
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
|
||||||
|
;;
|
||||||
|
c3cw)
|
||||||
|
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
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
Loading…
Reference in a new issue