pwaldo
November 11th, 2008, 12:19 PM
Hi all,
I have a number of network shares that I mount via entries in /etc/fstab on my Ubuntu Intrepid laptop. Sometimes I am docked, where the server is local to me, but other times I am mobile, where the shares are unavailable or the network connection is too slow to access them.
I would like to have these shares mounted or unmounted based on the network connection. For example, when I am connected via ethernet, I want them loaded. If I am connected via my wireless broadband, do not load them and unmount them if already loaded. I know I can "mount -a", but I would prefer the OS do that for me!
Is there any way to accomplish this? Thanks in advance!
Paul
I have a number of network shares that I mount via entries in /etc/fstab on my Ubuntu Intrepid laptop. Sometimes I am docked, where the server is local to me, but other times I am mobile, where the shares are unavailable or the network connection is too slow to access them.
I would like to have these shares mounted or unmounted based on the network connection. For example, when I am connected via ethernet, I want them loaded. If I am connected via my wireless broadband, do not load them and unmount them if already loaded. I know I can "mount -a", but I would prefer the OS do that for me!
Is there any way to accomplish this? Thanks in advance!
Paul