ip-up an ip-down scripts in SuSE 8.2

From: Yura (zmouse2002_at_mail.ru)
Date: 02/29/04


Date: 29 Feb 2004 12:30:54 GMT

Hi, NG

I've almost gone nut with these scripts.

I want to save my own statistics on dial-up connections. So, I've
decided to use custom ip-up and ip-down scripts. AFAIK, pppd runs these
scripts at the begin and end of connection. There is on "ip-up" script
and link to it, named "ip-down". Actually ip-up is one large script,
which can operate as "ip-up" and "ip-down" as well depending on BASENAME
parameter.

Additionally to this, there is folders "ip-up.d" and "ip-down.d", where
user can put their own scripts, avoiding to edit main ip-up script. Good
idea!

I've wrote my scripts, placed them in these folders and they don't work.
I've checked main script, put there "echo $SCRIPT > filename" statements
to verify how it works - everything is OK. But my scripts doesn't work
(or start?). If I add to the main script my own strings, they work, but
as separate scripts - no. Also I've ran main "ip-up" manually as root -
in this case separate scripts also work!

Can anybody explain what's going on? I run pppd as common user using
"sudo". Is it possible that main script runs as root, but custom scripts
no? My custom scripts contains only instructions like this "echo
$someparameter >> /var/log/dialout"

Will be glad to see any advice.



Relevant Pages

  • Re: PPPoE Help me please!
    ... >> What runs firestarter (init scripts after pppoe starts?). ... On my SuSE systems ip-down was also a symlink to ip-up, ...
    (comp.os.linux.networking)
  • RE: shorten the page address
    ... As for the redirection script, you only need to put it in the custom 404 ... page(an asp page) rather than put it in each asp page you want to remapping ... beginning of each of your scripts that will use URL redirection:" ...
    (microsoft.public.inetserver.asp.general)
  • Re: Excite home page
    ... or get the pictures. ... Go to Internet Options> Security> Internet Zone and reset it to ... > other programs can be configured to block scripts. ... >> I got a call from a friend that uses this web site as a custom home page ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Auto_prepend_file
    ... browser, just sets a few variables, modifies/unsets a few server & ... And which superglobals are you referring to? ... Or a class with the same name as your custom ftp class? ... There's a reason most hosts don't do this - it can screw up someone's scripts. ...
    (comp.lang.php)
  • Re: Excite home page
    ... Go to Internet Options> Security> Internet Zone and reset it to ... > other programs can be configured to block scripts. ... >> Can anyone get the pictures on www.excite.com? ... >> I got a call from a friend that uses this web site as a custom home page ...
    (microsoft.public.windows.inetexplorer.ie6.browser)