Skip to content

Instantly share code, notes, and snippets.

View jnsw's full-sized avatar

Jan Seewald jnsw

View GitHub Profile
@jnsw
jnsw / mountnfs.sh
Created February 15, 2022 21:05 — forked from ondrejh/mountnfs.sh
Bash script: Wakeup and mount NFS server.
#!/bin/bash
#
# This script should do:
#
# 1) test if nfs folder is mounted and exit 0 if yes
# 2) try to mount it and exit 0 if success
# 3) try to wake the server if not possible to mount
# 4) wait while its not woked (pinging)
# 5) try againt 2-4 several times