From 6306cda8e1740c3cf4bc54c21b7e565d3635b102 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 6 Aug 2008 17:37:05 +0000 Subject: neuros-nwm: add initscript --- packages/neuros-public/neuros-nwm/.mtn2git_empty | 0 packages/neuros-public/neuros-nwm/init | 82 ++++++++++++++++++++++++ packages/neuros-public/neuros-nwm_git.bb | 14 +++- 3 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 packages/neuros-public/neuros-nwm/.mtn2git_empty create mode 100644 packages/neuros-public/neuros-nwm/init (limited to 'packages/neuros-public') diff --git a/packages/neuros-public/neuros-nwm/.mtn2git_empty b/packages/neuros-public/neuros-nwm/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/neuros-public/neuros-nwm/init b/packages/neuros-public/neuros-nwm/init new file mode 100644 index 0000000000..849261a95c --- /dev/null +++ b/packages/neuros-public/neuros-nwm/init @@ -0,0 +1,82 @@ + + + + + + + + + +git.neurostechnology.com Git - rootfs/blob - base/etc/init.d/nwm + + + + + + + + + +
+ +
+ +
+Revert "Add /usr/local/bin/test to PATH" +
+
[rootfs] / base / etc / init.d / nwm
+
+
1 #!/bin/sh
+
2 ###############################################################################$
+
3 #
+
4 # Filename: /etc/init.d/nwm
+
5 #
+
6 # File Description: Qt Neuros server Startup Script
+
7 #
+
8 # @author Tom Bruno tbruno@neuros.us
+
9 # @version  $Revision: 1.0 $
+
10 #
+
11 ###############################################################################$
+ +
13 [ "$1" != "" ] && action=$1
+
14 if [ "$action" = "" ]
+
15 then
+
16         echo "Usage: $0 <action  start|stop>" >&2
+
17         exit 1
+
18 fi
+ +
20 if [ "$action" = "start" ]
+
21 then
+ +
23         QWS_KEYBOARD="osdir" QWS_DISPLAY="LinuxFb:/dev/fb2" /usr/local/bin/nwm &
+ +
25 else
+
26         if [ "$action" = "stop" ]
+
27         then
+
28                 killall nwm
+
29         fi
+
30 fi
+ +
+ + \ No newline at end of file diff --git a/packages/neuros-public/neuros-nwm_git.bb b/packages/neuros-public/neuros-nwm_git.bb index 0f0dcf857d..bf4bbaa9af 100644 --- a/packages/neuros-public/neuros-nwm_git.bb +++ b/packages/neuros-public/neuros-nwm_git.bb @@ -2,18 +2,23 @@ DESCRIPTION = "Neuros window manager" LICENSE = "GPL" PV = "0.0+${PR}+gitr${SRCREV}" -PR = "r4" +PR = "r5" DEPENDS = "qt-embedded" -inherit qtopia4core +inherit qtopia4core update-rc.d SRCREV = "e6c30ba6e5be217ca4bf7e98e00f87bb7241872c" -SRC_URI = "git://git.neurostechnology.com/git/app-nwm;protocol=git" +SRC_URI = "git://git.neurostechnology.com/git/app-nwm;protocol=git \ + file://init" + +INITSCRIPT_NAME = "neuros-nwm" + S = "${WORKDIR}/git/" do_configure_prepend() { rm ${S}/src/Makefile || true + sed -i -e s:/usr/locl/bin:${bindir}:g ${WORKDIR}/init } do_install() { @@ -21,6 +26,9 @@ do_install() { install -m 0755 ${S}/build/nwm ${D}/${bindir} install -d ${D}/${libdir} ln -sf ${datadir}/fonts ${D}/${libdir}/fonts + + install -d ${D}/${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/neuros-nwm } FILES_${PN} += "${libdir}/fonts" -- cgit v1.2.3