dotfiles/.bin/umount_tank

5 lines
100 B
Plaintext
Raw Normal View History

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