On Sat, 18 Feb 2006 14:58:24 -0500, Thomas Kirchner wrote:
> > preup() {
> > [ ${IFACE} == "eth0" ] && /etc/init.d/net.eth1 --quiet status
> > && /etc/init.d/net.eth1 pause return 0
> > }
>
> Thanks for this - it looks quite handy. Is preup() executed after
> ifplug notices a connection? When does postup() occur, if that's the
> case?preup is executed by net.eth* before bringing up the interface, so this brings down eth1 before eth0 is set up, otherwise things may get confused. Using pause rather that stop means dependent services aren't stopped. postup is run after the interface is up, so this is where, for example, you might want to mount network filesystems. -- Neil Bothwick ... We are Dyslexics of Borg. Your ass will be laminated.
signature.asc
Description: PGP signature

