author | mark <mark> | 2002-02-08 16:47:41 (UTC) |
---|---|---|
committer | mark <mark> | 2002-02-08 16:47:41 (UTC) |
commit | acae430926d1b5a8877e0d92cfc7abef749c8f1a (patch) (unidiff) | |
tree | 1f0af9107e2362792389e6ff71913f3c415acc4f | |
parent | 519c6ce3b5631933d5ada88f3c204723f0319e31 (diff) | |
download | opie-acae430926d1b5a8877e0d92cfc7abef749c8f1a.zip opie-acae430926d1b5a8877e0d92cfc7abef749c8f1a.tar.gz opie-acae430926d1b5a8877e0d92cfc7abef749c8f1a.tar.bz2 |
Set QPEDIR as well as OPIEDIR
-rwxr-xr-x | etc/init.d/qpe | 1 |
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,24 +1,25 @@ | |||
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=/usr |
8 | export OPIEDIR=/opt/QtPalmtop | 8 | export OPIEDIR=/opt/QtPalmtop |
9 | export QPEDIR=/opt/QtPalmtop | ||
9 | if [ ! -x $OPIEDIR/bin/qpe ] ; then exit 0 ; fi | 10 | if [ ! -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 | ||
15 | killproc() { | 16 | killproc() { |
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 | ||
20 | case $1 in | 21 | case $1 in |
21 | 'start') | 22 | 'start') |
22 | echo "Starting QPE..." | 23 | echo "Starting QPE..." |
23 | 24 | ||
24 | cd $HOME | 25 | cd $HOME |