In Debian, the network stuff is handled by /etc/network/interfaces (see
man interfaces).
Say you have a static IP on eth0. the basic entry would be something like
iface eth0 inet static
address x.x.x.x
netmask x.x.x.x
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x
Then, if you want to run things after network is up (and only if the
network is up), you use the "up" statement in that interface section
up (your adsl-start code)
similarly, if you want to run a command before the network interface is
brought up, you use the
"pre-up" statement, and if you want to run one before you bring the network
down, you use the down statement, and after it is brought down, the
post-down statement.
scott
Russell Hires wrote:
> Okay guys,
>
> This one is easy. Except that I can't figure it out. I'm running Debian,
> and to get out the rest of the world, I have to manually type
> "adsl-start". Where/how do I put it into my start-up scripts so that
> when I boot I can automatically by connected to the net?
>
> Thanks!
>
> Russell
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:47:29 EDT