Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | SUMMARY = "Live image init script" |
| 2 | LICENSE = "MIT" |
| 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
| 4 | DEPENDS = "virtual/kernel" |
| 5 | RDEPENDS_${PN} = "udev udev-extraconf" |
| 6 | SRC_URI = "file://init-live.sh" |
| 7 | |
| 8 | PR = "r12" |
| 9 | |
| 10 | S = "${WORKDIR}" |
| 11 | |
| 12 | do_install() { |
| 13 | install -m 0755 ${WORKDIR}/init-live.sh ${D}/init |
| 14 | install -d ${D}/dev |
| 15 | mknod -m 622 ${D}/dev/console c 5 1 |
| 16 | } |
| 17 | |
| 18 | FILES_${PN} += " /init /dev " |
| 19 | |
| 20 | # Due to kernel dependency |
| 21 | PACKAGE_ARCH = "${MACHINE_ARCH}" |