On 2012-02-13 20:56, sayajin wrote:
>
> Hi Sorry for the Delay in reply, been moving house etc.
>
> I am currently using openSuSE 12.1, I had this working in CentOS 5.7
> previously.
>
> What I was doing is in the /etc/sysconfig/network-scripts/ifcfg-ppp0
> (in centos) i had a string in that file PPPD_EXTRA=“IPPARAM DSL01”,
> which would then pass the “DSL01” as $6 to the /etc/ppp/ip-up.local &
> /etc/ppp/ip-down.local files, and execute certain commands & settings
> depending
> on which connection came up or down (ppp0, ppp1, etc).
That directory does not exist in openSUSE. We have instead
“/etc/sysconfig/network/scripts/”, but there are no “ifcfg” files in there.
The closest are:
/etc/sysconfig/network/scripts/ifdown-ppp
/etc/sysconfig/network/scripts/ifup-ppp
/etc/sysconfig/network/scripts/ifstatus-ppp
and no script uses the token PPPD_EXTRA.
> Now when I try this in openSuSE 12.1 it is not passing the “DSLXX” ($6)
> for some reason.
> So this means that the rules in the ip-up.local & ip-down.local are not
> being executed when the corresponding connection goes up or down.
No, it means you have the wrong expectations. Distros do things
differently, you can not assume that what worked con centos would work here.
The file you are looking for is probably
“/etc/sysconfig/network/ifcfg-ppp0”, but I have no idea if it will accept
PPPD_EXTRA.
As I told you, you can modify the local script and learn what the sixth
parameter is.
> Please let me know if you require any additional information.
There above is all I know. But please remember that this is not tech
support, but users helping users. You have to do the investigation 
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)