[oe-commits] Simon Busch : read_tokens: add initscript to read tokens on boot

git version control git at git.openembedded.org
Tue Jan 4 10:48:40 UTC 2011


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 12b9367140e6a394c9e32b451f7ed626d9037a43
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=12b9367140e6a394c9e32b451f7ed626d9037a43

Author: Simon Busch <morphis at amethyst.openembedded.net>
Date:   Sun Dec 19 20:06:08 2010 +0100

read_tokens: add initscript to read tokens on boot

Signed-off-by: Simon Busch <morphis at amethyst.openembedded.net>

---

 recipes/palmpre/read-tokens/read_tokens |    6 ++++++
 recipes/palmpre/read-tokens_git.bb      |   18 +++++++++++++++---
 2 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/recipes/palmpre/read-tokens/read_tokens b/recipes/palmpre/read-tokens/read_tokens
new file mode 100644
index 0000000..5997226
--- /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 d958438..178163b 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 <morphis at gravedo.de>
 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/
+}
+





More information about the Openembedded-commits mailing list