-rwxr-xr-x | root/etc/init.d/opie | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/root/etc/init.d/opie b/root/etc/init.d/opie index b5afe86..0b649c2 100755 --- a/root/etc/init.d/opie +++ b/root/etc/init.d/opie | |||
@@ -1,28 +1,23 @@ | |||
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 QTDIR=/opt/QtPalmtop | 6 | export QTDIR=/opt/QtPalmtop |
7 | export OPIEDIR=/opt/QtPalmtop | 7 | export OPIEDIR=/opt/QtPalmtop |
8 | export QPEDIR=/opt/QtPalmtop | 8 | export QPEDIR=/opt/QtPalmtop |
9 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib | 9 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib |
10 | export PATH=$PATH:$OPIEDIR/bin | 10 | export PATH=$PATH:$OPIEDIR/bin |
11 | 11 | ||
12 | #this sets the iPaqs powerbutton to mapable | ||
13 | if [ -e /proc/sys/ts/suspend_button_mode ] ; then | ||
14 | echo 1 > /proc/sys/ts/suspend_button_mode | ||
15 | fi | ||
16 | |||
17 | if [ ! -x $OPIEDIR/bin/qpe ] ; then | 12 | if [ ! -x $OPIEDIR/bin/qpe ] ; then |
18 | echo Opie not installed | 13 | echo Opie not installed |
19 | exit 0 | 14 | exit 0 |
20 | fi | 15 | fi |
21 | 16 | ||
22 | $OPIEDIR/bin/opie-reorgfiles | 17 | $OPIEDIR/bin/opie-reorgfiles |
23 | 18 | ||
24 | . /etc/profile | 19 | . /etc/profile |
25 | 20 | ||
26 | killproc() { | 21 | killproc() { |
27 | pid=`/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'` | 22 | pid=`/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'` |
28 | [ "$pid" != "" ] && kill $pid | 23 | [ "$pid" != "" ] && kill $pid |