From c20be94e434ea2eb2a0147e61b433585bcbf6913 Mon Sep 17 00:00:00 2001 From: David-John Willis Date: Tue, 24 Apr 2012 14:02:52 +0100 Subject: rpi-first-run-wizard: Add basic first run wizard from the OpenPandora. * Only used in demo images at the moment to just get a user setup. --- recipes-extra/startup/rpi-first-run-wizard.bb | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 recipes-extra/startup/rpi-first-run-wizard.bb (limited to 'recipes-extra/startup/rpi-first-run-wizard.bb') diff --git a/recipes-extra/startup/rpi-first-run-wizard.bb b/recipes-extra/startup/rpi-first-run-wizard.bb new file mode 100644 index 0000000..7c0be53 --- /dev/null +++ b/recipes-extra/startup/rpi-first-run-wizard.bb @@ -0,0 +1,37 @@ +DESCRIPTION = "Scripts to support a first run wizard on the Raspberry Pi." +LICENSE = "GPLV2" +LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +DEPENDS = "zenity dbus" +RDEPENDS = "slim sudo zenity dbus" + +COMPATIBLE_MACHINE = "raspberrypi" + +PR = "r1" + +SRC_URI = " \ + file://LICENSE \ + file://first-run-wizard.sh \ + file://rpi_startup.sh \ + file://rc.firstrun \ +" + +inherit update-rc.d + +INITSCRIPT_NAME = "rpi-run-init" +INITSCRIPT_PARAMS = "start 29 2 3 4 5 . stop 29 2 3 4 5 ." + +do_install() { + install -d ${D}${prefix}/rpi/scripts/ + install -m 0755 ${WORKDIR}/first-run-wizard.sh ${D}${prefix}/rpi/scripts/ + install -m 0755 ${WORKDIR}/rpi_startup.sh ${D}${prefix}/rpi/scripts/ + + install -d ${D}${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/rc.firstrun ${D}${sysconfdir}/init.d/rpi-run-init + + install -d ${D}${sysconfdir}/rpi/ +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +FILES_${PN} += "${prefix} ${sysconfdir}" -- cgit v1.2.3-54-g00ecf