summaryrefslogtreecommitdiff
path: root/root/etc
authorsandman <sandman>2002-11-21 21:53:41 (UTC)
committer sandman <sandman>2002-11-21 21:53:41 (UTC)
commit0ecfbc09273d23162ef65de521ff703a8b322a03 (patch) (unidiff)
tree7865626e0b50085e87137b13a90ce08983efce9b /root/etc
parente4e2d55d7f5f18141ede35a68b08ec17ca9e5b2e (diff)
downloadopie-0ecfbc09273d23162ef65de521ff703a8b322a03.zip
opie-0ecfbc09273d23162ef65de521ff703a8b322a03.tar.gz
opie-0ecfbc09273d23162ef65de521ff703a8b322a03.tar.bz2
Adde a QWS_DISPLAY= line for iPAQ 39xx
Diffstat (limited to 'root/etc') (more/less context) (ignore whitespace changes)
-rwxr-xr-xroot/etc/init.d/opie1
1 files changed, 1 insertions, 0 deletions
diff --git a/root/etc/init.d/opie b/root/etc/init.d/opie
index 0b649c2..61de104 100755
--- a/root/etc/init.d/opie
+++ b/root/etc/init.d/opie
@@ -1,92 +1,93 @@
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
12if [ ! -x $OPIEDIR/bin/qpe ] ; then 12if [ ! -x $OPIEDIR/bin/qpe ] ; then
13 echo Opie not installed 13 echo Opie not installed
14 exit 0 14 exit 0
15fi 15fi
16 16
17$OPIEDIR/bin/opie-reorgfiles 17$OPIEDIR/bin/opie-reorgfiles
18 18
19. /etc/profile 19. /etc/profile
20 20
21killproc() { 21killproc() {
22 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'`
23 [ "$pid" != "" ] && kill $pid 23 [ "$pid" != "" ] && kill $pid
24} 24}
25 25
26case $1 in 26case $1 in
27'start') 27'start')
28 28
29 cd $HOME 29 cd $HOME
30 rm -f /etc/rc2.d/S99x # Can't have both running! 30 rm -f /etc/rc2.d/S99x # Can't have both running!
31 31
32 if [ -e /proc/hal/model ] ; then 32 if [ -e /proc/hal/model ] ; then
33 33
34 IPAQ=`cat /proc/hal/model` 34 IPAQ=`cat /proc/hal/model`
35 35
36 echo iPAQ type $IPAQ 36 echo iPAQ type $IPAQ
37 case $IPAQ in 37 case $IPAQ in
38 "3100" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; 38 "3100" ) export QWS_DISPLAY=Transformed:Rot90:0 ;;
39 "3600" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; 39 "3600" ) export QWS_DISPLAY=Transformed:Rot270:0 ;;
40 "3700" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; 40 "3700" ) export QWS_DISPLAY=Transformed:Rot270:0 ;;
41 "3800" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; 41 "3800" ) export QWS_DISPLAY=Transformed:Rot90:0 ;;
42 "3900" ) export QWS_DISPLAY=Transformed:Rot270:0 ;;
42 *) echo "Unknown processor type -`module_id`-!" ;; 43 *) echo "Unknown processor type -`module_id`-!" ;;
43 esac 44 esac
44 else 45 else
45 export QWS_DISPLAY=Transformed:Rot270:0 46 export QWS_DISPLAY=Transformed:Rot270:0
46 fi 47 fi
47 48
48 49
49 if [ -x /usr/bin/ssh-agent ]; then 50 if [ -x /usr/bin/ssh-agent ]; then
50 SSHAGENT=/usr/bin/ssh-agent 51 SSHAGENT=/usr/bin/ssh-agent
51 else 52 else
52 SSHAGENT="" 53 SSHAGENT=""
53 fi 54 fi
54 55
55 if [ -x $OPIEDIR/bin/opie-sh-ssh-askpass.sh ]; then 56 if [ -x $OPIEDIR/bin/opie-sh-ssh-askpass.sh ]; then
56 export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh 57 export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh
57 fi 58 fi
58 59
59 if [ -x $OPIEDIR/bin/opie-login ]; then 60 if [ -x $OPIEDIR/bin/opie-login ]; then
60 if ! killall -0 syslogd 2>/dev/null >/dev/null; then 61 if ! killall -0 syslogd 2>/dev/null >/dev/null; then
61 echo Starting Opie-login.... 62 echo Starting Opie-login....
62 $SSHAGENT $OPIEDIR/bin/opie-login 2>/dev/null >/dev/null & 63 $SSHAGENT $OPIEDIR/bin/opie-login 2>/dev/null >/dev/null &
63 else 64 else
64 echo Starting Opie-login with syslog logging..... 65 echo Starting Opie-login with syslog logging.....
65 ($SSHAGENT $OPIEDIR/bin/opie-login 2>&1 | logger ) & 66 ($SSHAGENT $OPIEDIR/bin/opie-login 2>&1 | logger ) &
66 fi 67 fi
67 else 68 else
68 if ! killall -0 syslogd 2>/dev/null >/dev/null; then 69 if ! killall -0 syslogd 2>/dev/null >/dev/null; then
69 echo Starting Opie.... 70 echo Starting Opie....
70 $SSHAGENT $OPIEDIR/bin/qpe 2>/dev/null >/dev/null & 71 $SSHAGENT $OPIEDIR/bin/qpe 2>/dev/null >/dev/null &
71 else 72 else
72 echo Starting Opie with syslog logging..... 73 echo Starting Opie with syslog logging.....
73 ($SSHAGENT $OPIEDIR/bin/qpe 2>&1 | logger ) & 74 ($SSHAGENT $OPIEDIR/bin/qpe 2>&1 | logger ) &
74 fi 75 fi
75 fi 76 fi
76 77
77 ;; 78 ;;
78'stop') 79'stop')
79 echo "Killing Opie..." 80 echo "Killing Opie..."
80 if [ -f /var/run/opie.pid ]; then 81 if [ -f /var/run/opie.pid ]; then
81 kill -TERM `cat /var/run/opie.pid` 82 kill -TERM `cat /var/run/opie.pid`
82 else 83 else
83 killproc qpe 84 killproc qpe
84 fi 85 fi
85 86
86 killproc opie-login 87 killproc opie-login
87 ;; 88 ;;
88*) 89*)
89 echo "usage: $0 { start | stop }" 90 echo "usage: $0 { start | stop }"
90 ;; 91 ;;
91esac 92esac
92 93