Created
December 6, 2016 09:08
-
-
Save dapperfu/a242712dbbeeda026f7e200fdfa7d813 to your computer and use it in GitHub Desktop.
Mounts all of the NFS exports from a host.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
showmount -e ${1} | cut -f1 -d" " | tail -n +2 | xargs -n1 -I{} mkdir -p {} | |
showmount -e ${1} | cut -f1 -d" " | tail -n +2 | xargs -n1 -I{} mount ${1}:{} {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment