mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 02:46:06 -07:00
18 lines
428 B
Bash
18 lines
428 B
Bash
#!/usr/bin/env bash
|
|
|
|
engi_path="/mnt/engi"
|
|
|
|
if mountpoint -q "$engi_path"; then
|
|
echo "engi already mounted"
|
|
exit 0
|
|
else
|
|
sudo mount -t cifs -o rw,uid=$(id -u $(whoami)),gid=$(id -g $(whoami)),vers=3.0,credentials=/home/tstarr/.smb //torus/private "$engi_path" 2>/dev/null
|
|
fi
|
|
|
|
# Check drive mounted correctly
|
|
if mountpoint -q "$engi_path"; then
|
|
echo "engi successfully mounted"
|
|
else
|
|
echo "engi failed to mount"
|
|
fi
|