summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xroot/etc/init.d/opie106
1 files changed, 52 insertions, 54 deletions
diff --git a/root/etc/init.d/opie b/root/etc/init.d/opie
index 8146b2c..967646a 100755
--- a/root/etc/init.d/opie
+++ b/root/etc/init.d/opie
@@ -13,76 +13,74 @@ export PATH=$PATH:$OPIEDIR/bin
13if [ -e /proc/cpuinfo ] ; then 13if [ -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" | "SHARP Tosa") 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 RAMSES )
25 # already set based on /proc/sys/board/lcd_type
26 ;;
25 *) 27 *)
26 export QWS_DISPLAY=Transformed:Rot270:0 ;; 28 export QWS_DISPLAY=Transformed:Rot270:0 ;;
27 esac 29 esac
28else 30else
29 export QWS_DISPLAY=Transformed:Rot270:0 31 export QWS_DISPLAY=Transformed:Rot270:0
30fi 32fi
31 33
32if [ ! -x $OPIEDIR/bin/qpe ] ; then 34if [ ! -x $OPIEDIR/bin/qpe ] ; then
33 echo Opie not installed 35 echo Opie not installed
34 exit 0 36 exit 0
35fi 37fi
36 38
37. /etc/profile 39. /etc/profile
38 40
39case $1 in 41case $1 in
40'start') 42'start')
41 cd $HOME 43 cd $HOME
42 rm -f /etc/rc2.d/S99x # Can't have both running! 44 rm -f /etc/rc2.d/S99x # Can't have both running!
43 45
44 if [ -x $OPIEDIR/bin/opie-login ]; then 46 if [ -x $OPIEDIR/bin/opie-login ]; then
45 if ! killall -0 syslogd 2>/dev/null >/dev/null; then 47 if ! killall -0 syslogd 2>/dev/null >/dev/null; then
46 echo Starting Opie-login.... 48 echo Starting Opie-login....
47 $OPIEDIR/bin/opie-login 2>/dev/null >/dev/null & 49 $OPIEDIR/bin/opie-login 2>/dev/null >/dev/null &
48 else 50 else
49 echo Starting Opie-login with syslog logging..... 51 echo Starting Opie-login with syslog logging.....
50 ( $OPIEDIR/bin/opie-login 2>&1 | logger ) & 52 ( $OPIEDIR/bin/opie-login 2>&1 | logger ) &
51 fi 53 fi
52 else 54 else
53 $OPIEDIR/bin/opie-reorgfiles 55 $OPIEDIR/bin/opie-reorgfiles
54 if [ -x /usr/bin/ssh-agent ]; then 56 if [ -x /usr/bin/ssh-agent ]; then
55 SSHAGENT=/usr/bin/ssh-agent 57 SSHAGENT=/usr/bin/ssh-agent
56 else 58 else
57 SSHAGENT="" 59 SSHAGENT=""
58 fi 60 fi
59 61
60 if [ -x $OPIEDIR/bin/opie-sh-ssh-askpass.sh ]; then 62 if [ -x $OPIEDIR/bin/opie-sh-ssh-askpass.sh ]; then
61 export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh 63 export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh
62 fi 64 fi
63 65
64 if ! killall -0 syslogd 2>/dev/null >/dev/null; then 66 if ! killall -0 syslogd 2>/dev/null >/dev/null; then
65 echo Starting Opie.... 67 echo Starting Opie....
66 $SSHAGENT $OPIEDIR/bin/qpe 2>/dev/null >/dev/null & 68 $SSHAGENT $OPIEDIR/bin/qpe 2>/dev/null >/dev/null &
67 else 69 else
68 echo Starting Opie with syslog logging..... 70 echo Starting Opie with syslog logging.....
69 ( $SSHAGENT $OPIEDIR/bin/qpe 2>&1 | logger ) & 71 ( $SSHAGENT $OPIEDIR/bin/qpe 2>&1 | logger ) &
70 fi 72 fi
71 fi 73 fi
72 74 ;;
73 ;;
74 75
75'stop') 76'stop')
76 echo "Killing Opie..." 77 echo "Killing Opie..."
77 killall qpe 78 killall qpe
78 killall opie-login 79 killall opie-login
79 80 ;;
80 ;;
81 81
82*) 82*)
83 echo "usage: $0 { start | stop }" 83 echo "usage: $0 { start | stop }"
84 84 ;;
85 ;;
86 85
87esac 86esac
88