author | sandman <sandman> | 2002-11-21 21:53:41 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-11-21 21:53:41 (UTC) |
commit | 0ecfbc09273d23162ef65de521ff703a8b322a03 (patch) (unidiff) | |
tree | 7865626e0b50085e87137b13a90ce08983efce9b | |
parent | e4e2d55d7f5f18141ede35a68b08ec17ca9e5b2e (diff) | |
download | opie-0ecfbc09273d23162ef65de521ff703a8b322a03.zip opie-0ecfbc09273d23162ef65de521ff703a8b322a03.tar.gz opie-0ecfbc09273d23162ef65de521ff703a8b322a03.tar.bz2 |
Adde a QWS_DISPLAY= line for iPAQ 39xx
-rwxr-xr-x | root/etc/init.d/opie | 1 |
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 | |||
@@ -18,48 +18,49 @@ $OPIEDIR/bin/opie-reorgfiles | |||
18 | 18 | ||
19 | . /etc/profile | 19 | . /etc/profile |
20 | 20 | ||
21 | killproc() { | 21 | killproc() { |
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 | ||
26 | case $1 in | 26 | case $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 ) & |