To run scripts on startup of eth0 u can create the script in
/sbin/ifup-local. In the script u can detect if it's eth0 and run the
appropriate script.

Cheers
Sridhar

----- Original Message -----
From: "Tom Badran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 12:46 AM
Subject: [expert] Running scripts on network start


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have a script that i use to setup information about networks, which is
> basically just a list of ssh tunnels. I use kppp to dial the internet and
it
> runs the script happily on connection which is fine. However at universtiy
i
> connect using a network card (same machine - its a laptop) which uses DHCP
to
> get an IP. What i would like to do is to have the script automatically run
> when the eth0 interface is brought up.
>
> How can this be done easily?
>
> Thanks
>
> Tom
>
> - --
> Tom Badran - Imperial College, Department of Computing
> Email: [EMAIL PROTECTED] || Jabber: [EMAIL PROTECTED]
> - ----------------------------------------------------------------------
> cassandra.no-ip.org - Linux Kernel 2.4.18 + Preempt + ppSCSI
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9EtnWXCpWOla2mCcRArv1AJ9F7tZmd8BriLSrsw8it1UNyj3MHQCfX2PO
> kAkCXOtegw7u12KGvT7DDWw=
> =SDRS
> -----END PGP SIGNATURE-----
>
>
>


----------------------------------------------------------------------------
----


> Want to buy your Pack or Services from MandrakeSoft?
> Go to http://www.mandrakestore.com
>


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to