dotfiles/.bin/umount_tank

5 lines
100 B
Bash
Executable File

#!/bin/sh
awk '$3=="nfs"{print $2}' /etc/fstab \
| xargs -n1 doas umount \
| cut -d" " -f-3