summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-05-09 15:08:57 (UTC)
committer kergoth <kergoth>2002-05-09 15:08:57 (UTC)
commit260208c860a33b7cc406fa937862ba6ba5ca93b7 (patch) (unidiff)
treeb2b579cb840f11724e7807c3ef4b16672b67e6b0
parent2ba0a18680b3dc6eb0a952977c38fefda34eefa6 (diff)
downloadopie-260208c860a33b7cc406fa937862ba6ba5ca93b7.zip
opie-260208c860a33b7cc406fa937862ba6ba5ca93b7.tar.gz
opie-260208c860a33b7cc406fa937862ba6ba5ca93b7.tar.bz2
Fixed qtdir.
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xetc/init.d/qpe2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/init.d/qpe b/etc/init.d/qpe
index 47a9b16..0b4aeb0 100755
--- a/etc/init.d/qpe
+++ b/etc/init.d/qpe
@@ -1,46 +1,46 @@
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=/opt/QtPalmtop
8export OPIEDIR=/opt/QtPalmtop 8export OPIEDIR=/opt/QtPalmtop
9export QPEDIR=/opt/QtPalmtop 9export QPEDIR=/opt/QtPalmtop
10export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib 10export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib
11export PATH=$PATH:$OPIEDIR/bin 11export PATH=$PATH:$OPIEDIR/bin
12 12
13#this sets the iPaqs powerbutton to mapable 13#this sets the iPaqs powerbutton to mapable
14echo 1 > /proc/sys/ts/suspend_button_mode 14echo 1 > /proc/sys/ts/suspend_button_mode
15 15
16if [ ! -x $OPIEDIR/bin/qpe ] ; then exit 0 ; fi 16if [ ! -x $OPIEDIR/bin/qpe ] ; then exit 0 ; fi
17 17
18$OPIEDIR/bin/qpe-reorgfiles 18$OPIEDIR/bin/qpe-reorgfiles
19 19
20. /etc/profile 20. /etc/profile
21 21
22killproc() { 22killproc() {
23 pid=`/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'` 23 pid=`/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'`
24 [ "$pid" != "" ] && kill $pid 24 [ "$pid" != "" ] && kill $pid
25} 25}
26 26
27case $1 in 27case $1 in
28'start') 28'start')
29 echo "Starting QPE..." 29 echo "Starting QPE..."
30 30
31 cd $HOME 31 cd $HOME
32 32
33 rm -f /etc/rc2.d/S99x # Can't have both running! 33 rm -f /etc/rc2.d/S99x # Can't have both running!
34 34
35 $OPIEDIR/bin/qpe 2>/dev/null >/dev/null & 35 $OPIEDIR/bin/qpe 2>/dev/null >/dev/null &
36 36
37 ;; 37 ;;
38'stop') 38'stop')
39 echo "Killing QPE..." 39 echo "Killing QPE..."
40 killproc qpe 40 killproc qpe
41 ;; 41 ;;
42*) 42*)
43 echo "usage: $0 { start | stop }" 43 echo "usage: $0 { start | stop }"
44 ;; 44 ;;
45esac 45esac
46 46