12 lines
176 B
Bash
Executable File
12 lines
176 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if mount | fgrep '/tank/' -q
|
|
then
|
|
echo "already mounted"
|
|
exit 1
|
|
fi
|
|
|
|
awk '$3=="nfs"{print $2}' /etc/fstab \
|
|
| xargs -n1 doas mount \
|
|
| cut -d" " -f-3
|