summaryrefslogtreecommitdiff
path: root/etc/init.d/qpe
Unidiff
Diffstat (limited to 'etc/init.d/qpe') (more/less context) (show whitespace changes)
-rwxr-xr-xetc/init.d/qpe8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/init.d/qpe b/etc/init.d/qpe
index 12bb1df..8791e73 100755
--- a/etc/init.d/qpe
+++ b/etc/init.d/qpe
@@ -2,16 +2,16 @@
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 QPEDIR=/opt/QtPalmtop 8export OPIEDIR=/opt/QtPalmtop
9if [ ! -x $QPEDIR/bin/qpe ] ; then exit 0 ; fi 9if [ ! -x $OPIEDIR/bin/qpe ] ; then exit 0 ; fi
10 10
11$QPEDIR/bin/qpe-reorgfiles 11$OPIEDIR/bin/qpe-reorgfiles
12 12
13. /etc/profile 13. /etc/profile
14 14
15killproc() { 15killproc() {
16 pid=`/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'` 16 pid=`/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'`
17 [ "$pid" != "" ] && kill $pid 17 [ "$pid" != "" ] && kill $pid
@@ -22,13 +22,13 @@ case $1 in
22 echo "Starting QPE..." 22 echo "Starting QPE..."
23 23
24 cd $HOME 24 cd $HOME
25 25
26 rm -f /etc/rc2.d/S99x # Can't have both running! 26 rm -f /etc/rc2.d/S99x # Can't have both running!
27 27
28 $QPEDIR/bin/qpe 2>/dev/null >/dev/null & 28 $OPIEDIR/bin/qpe 2>/dev/null >/dev/null &
29 29
30 ;; 30 ;;
31'stop') 31'stop')
32 echo "Killing QPE..." 32 echo "Killing QPE..."
33 killproc qpe 33 killproc qpe
34 ;; 34 ;;