[Lunar-commits] <moonbase> udev: autoconfig net and block devices

Zbigniew Luszpinski zbiggy at lunar-linux.org
Sat Dec 18 22:13:45 CET 2010


commit daa1bc72882dafcc4eed67878ddb8bdaf1bb49f1
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Sat Dec 18 22:13:45 2010 +0100

    udev: autoconfig net and block devices
---
 filesys/udev/CONFIGURE    |    2 +-
 filesys/udev/POST_INSTALL |    7 +++++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/filesys/udev/CONFIGURE b/filesys/udev/CONFIGURE
index 8556231..cd96f72 100644
--- a/filesys/udev/CONFIGURE
+++ b/filesys/udev/CONFIGURE
@@ -1 +1 @@
-mquery WIPE_NET_DEV "Do you want me to wipe your network device cache?" n
+mquery WIPE_NET_DEV "Do you want me to wipe your network and DVD/CD device cache?" n
diff --git a/filesys/udev/POST_INSTALL b/filesys/udev/POST_INSTALL
index dc78817..d71df66 100644
--- a/filesys/udev/POST_INSTALL
+++ b/filesys/udev/POST_INSTALL
@@ -37,4 +37,11 @@ create_node 0666 zero    c 1 5     &&
 create_node 0660 kmsg    c 1 11    &&
 
 udevadm info --convert-db
+# Find and auto configure network and block devices
+for netdev in `ls -d /sys/class/net/eth[0-9]*`
+do echo add > $netdev/uevent
+done
+for devblock in `ls /sys/block | grep -v loop`
+do udevadm test /sys/block/$devblock
+done
 


More information about the Lunar-commits mailing list