summaryrefslogtreecommitdiff
path: root/packages/neuros-public/neuros-nwm/init
diff options
context:
space:
mode:
Diffstat (limited to 'packages/neuros-public/neuros-nwm/init')
-rw-r--r--packages/neuros-public/neuros-nwm/init31
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/neuros-public/neuros-nwm/init b/packages/neuros-public/neuros-nwm/init
new file mode 100644
index 0000000000..5ab8f7a248
--- /dev/null
+++ b/packages/neuros-public/neuros-nwm/init
@@ -0,0 +1,31 @@
+#!/bin/sh
+###############################################################################$
+#
+# Filename: /etc/init.d/nwm
+#
+# File Description: Qt Neuros server Startup Script
+#
+# @author Tom Bruno tbruno@neuros.us
+# @version $Revision: 1.0 $
+#
+###############################################################################$
+
+[ "$1" != "" ] && action=$1
+if [ "$action" = "" ]
+then
+ echo "Usage: $0 <action start|stop>" >&2
+ exit 1
+fi
+
+if [ "$action" = "start" ]
+then
+
+ QWS_KEYBOARD="osdir" QWS_DISPLAY="LinuxFb:/dev/fb2" /usr/local/bin/nwm &
+
+else
+ if [ "$action" = "stop" ]
+ then
+ killall nwm
+ fi
+fi
+