O ile po dodaniu regółek udev:
[EMAIL PROTECTED] rules.d]# cat 80-auto_ifupdown.rules
KERNEL=="eth*", ACTION=="add", RUN+="/sbin/ifup %k"
KERNEL=="eth*", ACTION=="remove", RUN+="/sbin/ifdown %k"
karta się uruchamia prawiłdłowo [1] to niestety przy wyciągnięciu karty ifdown
przestaja działać zbyt szybko - nie stopując demona dhcpd [2]
Wynika to z umieszczenia:
check_device_down && exit 0
przed kodem zajmującym się Dhcpd/pump
Po porawce (z załącznika) wszystko wraca do normy, ale nie wiem czy to dobre
rozwiazanie ?
[1] Po włożeniu :
Sep 9 18:03:06 laptop1 kernel: PCI: Enabling device 0000:01:00.0 (0000 ->
0003)
Sep 9 18:03:06 laptop1 kernel: ACPI: PCI Interrupt 0000:01:00.0[A] -> Link
[LNKA] -> GSI 11 (level, low) -> IRQ 11
Sep 9 18:03:06 laptop1 kernel: PCI: Setting latency timer of device
0000:01:00.0 to 64
Sep 9 18:03:06 laptop1 kernel: eth0: RealTek RTL8139 at 0xc88c0000,
00:10:d7:0a:00:00, IRQ 11
Sep 9 18:03:06 laptop1 kernel: eth0: Identified 8139 chip type 'RTL-8139B'
Sep 9 18:03:07 laptop1 kernel: eth0: link down
Sep 9 18:03:08 laptop1 kernel: eth0: link up, 100Mbps, full-duplex, lpa
0x41E1
Sep 9 18:03:08 laptop1 dhcpcd: dhcpcd.exe: interface eth0 has been configured
with new IP=192.168.0.23
Sep 9 18:03:08 laptop1 dhcpcd.exe: interface eth0 has been configured with
new IP=192.168.0.23
Sep 9 18:03:09 laptop1 ifup: /sbin/dhcpcd Determining IP information for eth0
(dhcpcd) succeeded
Sep 9 18:03:18 laptop1 kernel: eth0: no IPv6 routers present
Po wyciągnięciu (intefejs był up):
Sep 9 18:03:18 laptop1 kernel: eth0: no IPv6 routers present
Sep 9 18:04:05 laptop1 kernel: ACPI: PCI interrupt for device 0000:01:00.0
disabled
Sep 9 18:04:08 laptop1 udevd-event[5074]: wait_for_sysfs: waiting
for '/sys/class/net/eth0/address' failed
Sep 9 18:04:12 laptop1 udevd-event[5074]: wait_for_sysfs: waiting
for '/sys/class/net/eth0/device/driver' failed
--
Mateusz Korniak
--- /sbin/ifdown.orig 2006-09-09 18:09:51.000000000 +0000
+++ /sbin/ifdown 2006-09-09 18:14:44.000000000 +0000
@@ -59,9 +59,6 @@
fi
fi
-# Check to make sure the device is actually up
-check_device_down && exit 0
-
if [ "$BOOTPROTO" = "bootp" -o "$BOOTPROTO" = "pump" ]; then
/sbin/pump -r -i ${DEVICE}
RESULT=$?
@@ -96,6 +93,13 @@
fi
fi
+
+# Check to make sure the device is actually up
+echo "DEBUG: checking device down ..."
+check_device_down && exit 0
+echo "DEBUG: not down ..."
+
+
vlan_setup
if is_yes $ETH_VLANS && `echo $DEVICE | grep -q ^eth` ; then
if echo "${DEVICE}" | grep -q '\.' ; then
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl