Re: better /etc/init.d/network
> On Mon, May 17, 1999 at 05:22:37PM -0400, [email protected] wrote:
> > I looked at the code (have not run it yet).
> >
> > Nice. Well documented, clean. The design seems sound. An up/down
> > section is also handy.
> [..]
>
> IMNSHO, any replacement for /etc/init.d/network must be able to allow
> config files which "do stuff" on start or stop of the service... Meaning
> I should be able to give it something that will be run before or after
> the initial ifconfig-and-route-type stuff has been done. At least after
> for sure. It's gotta be able to handle things like DHCP configuration
> too.
With my net script you can do that. Put your extra commands in the net_up()
and net_down() functions of each config file and they will be executed
automatically by the net command.
Maybe we could handle also before_net_up() and after_net_down() functions.
If someone needs them I will think about adding these functionalities.
--
Massimo Dal Zotto
+----------------------------------------------------------------------+
| Massimo Dal Zotto email: [email protected] |
| Via Marconi, 141 phone: ++39-0461534251 |
| 38057 Pergine Valsugana (TN) www: http://www.cs.unitn.it/~dz/ |
| Italy pgp: finger [email protected] |
+----------------------------------------------------------------------+
Reply to: