parent
59537ee715
commit
3a513e143c
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# these are the args passed by NetworkManager
|
||||
MY_DEV_NAME="$1"
|
||||
MY_NM_ACTION="$2"
|
||||
|
||||
net_fs="afs,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2,shfs,smbfs"
|
||||
|
||||
case ${MY_NM_ACTION} in
|
||||
up)
|
||||
timeout -s 9 15s mount -at ${net_fs} &>/dev/null
|
||||
;;
|
||||
down)
|
||||
# Lazy umount all filesystems
|
||||
umount -at ${net_fs} -l
|
||||
;;
|
||||
esac
|
Loading…
Reference in new issue