mirror of
				https://github.com/shokinn/.files.git
				synced 2025-11-04 04:28:11 +00:00 
			
		
		
		
	Add options to mount chaos west storage.
This commit is contained in:
		
							parent
							
								
									4b31c2e4cf
								
							
						
					
					
						commit
						30e5f8ff72
					
				
					 1 changed files with 32 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -5,5 +5,35 @@ if [[ $UID -ne 0 ]]; then
 | 
			
		|||
	exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
mount.cifs //storage.lan.c3voc.de/fuse /video/fuse -o rw,guest -o uid=phg
 | 
			
		||||
mount.cifs //storage.lan.c3voc.de/video /video/video -o rw,guest -o uid=phg
 | 
			
		||||
if [[ -z "$1" ]]; then
 | 
			
		||||
	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…
	
	Add table
		Add a link
		
	
		Reference in a new issue