summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-09-05 17:13:00 (UTC)
committer kergoth <kergoth>2002-09-05 17:13:00 (UTC)
commitdeaef1d44dfc99be6301bfb20e5b35346c005641 (patch) (unidiff)
tree1b3323dc1a72539d9ca299801f736aa03da6cae5
parent5234cdf47b57d31665a0a8746178879f6912c83d (diff)
downloadopie-deaef1d44dfc99be6301bfb20e5b35346c005641.zip
opie-deaef1d44dfc99be6301bfb20e5b35346c005641.tar.gz
opie-deaef1d44dfc99be6301bfb20e5b35346c005641.tar.bz2
Sane fallback for rotation if /proc/hal/model doesnt exist (i.e. zaurus).
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xroot/etc/init.d/opie3
1 files changed, 2 insertions, 1 deletions
diff --git a/root/etc/init.d/opie b/root/etc/init.d/opie
index 01704f2..ada0431 100755
--- a/root/etc/init.d/opie
+++ b/root/etc/init.d/opie
@@ -1,12 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3 3
4export LOGNAME=root 4export LOGNAME=root
5export HOME=/$LOGNAME 5export HOME=/$LOGNAME
6#export QWS_DISPLAY=Transformed:Rot270:0
7export QTDIR=/opt/QtPalmtop 6export QTDIR=/opt/QtPalmtop
8export OPIEDIR=/opt/QtPalmtop 7export OPIEDIR=/opt/QtPalmtop
9export QPEDIR=/opt/QtPalmtop 8export QPEDIR=/opt/QtPalmtop
10export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib 9export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib
11export PATH=$PATH:$OPIEDIR/bin 10export PATH=$PATH:$OPIEDIR/bin
12 11
@@ -44,12 +43,14 @@ case $1 in
44 "3100" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; 43 "3100" ) export QWS_DISPLAY=Transformed:Rot90:0 ;;
45 "3600" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; 44 "3600" ) export QWS_DISPLAY=Transformed:Rot270:0 ;;
46 "3700" ) export QWS_DISPLAY=Transformed:Rot270:0 ;; 45 "3700" ) export QWS_DISPLAY=Transformed:Rot270:0 ;;
47 "3800" ) export QWS_DISPLAY=Transformed:Rot90:0 ;; 46 "3800" ) export QWS_DISPLAY=Transformed:Rot90:0 ;;
48 *) echo "Unknown processor type -`module_id`-!" ;; 47 *) echo "Unknown processor type -`module_id`-!" ;;
49 esac 48 esac
49 else
50 export QWS_DISPLAY=Transformed:Rot270:0
50 fi 51 fi
51 52
52 53
53 if [ -x $OPIEDIR/bin/opie-login ]; then 54 if [ -x $OPIEDIR/bin/opie-login ]; then
54 if ! killall -0 syslogd 2>/dev/null >/dev/null; then 55 if ! killall -0 syslogd 2>/dev/null >/dev/null; then
55 echo Starting Opie-login.... 56 echo Starting Opie-login....