[oe-commits] Marcin Juszkiewicz : busybox: improved mdev initscript and config

GIT User account git at amethyst.openembedded.net
Fri Jan 16 14:54:31 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 3ebd0de9a856c8d97a2993d985230a25dcea8947
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3ebd0de9a856c8d97a2993d985230a25dcea8947

Author: Marcin Juszkiewicz <hrw at koansoftware.com>
Date:   Fri Jan  9 11:29:56 2009 +0100

busybox: improved mdev initscript and config

- do not mount /sys as it is already mounted
- fixed hotplug handler (mdev is in /sbin not /bin)
- fixed regexps in mdev.conf
- alsa and input devnodes in proper directories

---

 packages/busybox/busybox_1.11.3.bb |    2 +-
 packages/busybox/files/mdev        |    3 +-
 packages/busybox/files/mdev.conf   |   57 ++++++++++++++++++++----------------
 3 files changed, 34 insertions(+), 28 deletions(-)

diff --git a/packages/busybox/busybox_1.11.3.bb b/packages/busybox/busybox_1.11.3.bb
index 4466548..c4466bc 100644
--- a/packages/busybox/busybox_1.11.3.bb
+++ b/packages/busybox/busybox_1.11.3.bb
@@ -1,5 +1,5 @@
 require busybox.inc
-PR = "r5"
+PR = "r6"
 
 SRC_URI = "\
   http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
diff --git a/packages/busybox/files/mdev b/packages/busybox/files/mdev
index 6512730..4eed51e 100755
--- a/packages/busybox/files/mdev
+++ b/packages/busybox/files/mdev
@@ -1,12 +1,11 @@
 #!/bin/sh
 
-mount -t sysfs sysfs /sys
 mount -t tmpfs tmpfs /dev  -o size=64k,mode=0755
 
 mkdir /dev/pts /dev/shm
 
 mount -t devpts devpts /dev/pts
 
-echo "/bin/mdev" >/proc/sys/kernel/hotplug
+echo "/sbin/mdev" >/proc/sys/kernel/hotplug
 
 mdev -s
diff --git a/packages/busybox/files/mdev.conf b/packages/busybox/files/mdev.conf
index b5a4e70..1961949 100644
--- a/packages/busybox/files/mdev.conf
+++ b/packages/busybox/files/mdev.conf
@@ -1,25 +1,32 @@
-console 0:0 0600 
-cpu_dma_latency 0:0 0660 
-fb0:0 44 0660 
-full 0:0 0666 
-initctl 0:0 0600 
-ircomm[0-9]* 0:20 0660 
-kmem 0:15 0640 
-kmsg 0:0 0660 
-log 0:0 0666 
-loop[0-9]* 0:6 0640 
-mem 0:15 0640 
-network_latency 0:0 0660 
-network_throughput 0:0 0660 
-null 0:0 0666 
-port 0:15 0640 
-ptmx 0:5 0666 
-ram[0-9]* 0:6 0640 
-random 0:0 0666 
-sda 0:6 0640 
-tty 0:5 0666 
-tty* 0:0 0620 
-urandom 0:0 0666 
-usbdev* 0:0 0660 
-vcs* 0:5 0660 
-zero 0:0 0666 
+console 0:0 0600
+cpu_dma_latency 0:0 0660
+fb0:0 44 0660
+full 0:0 0666
+initctl 0:0 0600
+ircomm[0-9].* 0:20 0660
+kmem 0:15 0640
+kmsg 0:0 0660
+log 0:0 0666
+loop[0-9].* 0:6 0640
+mem 0:15 0640
+network_latency 0:0 0660
+network_throughput 0:0 0660
+null 0:0 0666
+port 0:15 0640
+ptmx 0:5 0666
+ram[0-9].* 0:6 0640
+random 0:0 0666
+sda 0:6 0640
+tty 0:5 0666
+tty.* 0:0 0620
+urandom 0:0 0666
+usbdev.* 0:0 0660
+vcs.* 0:5 0660
+zero 0:0 0666
+
+pcm.* 0:0 0660 =snd/
+control.* 0:0 0660 =snd/
+
+event.* 0:0 0660 =input/
+mice 0:0 0660 =input/
+mouse.* 0:0 0660 =input/





More information about the Openembedded-commits mailing list