author | llornkcor <llornkcor> | 2004-08-17 22:50:55 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-08-17 22:50:55 (UTC) |
commit | d29d0d4e2d5b2da3c21891b251b57e70103fdcdf (patch) (unidiff) | |
tree | 58b511c9c1ac91dee42029a62afec06f41cbe08a | |
parent | 5e11a688c1b9f1d411322df6fb3d4d96613fd44d (diff) | |
download | opie-d29d0d4e2d5b2da3c21891b251b57e70103fdcdf.zip opie-d29d0d4e2d5b2da3c21891b251b57e70103fdcdf.tar.gz opie-d29d0d4e2d5b2da3c21891b251b57e70103fdcdf.tar.bz2 |
tosa is 0:0
-rwxr-xr-x | root/etc/init.d/opie | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/root/etc/init.d/opie b/root/etc/init.d/opie index df68090..8146b2c 100755 --- a/root/etc/init.d/opie +++ b/root/etc/init.d/opie | |||
@@ -1,88 +1,88 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | 2 | # |
3 | 3 | ||
4 | [ -z $LOGNAME ] && export LOGNAME=root && export HOME=/root | 4 | [ -z $LOGNAME ] && export LOGNAME=root && export HOME=/root |
5 | [ -z $HOME ] && export HOME=/$LOGNAME | 5 | [ -z $HOME ] && export HOME=/$LOGNAME |
6 | 6 | ||
7 | export QTDIR=/opt/QtPalmtop | 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 | if [ -e /proc/cpuinfo ] ; then | 13 | if [ -e /proc/cpuinfo ] ; then |
14 | model=`grep "^Hardware" /proc/cpuinfo | sed -e "s/.*: *//" | tr a-z A-Z` | 14 | model=`grep "^Hardware" /proc/cpuinfo | sed -e "s/.*: *//" | tr a-z A-Z` |
15 | 15 | ||
16 | case "$model" in | 16 | case "$model" in |
17 | "HP IPAQ H3100" | "HP IPAQ H3800" ) | 17 | "HP IPAQ H3100" | "HP IPAQ H3800" ) |
18 | export QWS_DISPLAY=Transformed:Rot90:0 ;; | 18 | export QWS_DISPLAY=Transformed:Rot90:0 ;; |
19 | "HP IPAQ H5400" | "HP JORNADA 56X" | "HP IPAQ H2200" ) | 19 | "HP IPAQ H5400" | "HP JORNADA 56X" | "HP IPAQ H2200" | "SHARP Tosa") |
20 | export QWS_DISPLAY=Transformed:Rot0:0 ;; | 20 | export QWS_DISPLAY=Transformed:Rot0:0 ;; |
21 | *SIMPAD* ) | 21 | *SIMPAD* ) |
22 | export QWS_KEYBOARD='SIMpad' | 22 | export QWS_KEYBOARD='SIMpad' |
23 | export QWS_DISPLAY=Transformed:Rot0:0 ;; | 23 | export QWS_DISPLAY=Transformed:Rot0:0 ;; |
24 | 24 | ||
25 | *) | 25 | *) |
26 | export QWS_DISPLAY=Transformed:Rot270:0 ;; | 26 | export QWS_DISPLAY=Transformed:Rot270:0 ;; |
27 | esac | 27 | esac |
28 | else | 28 | else |
29 | export QWS_DISPLAY=Transformed:Rot270:0 | 29 | export QWS_DISPLAY=Transformed:Rot270:0 |
30 | fi | 30 | fi |
31 | 31 | ||
32 | if [ ! -x $OPIEDIR/bin/qpe ] ; then | 32 | if [ ! -x $OPIEDIR/bin/qpe ] ; then |
33 | echo Opie not installed | 33 | echo Opie not installed |
34 | exit 0 | 34 | exit 0 |
35 | fi | 35 | fi |
36 | 36 | ||
37 | . /etc/profile | 37 | . /etc/profile |
38 | 38 | ||
39 | case $1 in | 39 | case $1 in |
40 | 'start') | 40 | 'start') |
41 | cd $HOME | 41 | cd $HOME |
42 | rm -f /etc/rc2.d/S99x # Can't have both running! | 42 | rm -f /etc/rc2.d/S99x # Can't have both running! |
43 | 43 | ||
44 | if [ -x $OPIEDIR/bin/opie-login ]; then | 44 | if [ -x $OPIEDIR/bin/opie-login ]; then |
45 | if ! killall -0 syslogd 2>/dev/null >/dev/null; then | 45 | if ! killall -0 syslogd 2>/dev/null >/dev/null; then |
46 | echo Starting Opie-login.... | 46 | echo Starting Opie-login.... |
47 | $OPIEDIR/bin/opie-login 2>/dev/null >/dev/null & | 47 | $OPIEDIR/bin/opie-login 2>/dev/null >/dev/null & |
48 | else | 48 | else |
49 | echo Starting Opie-login with syslog logging..... | 49 | echo Starting Opie-login with syslog logging..... |
50 | ( $OPIEDIR/bin/opie-login 2>&1 | logger ) & | 50 | ( $OPIEDIR/bin/opie-login 2>&1 | logger ) & |
51 | fi | 51 | fi |
52 | else | 52 | else |
53 | $OPIEDIR/bin/opie-reorgfiles | 53 | $OPIEDIR/bin/opie-reorgfiles |
54 | if [ -x /usr/bin/ssh-agent ]; then | 54 | if [ -x /usr/bin/ssh-agent ]; then |
55 | SSHAGENT=/usr/bin/ssh-agent | 55 | SSHAGENT=/usr/bin/ssh-agent |
56 | else | 56 | else |
57 | SSHAGENT="" | 57 | SSHAGENT="" |
58 | fi | 58 | fi |
59 | 59 | ||
60 | if [ -x $OPIEDIR/bin/opie-sh-ssh-askpass.sh ]; then | 60 | if [ -x $OPIEDIR/bin/opie-sh-ssh-askpass.sh ]; then |
61 | export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh | 61 | export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh |
62 | fi | 62 | fi |
63 | 63 | ||
64 | if ! killall -0 syslogd 2>/dev/null >/dev/null; then | 64 | if ! killall -0 syslogd 2>/dev/null >/dev/null; then |
65 | echo Starting Opie.... | 65 | echo Starting Opie.... |
66 | $SSHAGENT $OPIEDIR/bin/qpe 2>/dev/null >/dev/null & | 66 | $SSHAGENT $OPIEDIR/bin/qpe 2>/dev/null >/dev/null & |
67 | else | 67 | else |
68 | echo Starting Opie with syslog logging..... | 68 | echo Starting Opie with syslog logging..... |
69 | ( $SSHAGENT $OPIEDIR/bin/qpe 2>&1 | logger ) & | 69 | ( $SSHAGENT $OPIEDIR/bin/qpe 2>&1 | logger ) & |
70 | fi | 70 | fi |
71 | fi | 71 | fi |
72 | 72 | ||
73 | ;; | 73 | ;; |
74 | 74 | ||
75 | 'stop') | 75 | 'stop') |
76 | echo "Killing Opie..." | 76 | echo "Killing Opie..." |
77 | killall qpe | 77 | killall qpe |
78 | killall opie-login | 78 | killall opie-login |
79 | 79 | ||
80 | ;; | 80 | ;; |
81 | 81 | ||
82 | *) | 82 | *) |
83 | echo "usage: $0 { start | stop }" | 83 | echo "usage: $0 { start | stop }" |
84 | 84 | ||
85 | ;; | 85 | ;; |
86 | 86 | ||
87 | esac | 87 | esac |
88 | 88 | ||