psplash: adjust the rotation angle in the initscript according to the machine being...
authorMichael Krelin <hacker@klever.net>
Mon, 7 May 2007 00:15:58 +0000 (00:15 +0000)
committerMichael Krelin <hacker@klever.net>
Mon, 7 May 2007 00:15:58 +0000 (00:15 +0000)
packages/psplash/files/psplash-init
packages/psplash/psplash_svn.bb

index a966638..2bd83cf 100644 (file)
@@ -9,8 +9,13 @@ for x in $(cat /proc/cmdline); do
         esac
 done
 
+psplash_args=''
+case "`grep ^Hardware /proc/cpuinfo|cut -d: -f2 |tr A-Z a-z`" in
+ "hp ipaq h3100"|"hp ipaq h3800") pspash_args='-a 90' ;;
+ "hp ipaq 3600"|"hp ipaq 3700"|"hp ipaq h3900"|"htc universal"|*collie|*poodle|*akita|*spitz|*borzoi) psplash_args='-a 270' ;;
+esac
+
 export TMPDIR=/mnt/.psplash
 mount tmpfs -t tmpfs $TMPDIR -o,size=40k
 
-/usr/bin/psplash &
-
+/usr/bin/psplash $psplash_args &
index eebe217..6b51d33 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "base"
 LICENSE = "GPL"
 
 PV = "0.0+svn${SRCDATE}"
-PR = "r2"
+PR = "r3"
 
 # You can create your own pslash-hand-img.h by doing
 # ./make-image-header.sh <file>.png HAND