summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xetc/init.d/qpe1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/init.d/qpe b/etc/init.d/qpe
index 8791e73..5ff72ab 100755
--- a/etc/init.d/qpe
+++ b/etc/init.d/qpe
@@ -1,39 +1,40 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3 3
4export LOGNAME=root 4export LOGNAME=root
5export HOME=/$LOGNAME 5export HOME=/$LOGNAME
6export QWS_DISPLAY=Transformed:Rot270:0 6export QWS_DISPLAY=Transformed:Rot270:0
7export QTDIR=/usr 7export QTDIR=/usr
8export OPIEDIR=/opt/QtPalmtop 8export OPIEDIR=/opt/QtPalmtop
9export QPEDIR=/opt/QtPalmtop
9if [ ! -x $OPIEDIR/bin/qpe ] ; then exit 0 ; fi 10if [ ! -x $OPIEDIR/bin/qpe ] ; then exit 0 ; fi
10 11
11$OPIEDIR/bin/qpe-reorgfiles 12$OPIEDIR/bin/qpe-reorgfiles
12 13
13. /etc/profile 14. /etc/profile
14 15
15killproc() { 16killproc() {
16 pid=`/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'` 17 pid=`/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'`
17 [ "$pid" != "" ] && kill $pid 18 [ "$pid" != "" ] && kill $pid
18} 19}
19 20
20case $1 in 21case $1 in
21'start') 22'start')
22 echo "Starting QPE..." 23 echo "Starting QPE..."
23 24
24 cd $HOME 25 cd $HOME
25 26
26 rm -f /etc/rc2.d/S99x # Can't have both running! 27 rm -f /etc/rc2.d/S99x # Can't have both running!
27 28
28 $OPIEDIR/bin/qpe 2>/dev/null >/dev/null & 29 $OPIEDIR/bin/qpe 2>/dev/null >/dev/null &
29 30
30 ;; 31 ;;
31'stop') 32'stop')
32 echo "Killing QPE..." 33 echo "Killing QPE..."
33 killproc qpe 34 killproc qpe
34 ;; 35 ;;
35*) 36*)
36 echo "usage: $0 { start | stop }" 37 echo "usage: $0 { start | stop }"
37 ;; 38 ;;
38esac 39esac
39 40