summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-10-04 12:32:05 (UTC)
committer harlekin <harlekin>2002-10-04 12:32:05 (UTC)
commit5ee29e56f5cfb1c32463aa71eee1217e8ccaa411 (patch) (unidiff)
tree5f266b24a3172132d85bef180edbc269d2137a66
parent393ef522ad1fc45b341955e71f5806b2bea72b17 (diff)
downloadopie-5ee29e56f5cfb1c32463aa71eee1217e8ccaa411.zip
opie-5ee29e56f5cfb1c32463aa71eee1217e8ccaa411.tar.gz
opie-5ee29e56f5cfb1c32463aa71eee1217e8ccaa411.tar.bz2
power button disable not needed anymore in startscript, its now in odevice
Diffstat (more/less context) (show whitespace changes)
-rwxr-xr-xroot/etc/init.d/opie5
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,40 +1,35 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3 3
4export LOGNAME=root 4export LOGNAME=root
5export HOME=/$LOGNAME 5export HOME=/$LOGNAME
6export QTDIR=/opt/QtPalmtop 6export QTDIR=/opt/QtPalmtop
7export OPIEDIR=/opt/QtPalmtop 7export OPIEDIR=/opt/QtPalmtop
8export QPEDIR=/opt/QtPalmtop 8export QPEDIR=/opt/QtPalmtop
9export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib 9export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib
10export PATH=$PATH:$OPIEDIR/bin 10export PATH=$PATH:$OPIEDIR/bin
11 11
12#this sets the iPaqs powerbutton to mapable
13if [ -e /proc/sys/ts/suspend_button_mode ] ; then
14 echo 1 > /proc/sys/ts/suspend_button_mode
15fi
16
17if [ ! -x $OPIEDIR/bin/qpe ] ; then 12if [ ! -x $OPIEDIR/bin/qpe ] ; then
18 echo Opie not installed 13 echo Opie not installed
19 exit 0 14 exit 0
20fi 15fi
21 16
22$OPIEDIR/bin/opie-reorgfiles 17$OPIEDIR/bin/opie-reorgfiles
23 18
24. /etc/profile 19. /etc/profile
25 20
26killproc() { 21killproc() {
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
29} 24}
30 25
31case $1 in 26case $1 in
32'start') 27'start')
33 28
34 cd $HOME 29 cd $HOME
35 rm -f /etc/rc2.d/S99x # Can't have both running! 30 rm -f /etc/rc2.d/S99x # Can't have both running!
36 31
37 if [ -e /proc/hal/model ] ; then 32 if [ -e /proc/hal/model ] ; then
38 33
39 IPAQ=`cat /proc/hal/model` 34 IPAQ=`cat /proc/hal/model`
40 35