APM und Netzwerk

Florian Lohoff flo at rfc822.org
Mon Jan 29 18:43:42 CET 2001


On Mon, Jan 29, 2001 at 05:39:54PM +0100, Markus Wigge wrote:
> Hi folks ...
> 
> DG> Ich nehme an, dass Du eine PCMCIA-Netzwerkkarte benutzt. Dann kanst
> DG> Du den apmd installieren.
> Äh, und wenn das eine interne PCI-Karte ist? eepro100, nicht als
> PCMCIA ...

#!/bin/sh

case "$1" in
suspend)
	ifdown eth0
	rmmod eepro100
	;;
resume)
	ifup eth0
	;;
esac

Sowas habe ich in /etc/apm/event.d/eth0 wobei ifup/ifdown debian specifisch
ist d.h. der macht beim ifup eine neue dhcp anfrage was von der config
in /etc/network/interfaces abhaengt was bei mir so aussieht ...

# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/netbase/examples for more information.
#

iface lo inet loopback

iface eth0 inet dhcp


Sagte ich nicht mal das SuSi bloed ist ?


Flo
-- 
Florian Lohoff                  flo at rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?





More information about the Linux mailing list