author | harlekin <harlekin> | 2002-10-04 12:32:05 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-04 12:32:05 (UTC) |
commit | 5ee29e56f5cfb1c32463aa71eee1217e8ccaa411 (patch) (unidiff) | |
tree | 5f266b24a3172132d85bef180edbc269d2137a66 | |
parent | 393ef522ad1fc45b341955e71f5806b2bea72b17 (diff) | |
download | opie-5ee29e56f5cfb1c32463aa71eee1217e8ccaa411.zip opie-5ee29e56f5cfb1c32463aa71eee1217e8ccaa411.tar.gz opie-5ee29e56f5cfb1c32463aa71eee1217e8ccaa411.tar.bz2 |
power button disable not needed anymore in startscript, its now in odevice
-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,97 +1,92 @@ | |||
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 |
29 | } | 24 | } |
30 | 25 | ||
31 | case $1 in | 26 | case $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 | ||
41 | echo iPAQ type $IPAQ | 36 | echo iPAQ type $IPAQ |
42 | case $IPAQ in | 37 | case $IPAQ in |
43 | "3100" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; | 38 | "3100" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; |
44 | "3600" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; | 39 | "3600" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; |
45 | "3700" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; | 40 | "3700" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; |
46 | "3800" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; | 41 | "3800" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; |
47 | *) echo "Unknown processor type -`module_id`-!" ;; | 42 | *) echo "Unknown processor type -`module_id`-!" ;; |
48 | esac | 43 | esac |
49 | else | 44 | else |
50 | export QWS_DISPLAY=Transformed:Rot270:0 | 45 | export QWS_DISPLAY=Transformed:Rot270:0 |
51 | fi | 46 | fi |
52 | 47 | ||
53 | 48 | ||
54 | if [ -x /usr/bin/ssh-agent ]; then | 49 | if [ -x /usr/bin/ssh-agent ]; then |
55 | SSHAGENT=/usr/bin/ssh-agent | 50 | SSHAGENT=/usr/bin/ssh-agent |
56 | else | 51 | else |
57 | SSHAGENT="" | 52 | SSHAGENT="" |
58 | fi | 53 | fi |
59 | 54 | ||
60 | if [ -x $OPIEDIR/bin/opie-sh-ssh-askpass.sh ]; then | 55 | if [ -x $OPIEDIR/bin/opie-sh-ssh-askpass.sh ]; then |
61 | export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh | 56 | export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh |
62 | fi | 57 | fi |
63 | 58 | ||
64 | if [ -x $OPIEDIR/bin/opie-login ]; then | 59 | if [ -x $OPIEDIR/bin/opie-login ]; then |
65 | if ! killall -0 syslogd 2>/dev/null >/dev/null; then | 60 | if ! killall -0 syslogd 2>/dev/null >/dev/null; then |
66 | echo Starting Opie-login.... | 61 | echo Starting Opie-login.... |
67 | $SSHAGENT $OPIEDIR/bin/opie-login 2>/dev/null >/dev/null & | 62 | $SSHAGENT $OPIEDIR/bin/opie-login 2>/dev/null >/dev/null & |
68 | else | 63 | else |
69 | echo Starting Opie-login with syslog logging..... | 64 | echo Starting Opie-login with syslog logging..... |
70 | ($SSHAGENT $OPIEDIR/bin/opie-login 2>&1 | logger ) & | 65 | ($SSHAGENT $OPIEDIR/bin/opie-login 2>&1 | logger ) & |
71 | fi | 66 | fi |
72 | else | 67 | else |
73 | if ! killall -0 syslogd 2>/dev/null >/dev/null; then | 68 | if ! killall -0 syslogd 2>/dev/null >/dev/null; then |
74 | echo Starting Opie.... | 69 | echo Starting Opie.... |
75 | $SSHAGENT $OPIEDIR/bin/qpe 2>/dev/null >/dev/null & | 70 | $SSHAGENT $OPIEDIR/bin/qpe 2>/dev/null >/dev/null & |
76 | else | 71 | else |
77 | echo Starting Opie with syslog logging..... | 72 | echo Starting Opie with syslog logging..... |
78 | ($SSHAGENT $OPIEDIR/bin/qpe 2>&1 | logger ) & | 73 | ($SSHAGENT $OPIEDIR/bin/qpe 2>&1 | logger ) & |
79 | fi | 74 | fi |
80 | fi | 75 | fi |
81 | 76 | ||
82 | ;; | 77 | ;; |
83 | 'stop') | 78 | 'stop') |
84 | echo "Killing Opie..." | 79 | echo "Killing Opie..." |
85 | if [ -f /var/run/opie.pid ]; then | 80 | if [ -f /var/run/opie.pid ]; then |
86 | kill -TERM `cat /var/run/opie.pid` | 81 | kill -TERM `cat /var/run/opie.pid` |
87 | else | 82 | else |
88 | killproc qpe | 83 | killproc qpe |
89 | fi | 84 | fi |
90 | 85 | ||
91 | killproc opie-login | 86 | killproc opie-login |
92 | ;; | 87 | ;; |
93 | *) | 88 | *) |
94 | echo "usage: $0 { start | stop }" | 89 | echo "usage: $0 { start | stop }" |
95 | ;; | 90 | ;; |
96 | esac | 91 | esac |
97 | 92 | ||