summaryrefslogtreecommitdiff
path: root/recipes/neuros-public/neuros-nwm/init
blob: 5ab8f7a248b2970300d0b9619d3556778ac00b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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