diff options
author | David-John Willis <John.Willis@Distant-earth.com> | 2012-04-24 14:02:52 +0100 |
---|---|---|
committer | David-John Willis <John.Willis@Distant-earth.com> | 2012-04-24 14:02:52 +0100 |
commit | c20be94e434ea2eb2a0147e61b433585bcbf6913 (patch) | |
tree | 3ddbe72803bc9f67a3e879a378638b073726f801 /recipes-extra/startup/rpi-first-run-wizard.bb | |
parent | 03eef509e4aa5aae05326410fb9f9fdfcf433f48 (diff) | |
download | meta-raspberrypi-c20be94e434ea2eb2a0147e61b433585bcbf6913.tar.gz |
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.
Diffstat (limited to 'recipes-extra/startup/rpi-first-run-wizard.bb')
-rw-r--r-- | recipes-extra/startup/rpi-first-run-wizard.bb | 37 |
1 files changed, 37 insertions, 0 deletions
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 @@ | |||
1 | DESCRIPTION = "Scripts to support a first run wizard on the Raspberry Pi." | ||
2 | LICENSE = "GPLV2" | ||
3 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
4 | |||
5 | DEPENDS = "zenity dbus" | ||
6 | RDEPENDS = "slim sudo zenity dbus" | ||
7 | |||
8 | COMPATIBLE_MACHINE = "raspberrypi" | ||
9 | |||
10 | PR = "r1" | ||
11 | |||
12 | SRC_URI = " \ | ||
13 | file://LICENSE \ | ||
14 | file://first-run-wizard.sh \ | ||
15 | file://rpi_startup.sh \ | ||
16 | file://rc.firstrun \ | ||
17 | " | ||
18 | |||
19 | inherit update-rc.d | ||
20 | |||
21 | INITSCRIPT_NAME = "rpi-run-init" | ||
22 | INITSCRIPT_PARAMS = "start 29 2 3 4 5 . stop 29 2 3 4 5 ." | ||
23 | |||
24 | do_install() { | ||
25 | install -d ${D}${prefix}/rpi/scripts/ | ||
26 | install -m 0755 ${WORKDIR}/first-run-wizard.sh ${D}${prefix}/rpi/scripts/ | ||
27 | install -m 0755 ${WORKDIR}/rpi_startup.sh ${D}${prefix}/rpi/scripts/ | ||
28 | |||
29 | install -d ${D}${sysconfdir}/init.d/ | ||
30 | install -m 0755 ${WORKDIR}/rc.firstrun ${D}${sysconfdir}/init.d/rpi-run-init | ||
31 | |||
32 | install -d ${D}${sysconfdir}/rpi/ | ||
33 | } | ||
34 | |||
35 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
36 | |||
37 | FILES_${PN} += "${prefix} ${sysconfdir}" | ||