Run a script when connection goes down?

Hello all,

At my company, we place a lot of common software on NFS-shares.
These shares are mounted, and the directories placed in $PATH when
the clients are connected to our network.

The trouble begins when someone disconnects their ethernet-cable,
since a lot of directories in $PATH is no longer accessible.

Is it possible to make NetworkManager run a s script when a connection
is lost? If so, it would be fairly easy to create a script to umount the NFS-
shares when the connection to the NFS-server is no longer available.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]