From 12b9367140e6a394c9e32b451f7ed626d9037a43 Mon Sep 17 00:00:00 2001 From: Simon Busch Date: Sun, 19 Dec 2010 20:06:08 +0100 Subject: [PATCH] read_tokens: add initscript to read tokens on boot Signed-off-by: Simon Busch --- recipes/palmpre/read-tokens/read_tokens | 6 ++++++ recipes/palmpre/read-tokens_git.bb | 18 +++++++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 recipes/palmpre/read-tokens/read_tokens 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/ +} + -- 2.39.5