On 9/24/07, श्रीधर नारायण दैठणकर <[EMAIL PROTECTED]> wrote:
> > Did you look at autofs and automount ?
> > (http://tldp.org/HOWTO/Automount.html)
>
> Also isn't this simple enough?
>
> if [  `mount|grep <mountpoint> >|wc -l` -eq 0 ]; then
>         mount <mountpoint>;
> else
>         echo "<mountpoint> is already mounted";
> fi

Hmm, thats the best way to do it I guess.

>
> Actually just blindly mount works too. It gives a warning which you can ignore
> but at the end share is guaranteed to be mounted :)
>

Blind mount wont work. It will get mounted again on the same mountpoint.

-aditya
--
______________________________________________________________________
Pune GNU/Linux Users Group Mailing List:      ([email protected])
List Information:  http://plug.org.in/cgi-bin/mailman/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.
  • [PLUG] NFS monito... Aditya Godbole
    • Re: [PLUG] N... Ketan Padegaonkar
      • Re: [PLU... श्रीधर नारायण दैठणकर
        • Re: ... Shantanoo Mahajan
          • ... श्रीधर नारायण दैठणकर
        • Re: ... Aditya Godbole
          • ... श्रीधर नारायण दैठणकर

Reply via email to