summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2004-12-09 20:39:13 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2004-12-09 20:39:13 +0000
commitfd35c065a852982999a108a9f7dc2f33449edcc7 (patch)
treeda2990fa5c2e29f5673d5ecc261a3b0a7478e467
parentb76375fa776eec2f7e9a96e3ee6e09f57b7e615b (diff)
initscripts: kernel checking is OZ specific
BKrev: 41b8b7f1H8mkfCAiR2aE6T75H-8DEQ
-rw-r--r--packages/initscripts/initscripts_1.0.bb121
1 files changed, 121 insertions, 0 deletions
diff --git a/packages/initscripts/initscripts_1.0.bb b/packages/initscripts/initscripts_1.0.bb
index e69de29bb2..0955b38cd5 100644
--- a/packages/initscripts/initscripts_1.0.bb
+++ b/packages/initscripts/initscripts_1.0.bb
@@ -0,0 +1,121 @@
+DESCRIPTION = "SysV init scripts"
+MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+SECTION = "base"
+PRIORITY = "required"
+DEPENDS = "makedevs"
+RDEPENDS = "makedevs"
+LICENSE = "GPL"
+PR = "r24"
+
+SRC_URI = "file://halt \
+ file://ramdisk \
+ file://umountfs \
+ file://devices \
+ file://devpts.sh \
+ file://devpts \
+ file://hostname.sh \
+ file://mountall.sh \
+ file://banner \
+ file://finish \
+ file://bootmisc.sh \
+ file://mountnfs.sh \
+ file://reboot \
+ file://checkfs.sh \
+ file://single \
+ file://sendsigs \
+ file://urandom \
+ file://rmnologin \
+ file://checkroot.sh \
+ file://umountnfs.sh \
+ file://sysfs.sh \
+ file://device_table.txt"
+
+SRC_URI_append_arm = " file://alignment.sh"
+SRC_URI_append_openzaurus = " file://checkversion"
+
+do_install () {
+#
+# Create directories and install device independent scripts
+#
+ install -d ${D}/${sysconfdir}/init.d \
+ ${D}/${sysconfdir}/rcS.d \
+ ${D}/${sysconfdir}/rc0.d \
+ ${D}/${sysconfdir}/rc1.d \
+ ${D}/${sysconfdir}/rc2.d \
+ ${D}/${sysconfdir}/rc3.d \
+ ${D}/${sysconfdir}/rc4.d \
+ ${D}/${sysconfdir}/rc5.d \
+ ${D}/${sysconfdir}/rc6.d \
+ ${D}/${sysconfdir}/default
+
+ install -m 0755 ${WORKDIR}/bootmisc.sh ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/checkroot.sh ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/finish ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/halt ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/hostname.sh ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/mountall.sh ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/mountnfs.sh ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/ramdisk ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/reboot ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/rmnologin ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/sendsigs ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/single ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/umountnfs.sh ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/urandom ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/devpts.sh ${D}/etc/init.d
+ install -m 0755 ${WORKDIR}/devpts ${D}/etc/default
+ install -m 0755 ${WORKDIR}/sysfs.sh ${D}/etc/init.d
+ if [ "${TARGET_ARCH}" = "arm" ]; then
+ install -m 0755 ${WORKDIR}/alignment.sh ${D}/etc/init.d
+ fi
+#
+# 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
+ chmod 0755 ${D}/etc/init.d/checkversion
+ ln -sf ../init.d/checkversion ${D}/etc/rcS.d/S05version
+ fi
+
+ install -m 0755 ${WORKDIR}/banner ${D}/etc/init.d/banner
+ install -m 0755 ${WORKDIR}/devices ${D}/etc/init.d/devices
+ install -m 0755 ${WORKDIR}/umountfs ${D}/etc/init.d/umountfs
+#
+# Create runlevel links
+#
+ ln -sf ../init.d/rmnologin ${D}/etc/rc2.d/S99rmnologin
+ ln -sf ../init.d/rmnologin ${D}/etc/rc3.d/S99rmnologin
+ ln -sf ../init.d/rmnologin ${D}/etc/rc4.d/S99rmnologin
+ ln -sf ../init.d/rmnologin ${D}/etc/rc5.d/S99rmnologin
+ ln -sf ../init.d/sendsigs ${D}/etc/rc6.d/S20sendsigs
+# ln -sf ../init.d/urandom ${D}/etc/rc6.d/S30urandom
+ ln -sf ../init.d/umountnfs.sh ${D}/etc/rc6.d/S31umountnfs.sh
+# ln -sf ../init.d/umountfs ${D}/etc/rc6.d/S40umountfs
+ ln -sf ../init.d/ramdisk ${D}/etc/rcS.d/S30ramdisk
+ ln -sf ../init.d/reboot ${D}/etc/rc6.d/S90reboot
+ ln -sf ../init.d/sendsigs ${D}/etc/rc0.d/S20sendsigs
+# ln -sf ../init.d/urandom ${D}/etc/rc0.d/S30urandom
+ ln -sf ../init.d/umountnfs.sh ${D}/etc/rc0.d/S31umountnfs.sh
+# ln -sf ../init.d/umountfs ${D}/etc/rc0.d/S40umountfs
+ ln -sf ../init.d/halt ${D}/etc/rc0.d/S90halt
+ ln -sf ../init.d/banner ${D}/etc/rcS.d/S01banner
+ ln -sf ../init.d/checkroot.sh ${D}/etc/rcS.d/S10checkroot.sh
+# ln -sf ../init.d/checkfs.sh ${D}/etc/rcS.d/S30checkfs.sh
+ ln -sf ../init.d/mountall.sh ${D}/etc/rcS.d/S35mountall.sh
+ ln -sf ../init.d/hostname.sh ${D}/etc/rcS.d/S40hostname.sh
+ ln -sf ../init.d/mountnfs.sh ${D}/etc/rcS.d/S45mountnfs.sh
+ ln -sf ../init.d/bootmisc.sh ${D}/etc/rcS.d/S55bootmisc.sh
+# ln -sf ../init.d/urandom ${D}/etc/rcS.d/S55urandom
+ ln -sf ../init.d/finish ${D}/etc/rcS.d/S99finish
+ ln -sf ../init.d/devices ${D}/etc/rcS.d/S04devices
+ # udev will run at S03 if installed
+ ln -sf ../init.d/sysfs.sh ${D}/etc/rcS.d/S02sysfs
+ ln -sf ../init.d/devpts.sh ${D}/etc/rcS.d/S38devpts.sh
+ if [ "${TARGET_ARCH}" = "arm" ]; then
+ ln -sf ../init.d/alignment.sh ${D}/etc/rcS.d/S05alignment
+ fi
+
+ install -m 0755 ${WORKDIR}/device_table.txt ${D}/etc/device_table
+}