Skip to main content
edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 267
Source Link
Tobias Kienzler
  • 9.6k
  • 16
  • 70
  • 111

How to dynamically re-mount a network share if it's there?

Is there any way to automatically check if a network share is currently available or not, and if the state changed not only (un)mount it but perform any arbitrary other action? My best guess would be a cronjob, but maybe there's a better way for this.