zaurusd: Add the bl-on/off-via-hinge scripts to zaurusd as the bl packages has been...
authorMatthias Hentges <oe@hentges.net>
Wed, 6 Jun 2007 00:40:41 +0000 (00:40 +0000)
committerMatthias Hentges <oe@hentges.net>
Wed, 6 Jun 2007 00:40:41 +0000 (00:40 +0000)
packages/zaurusd/files/zaurus-hinge.bl-off [new file with mode: 0644]
packages/zaurusd/files/zaurus-hinge.bl-on [new file with mode: 0644]
packages/zaurusd/zaurusd_svn.bb

diff --git a/packages/zaurusd/files/zaurus-hinge.bl-off b/packages/zaurusd/files/zaurus-hinge.bl-off
new file mode 100644 (file)
index 0000000..888f90b
--- /dev/null
@@ -0,0 +1,10 @@
+#! /bin/sh
+#
+# Copyright Matthias Hentges <devel@hentges.net> (c) 2006
+# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)
+#
+# Filename: zaurus-hinge.bl-off
+# Date: 04-Jun-06
+
+test -z "${ZD_BINDIR}" && ZD_BINDIR="/usr/bin"
+${ZD_BINDIR}/bl off
diff --git a/packages/zaurusd/files/zaurus-hinge.bl-on b/packages/zaurusd/files/zaurus-hinge.bl-on
new file mode 100644 (file)
index 0000000..6d416ad
--- /dev/null
@@ -0,0 +1,10 @@
+#! /bin/sh
+#
+# Copyright Matthias Hentges <devel@hentges.net> (c) 2006
+# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)
+#
+# Filename: zaurus-hinge.bl-on
+# Date: 04-Jun-06
+
+test -z "${ZD_BINDIR}" && ZD_BINDIR="/usr/bin"
+${ZD_BINDIR}/bl on
index 125cd3b..0bc2424 100644 (file)
@@ -4,7 +4,7 @@ LICENSE = "GPL"
 DEPENDS = "tslib"
 RDEPENDS = "procps"
 PV = "0.0+svn${SRCDATE}"
-PR = "r9"
+PR = "r10"
 
 SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=zaurusd;proto=http \
            file://zaurus-hinge.in \
@@ -13,7 +13,9 @@ SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=zaurusd;proto=http \
           file://disable-alsa-handling.patch;patch=1 \
           file://zaurus-hinge.matchbox-portrait \         
           file://zaurus-hinge.matchbox-landscape \
-          file://zaurusd-mixer-callback.patch;patch=1"
+          file://zaurusd-mixer-callback.patch;patch=1 \
+          file://zaurus-hinge.bl-on \
+          file://zaurus-hinge.bl-off"
 
 
 S = "${WORKDIR}/${PN}"
@@ -28,6 +30,12 @@ do_install_append() {
        install -d "${D}/etc/zaurusd/hinge-landscape.d"
        install -d "${D}/etc/zaurusd/hinge-portrait.d"
        install -d "${D}/etc/zaurusd/hinge-close.d"
+       install -d ${D}/etc/apm/resume.d
+
+       install -m 0755 "${WORKDIR}/zaurus-hinge.bl-on" "${D}/etc/apm/resume.d/00-backlight-on"
+       install -m 0755 "${WORKDIR}/zaurus-hinge.bl-on" "${D}/etc/zaurusd/hinge-landscape.d/00-backlight-on"
+       install -m 0755 "${WORKDIR}/zaurus-hinge.bl-on" "${D}/etc/zaurusd/hinge-portrait.d/00-backlight-on"
+       install -m 0755 "${WORKDIR}/zaurus-hinge.bl-off" "${D}/etc/zaurusd/hinge-close.d/00-backlight-off"
 
        install -m 0755 "${WORKDIR}/zaurus-hinge.matchbox-landscape" "${D}/etc/zaurusd/hinge-landscape.d/20-matchbox-landscape"
        install -m 0755 "${WORKDIR}/zaurus-hinge.matchbox-portrait" "${D}/etc/zaurusd/hinge-portrait.d/20-matchbox-portrait"