> > > Can I assume that the grep part should work on any self
> > > respecting UNIX ?
> >
> > Only if the user have sufficent permissions which,
> > as I said, is not the case on Solaris.
> 
> Well, there is an easy solution to that problem.
> 
> First, try to use route because it will tell you if there is 
> a connection
> present (and will still be true even if it's not working 
> correctly, which is
> an advantage)

How do you know that? The user get access denied when he tries
to ask. I'm pretty sure that he will get that regardless of 
whether a route exists or not.
 
> Failing that, fall back on a ping of codeweavers.com or 
> something, or if a
> URL is given, ping that address.

I don't think that is a good idea.

If you don't know or are uncertain set it to TRUE.
 
> Or forget about ping altogether and just return TRUE if we 
> have no idea
> whether there is a default route or not.

Yes, that would be preferable.

As for Solaris you don't run it because it is fun, you run
it because either you have to or because you think it is better,
so the average Solaris user will probably understand that he
has to manually do a dialup if he want to run an Internet
application under Wine.

Reply via email to