From: Simon Busch Date: Sun, 19 Dec 2010 19:06:08 +0000 (+0100) Subject: read_tokens: add initscript to read tokens on boot X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12b9367140e6a394c9e32b451f7ed626d9037a43;p=openembedded.git read_tokens: add initscript to read tokens on boot Signed-off-by: Simon Busch --- diff --git a/recipes/palmpre/read-tokens/read_tokens b/recipes/palmpre/read-tokens/read_tokens new file mode 100644 index 0000000000..5997226695 --- /dev/null +++ b/recipes/palmpre/read-tokens/read_tokens @@ -0,0 +1,6 @@ + +#!/bin/sh + +if [ ! -e /etc/tokens ] ; then + /usr/bin/read_tokens > /etc/tokens +fi diff --git a/recipes/palmpre/read-tokens_git.bb b/recipes/palmpre/read-tokens_git.bb index d958438b32..178163b6f3 100644 --- a/recipes/palmpre/read-tokens_git.bb +++ b/recipes/palmpre/read-tokens_git.bb @@ -3,13 +3,25 @@ HOMEPAGE = "http://www.freesmartphone.org" AUTHOR = "Simon Busch SECTION = "console/utils" LICENSE = "GPL" -PR = "r0" +PR = "r1" PV = "1.0.0+gitr${SRCPV}" SRCREV = "93a640dafa8ebebdb1a03f051cb1b566629b227c" -SRC_URI = "${FREESMARTPHONE_GIT}/utilities.git;protocol=git;branch=master" +SRC_URI = " \ + ${FREESMARTPHONE_GIT}/utilities.git;protocol=git;branch=master \ + file://read_tokens \ +" S = "${WORKDIR}/git/palmpre/read_tokens" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit autotools +inherit autotools update-rc.d + +INITSCRIPT_NAME = "read_tokens" +INITSCRIPT_PARAMS = "defaults 23" + +do_install_append() { + install -d ${D}${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/read_tokens ${D}${sysconfdir}/init.d/ +} +