19 lines
388 B
Plaintext
19 lines
388 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
set -ex
|
||
|
|
||
|
mnt=/mnt/servo-media-wan
|
||
|
# if lan not mounted, then try to mount it
|
||
|
if ! (test -d /mnt/servo-media-lan/Music)
|
||
|
then
|
||
|
sudo mount /mnt/servo-media-lan && mnt=/mnt/servo-media-lan
|
||
|
fi
|
||
|
|
||
|
# if the needed mount isn't mounted, mount it
|
||
|
if ! (test -d $mnt/Music)
|
||
|
then
|
||
|
sudo mount $mnt
|
||
|
fi
|
||
|
|
||
|
# symlink the fastest mount point into place
|
||
|
sudo ln -sf $mnt /mnt/servo-media
|