diff options
Diffstat (limited to 'packages/initscripts')
-rw-r--r-- | packages/initscripts/initscripts_1.0.bb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/initscripts/initscripts_1.0.bb b/packages/initscripts/initscripts_1.0.bb index 95ad790b70..af2ae26822 100644 --- a/packages/initscripts/initscripts_1.0.bb +++ b/packages/initscripts/initscripts_1.0.bb @@ -3,9 +3,10 @@ MAINTAINER = "Chris Larson <kergoth@handhelds.org>" SECTION = "base" PRIORITY = "required" DEPENDS = "makedevs" +DEPENDS_openzaurus = "virtual/kernel" RDEPENDS = "makedevs" LICENSE = "GPL" -PR = "r26" +PR = "r27" SRC_URI = "file://halt \ file://ramdisk \ @@ -33,6 +34,8 @@ SRC_URI = "file://halt \ SRC_URI_append_arm = " file://alignment.sh" SRC_URI_append_openzaurus = " file://checkversion" +KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}" + do_install () { # # Create directories and install device independent scripts @@ -72,9 +75,8 @@ do_install () { # Install device dependent scripts # - # checkversion hardcoded for now since kernel may be built after initscripts if [ "${DISTRO}" == "openzaurus" ]; then - cat ${WORKDIR}/checkversion | sed -e "s,VERSION,2.4.18-rmk7-pxa3-embedix-${DISTRO_VERSION}," > ${D}/etc/init.d/checkversion + cat ${WORKDIR}/checkversion | sed -e "s,VERSION,${KERNEL_VERSION}-${DISTRO_VERSION}," > ${D}/etc/init.d/checkversion chmod 0755 ${D}/etc/init.d/checkversion ln -sf ../init.d/checkversion ${D}/etc/rcS.d/S05version fi |