base-files: Add rotation file to indicate rotated display on akita/spitz
authorRichard Purdie <richard@openedhand.com>
Wed, 28 Mar 2007 10:58:21 +0000 (10:58 +0000)
committerRichard Purdie <richard@openedhand.com>
Wed, 28 Mar 2007 10:58:21 +0000 (10:58 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1398 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/base-files/base-files/akita/rotation [new file with mode: 0644]
meta/packages/base-files/base-files/rotation [new file with mode: 0644]
meta/packages/base-files/base-files/spitz/rotation [new file with mode: 0644]
meta/packages/base-files/base-files_3.0.14.bb

diff --git a/meta/packages/base-files/base-files/akita/rotation b/meta/packages/base-files/base-files/akita/rotation
new file mode 100644 (file)
index 0000000..2a14d60
--- /dev/null
@@ -0,0 +1 @@
+270
\ No newline at end of file
diff --git a/meta/packages/base-files/base-files/rotation b/meta/packages/base-files/base-files/rotation
new file mode 100644 (file)
index 0000000..c227083
--- /dev/null
@@ -0,0 +1 @@
+0
\ No newline at end of file
diff --git a/meta/packages/base-files/base-files/spitz/rotation b/meta/packages/base-files/base-files/spitz/rotation
new file mode 100644 (file)
index 0000000..2a14d60
--- /dev/null
@@ -0,0 +1 @@
+270
\ No newline at end of file
index cf8a785..9a6c222 100644 (file)
@@ -1,10 +1,11 @@
 DESCRIPTION = "Miscellaneous files for the base system."
 SECTION = "base"
 PRIORITY = "required"
-PR = "r54"
+PR = "r55"
 LICENSE = "GPL"
 
 SRC_URI = " \
+           file://rotation \
            file://nsswitch.conf \
            file://motd \
            file://inputrc \
@@ -90,6 +91,11 @@ do_install () {
               install -m 0644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net
        fi
 
+       rotation=`cat ${WORKDIR}/rotation`
+       if [ "$rotation" != "0" ]; then
+               install -m 0644 ${WORKDIR}/rotation ${D}${sysconfdir}/rotation
+       fi
+
        install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab
        install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems
        install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd