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

Re: Whereami with PPP?



Matej Cepl wrote:
> Andrew McMillan wrote:
> > Realistically I think the best way would be to run whereami in the
> > up/down hooks with --hint options used to restrict the detection
> > rulesets.

I have created these two scripts (saved to /etc/ppp/ip-up.d/ and
/etc/ppp/ip-down.d/ respectively) and all seems to be well.

   Matej

-- 
Matej Cepl,
Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
As a rule of thumb, the more qualifiers there are before the name
of a country, the more corrupt the rulers. A country called The
Socialist People's Democratic Republic of X is probably the last
place in the world you'd want to live.
	-- Paul Graham discussing (not only) Nigerian spam
	   (http://www.paulgraham.com/spam.html)

#!/bin/sh -e

PATH=/bin:/sbin:/usr/bin:/usr/sbin

# If ppp option is not there, don't do anything here.
if ! [ -f /etc/whereami/whereami.conf ];  then
    exit 0
fi

/usr/sbin/whereami --hint unknown
#!/bin/sh -e

PATH=/bin:/sbin:/usr/bin:/usr/sbin

# If ppp option is not there, don't do anything here.
if ! [ -f /etc/whereami/whereami.conf ];  then
    exit 0
fi

/usr/sbin/whereami --hint ppp

Attachment: pgpF6rb_mjSRv.pgp
Description: PGP signature


Reply to: