Re: ip-up an ip-down scripts in SuSE 8.2

From: Yura (zmouse2002_at_mail.ru)
Date: 03/01/04


Date: Mon, 01 Mar 2004 10:19:28 +0200

On Sun, 29 Feb 2004 12:49:41 GMT, <fvdtd@noyxlr.com> wrote:

> |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!
>
> Did you make the script executable with chmod? There is this check (the
> -x) in ip-up (9.0, but probably the same as 8.2):
>
> if [ -d /etc/ppp/ip-up.d ]; then
> for SCRIPT in /etc/ppp/ip-up.d/*; do
> [ -d $SCRIPT -o ! -x $SCRIPT ] && continue;

Yes, I did. Moreover, I've verified value of $SCRIPT, it's correct, but
script doesn't run, and I don't know why.

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


Relevant Pages

  • Re: Editing Binary Files
    ... I want to edit a precompiled ... pipe that into ... 'awk' script which searches for the pattern you are ... it is then processed and 'uudecode' is used to get the text back ...
    (comp.unix.questions)
  • Re: Using echo in Bash
    ... the filenames into a text file, edit it with a text, then turn the file ... > Isn't it the 'echo' command that have to do be able to echo editable text? ... > Sure=) I have made this little Bash script that converts MusePack ... > The script is called repack, ...
    (alt.linux)
  • Re: Live byte count possible whilst *in* a field?
    ... Is it possible in FMP 6 and/or 9 to have a live byte counter? ... end loop ... I had to tinker with the script a bit and got it ... possible after the loop has been left) and needs to edit the message and to ...
    (comp.databases.filemaker)
  • Re: Replace lines in a text file?
    ... This example loads the entire script into memory at once so you probably ... >> writing to text files, but I cannot find a solution for line replacement. ... You can't edit files in situ. ...
    (microsoft.public.windows.server.scripting)
  • Re: Need help with a security issue on MS SQL 2000
    ... You script out the permissions, drop the user, edit the script, and recreate ... SID, delete the new user, then manually edit the syslogins table. ... HIGHLY recommend you not do this. ... > the SQL server, it doesn't seem to pick up on the name change. ...
    (microsoft.public.sqlserver.security)