zhone2: install init script
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Mon, 12 Apr 2010 00:15:29 +0000 (02:15 +0200)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Mon, 12 Apr 2010 00:15:48 +0000 (02:15 +0200)
recipes/freesmartphone/zhone2/zhone2 [new file with mode: 0755]
recipes/freesmartphone/zhone2_git.bb

diff --git a/recipes/freesmartphone/zhone2/zhone2 b/recipes/freesmartphone/zhone2/zhone2
new file mode 100755 (executable)
index 0000000..f868e3d
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+cat /usr/share/zhone2/splash > /dev/fb0
+ifconfig usb0 192.168.0.202 up
+route add default gateway 192.168.0.200 usb0
+fsogsmd &
+sleep 5
+#mioctl /dev/fb0 0x4611 0
+TSLIB_TSDEVICE=/dev/input/event1
+export TSLIB_TSDEVICE
+zhone2 >/tmp/zhone2.log 2>&1 &
+exit 0
index eb19fba..b29125a 100644 (file)
@@ -1,13 +1,27 @@
-DESCRIPTION = "A demo phone application based on FSO"
+DESCRIPTION = "A demo phone application based on FSO 2.0"
 AUTHOR = "Michael 'Mickey' Lauer <mlauer@vanille-media.de>"
 HOMEPAGE = "http://www.freesmartphone.org"
 SECTION = "x11"
 LICENSE = "GPLv2"
 DEPENDS = "edje-native vala-native evas ecore edje libeflvala libfsobasics libfsoframework libfso-glib"
 PV = "2.0.0+gitr${SRCREV}"
-PR = "r0"
+PR = "r2"
 
-SRC_URI = "${FREESMARTPHONE_GIT}/aurora.git;protocol=git;branch=master"
+SRC_URI = "\
+  ${FREESMARTPHONE_GIT}/aurora.git;protocol=git;branch=master \
+  http://www.linuxtogo.org/~mickeyl/misc/splash \
+  file://zhone2 \
+"
 S = "${WORKDIR}/git/zhone2"
 
-inherit autotools_stage
+inherit autotools_stage update-rc.d
+
+INITSCRIPT_NAME = "zhone2"
+INITSCRIPT_PARAMS = "defaults 40"
+
+do_install_append() {
+       install -d ${D}${datadir}/zhone2/
+       install -d ${D}${sysconfdir}/init.d/
+       install -m 0644 ${WORKDIR}/splash ${D}${datadir}/zhone2/
+       install -m 0755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/
+}