mirror of
https://github.com/jorgevasquezp/yorchnet_scripts.git
synced 2026-08-16 15:31:10 +00:00
Added script to quickly mount all harddrives connected to the server, for local use.
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
mount=/media
|
||||||
|
|
||||||
|
drives=$(ssh jorge@paraulata.casa.vm ls /media )
|
||||||
|
|
||||||
|
for dir in ${drives[@]}; do
|
||||||
|
mkdir $mount/$dir;
|
||||||
|
chown jorge $mount/$dir
|
||||||
|
sshfs jorge@paraulata.casa.vm:$mount/$dir $mount/$dir &
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user