-rwxr-xr-x | root/etc/init.d/opie | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/root/etc/init.d/opie b/root/etc/init.d/opie index d49498c..df68090 100755 --- a/root/etc/init.d/opie +++ b/root/etc/init.d/opie | |||
@@ -11,15 +11,18 @@ 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/hal/model ] ; then | 13 | if [ -e /proc/cpuinfo ] ; then |
14 | ipaq=`cat /proc/hal/model` | 14 | model=`grep "^Hardware" /proc/cpuinfo | sed -e "s/.*: *//" | tr a-z A-Z` |
15 | 15 | ||
16 | case "$ipaq" in | 16 | case "$model" in |
17 | "3100" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; | 17 | "HP IPAQ H3100" | "HP IPAQ H3800" ) |
18 | "3600" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; | 18 | export QWS_DISPLAY=Transformed:Rot90:0 ;; |
19 | "3700" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; | 19 | "HP IPAQ H5400" | "HP JORNADA 56X" | "HP IPAQ H2200" ) |
20 | "3800" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; | 20 | export QWS_DISPLAY=Transformed:Rot0:0 ;; |
21 | "3900" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; | 21 | *SIMPAD* ) |
22 | "5400" ) export QWS_DISPLAY=Transformed:Rot0:0 ;; | 22 | export QWS_KEYBOARD='SIMpad' |
23 | *) echo "Unknown iPAQ model: $ipaq" ;; | 23 | export QWS_DISPLAY=Transformed:Rot0:0 ;; |
24 | |||
25 | *) | ||
26 | export QWS_DISPLAY=Transformed:Rot270:0 ;; | ||
24 | esac | 27 | esac |
25 | else | 28 | else |
@@ -27,15 +30,4 @@ else | |||
27 | fi | 30 | fi |
28 | 31 | ||
29 | if [ -e /proc/cpuinfo ] ; then | ||
30 | if (grep -qi "Simpad" /proc/cpuinfo) ; then | ||
31 | export QWS_KEYBOARD='SIMpad' | ||
32 | export QWS_DISPLAY=Transformed:Rot0:0 | ||
33 | fi | ||
34 | if (grep -qi "HP Jornada 56x" /proc/cpuinfo) ; then | ||
35 | export QWS_DISPLAY=Transformed:Rot0:0 | ||
36 | fi | ||
37 | fi | ||
38 | |||
39 | |||
40 | if [ ! -x $OPIEDIR/bin/qpe ] ; then | 32 | if [ ! -x $OPIEDIR/bin/qpe ] ; then |
41 | echo Opie not installed | 33 | echo Opie not installed |