Alle 13:57, venerdì 17 novembre 2006, Mauricio Teixeira (netmask) ha scritto:
> Em Sex, 2006-11-17 às 00:22 +0100, Praise escreveu:
> > Once upon a time, if I put a script in /etc/ppp/ip-up.local it got
> > executed
>
> /etc/sysconfig/network/if-up.d/
>
> --< whatever.sh >---
> #!/bin/bash
>
> if [ "$2" == "dsl0" ]; then
>   (...)
> fi
>

Thank you all for your answers!
My problem was only a typo in my script:)
Anyway I have found that

-) anything /etc/sysconfig/network/if-up.d gets executed just like when the 
interface is just set up, even if it has not acquired any IP yet.
-) /etc/ppp/if-up.d is the right place for something that gets executed when 
it gets an IP.

Praise

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to