Logo
Explore Help
Sign In
jorge/yorchnet_scripts
Watch 1
Star 0
Fork 0
mirror of https://github.com/jorgevasquezp/yorchnet_scripts.git synced 2026-09-16 11:13:16 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
master
yorchnet_scripts/mount_drives.sh
T

13 lines
251 B
Bash
Raw Permalink Normal View History

Made de mounnt script read a variable for the server instead of hardcoding it.
2020-10-08 08:54:13 -07:00
server=paraulata.casa.vm
#server=192.168.1.120
Added script to quickly mount all harddrives connected to the server, for local use.
2020-06-24 19:17:04 -07:00
mount=/media
Wraped dir in quotes to allow for spaces in dir name.
2020-06-27 13:35:20 -07:00
export IFS=$'\n'
Added script to quickly mount all harddrives connected to the server, for local use.
2020-06-24 19:17:04 -07:00
Made de mounnt script read a variable for the server instead of hardcoding it.
2020-10-08 08:54:13 -07:00
drives=$(ssh jorge@$server ls $mount )
Added script to quickly mount all harddrives connected to the server, for local use.
2020-06-24 19:17:04 -07:00
for dir in ${drives[@]}; do
Wraped dir in quotes to allow for spaces in dir name.
2020-06-27 13:35:20 -07:00
mkdir $mount/"$dir";
chown jorge $mount/"$dir"
Made de mounnt script read a variable for the server instead of hardcoding it.
2020-10-08 08:54:13 -07:00
sshfs jorge@$server:$mount/"$dir" $mount/"$dir" &
Added script to quickly mount all harddrives connected to the server, for local use.
2020-06-24 19:17:04 -07:00
done
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.27.3 Page: 21ms Template: 5ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API