asdf
This commit is contained in:
11
mount_all_truenas.sh
Executable file
11
mount_all_truenas.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
|
grep truenas /etc/fstab | \
|
||||||
|
while read -r line ; do
|
||||||
|
set -- $line
|
||||||
|
echo "FOLDER: ${1##*/}"
|
||||||
|
doas umount /mnt/"${1##*/}" 2>/dev/null ||:
|
||||||
|
doas mount /mnt/"${1##*/}"
|
||||||
|
done
|
||||||
|
|
||||||
Reference in New Issue
Block a user