diff options
author | Marcin Juszkiewicz <hrw@koansoftware.com> | 2008-12-30 15:54:58 +0100 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@koansoftware.com> | 2009-01-16 15:37:20 +0100 |
commit | 504311c49c8670f50af7ab32cf8f1b2fea102445 (patch) | |
tree | 2cd4d6c32fb9b2add5044ab617ac7c129eca9b5d | |
parent | 533f0e2b68b1a8e89080922f4f49181e903123eb (diff) |
busybox: install mdev config and initscript
-rw-r--r-- | packages/busybox/busybox_1.11.3.bb | 15 | ||||
-rwxr-xr-x | packages/busybox/files/mdev | 12 | ||||
-rw-r--r-- | packages/busybox/files/mdev.conf | 25 |
3 files changed, 51 insertions, 1 deletions
diff --git a/packages/busybox/busybox_1.11.3.bb b/packages/busybox/busybox_1.11.3.bb index 3956c4878b..4466548a4d 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 = "r3" +PR = "r5" SRC_URI = "\ http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ @@ -17,6 +17,8 @@ SRC_URI = "\ file://syslog.conf \ file://umount.busybox \ file://defconfig \ + file://mdev \ + file://mdev.conf \ " EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}" @@ -25,3 +27,14 @@ do_configure () { install -m 0644 ${WORKDIR}/defconfig ${S}/.config cml1_do_configure } + +do_install_append() { + install -m 0644 ${WORKDIR}/mdev.conf ${D}${sysconfdir}/ + install -d ${D}${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/mdev ${D}${sysconfdir}/init.d/ +} + +pkg_postinst_${PN}_append() { + + update-rc.d $OPT mdev start 06 S . +} diff --git a/packages/busybox/files/mdev b/packages/busybox/files/mdev new file mode 100755 index 0000000000..6512730536 --- /dev/null +++ b/packages/busybox/files/mdev @@ -0,0 +1,12 @@ +#!/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 + +mdev -s diff --git a/packages/busybox/files/mdev.conf b/packages/busybox/files/mdev.conf new file mode 100644 index 0000000000..b5a4e70209 --- /dev/null +++ b/packages/busybox/files/mdev.conf @@ -0,0 +1,25 @@ +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 |