author | kergoth <kergoth> | 2002-05-09 15:08:57 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-05-09 15:08:57 (UTC) |
commit | 260208c860a33b7cc406fa937862ba6ba5ca93b7 (patch) (unidiff) | |
tree | b2b579cb840f11724e7807c3ef4b16672b67e6b0 | |
parent | 2ba0a18680b3dc6eb0a952977c38fefda34eefa6 (diff) | |
download | opie-260208c860a33b7cc406fa937862ba6ba5ca93b7.zip opie-260208c860a33b7cc406fa937862ba6ba5ca93b7.tar.gz opie-260208c860a33b7cc406fa937862ba6ba5ca93b7.tar.bz2 |
Fixed qtdir.
-rwxr-xr-x | etc/init.d/qpe | 2 |
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 | ||
4 | export LOGNAME=root | 4 | export LOGNAME=root |
5 | export HOME=/$LOGNAME | 5 | export HOME=/$LOGNAME |
6 | export QWS_DISPLAY=Transformed:Rot270:0 | 6 | export QWS_DISPLAY=Transformed:Rot270:0 |
7 | export QTDIR=/usr | 7 | export QTDIR=/opt/QtPalmtop |
8 | export OPIEDIR=/opt/QtPalmtop | 8 | export OPIEDIR=/opt/QtPalmtop |
9 | export QPEDIR=/opt/QtPalmtop | 9 | export QPEDIR=/opt/QtPalmtop |
10 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib | 10 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib |
11 | export PATH=$PATH:$OPIEDIR/bin | 11 | export PATH=$PATH:$OPIEDIR/bin |
12 | 12 | ||
13 | #this sets the iPaqs powerbutton to mapable | 13 | #this sets the iPaqs powerbutton to mapable |
14 | echo 1 > /proc/sys/ts/suspend_button_mode | 14 | echo 1 > /proc/sys/ts/suspend_button_mode |
15 | 15 | ||
16 | if [ ! -x $OPIEDIR/bin/qpe ] ; then exit 0 ; fi | 16 | if [ ! -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 | ||
22 | killproc() { | 22 | killproc() { |
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 | ||
27 | case $1 in | 27 | case $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 | ;; |
45 | esac | 45 | esac |
46 | 46 | ||