[oe-commits] ghost : dreambox_bootlogo.bb: /boot must be remountet rw before install / remove files

GIT User account git at amethyst.openembedded.net
Tue Nov 11 01:06:16 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dreambox
Commit: 454188c155b79c7461c05299d302de97ab8eb6a4
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=454188c155b79c7461c05299d302de97ab8eb6a4

Author: ghost <andreas.monzner at multimedia-labs.de>
Date:   Tue Nov 11 00:53:33 2008 +0100

dreambox_bootlogo.bb: /boot must be remountet rw before install / remove files

---

 packages/dreambox/dreambox-bootlogo.bb |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/packages/dreambox/dreambox-bootlogo.bb b/packages/dreambox/dreambox-bootlogo.bb
index 2d0307e..4cb86b3 100644
--- a/packages/dreambox/dreambox-bootlogo.bb
+++ b/packages/dreambox/dreambox-bootlogo.bb
@@ -11,7 +11,7 @@ BINARY_VERSION_dm800 = "2"
 BINARY_VERSION_dm8000 = "2"
 
 PV = "${BINARY_VERSION}.${IMAGES_VERSION}"
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "http://sources.dreamboxupdate.com/download/7020/bootlogo-${MACHINE}-${BINARY_VERSION}.elf \
 	http://sources.dreamboxupdate.com/download/7020/bootlogo-${MACHINE}-${IMAGES_VERSION}.mvi \
@@ -51,5 +51,21 @@ do_install_dm8000() {
 	do_install_dm800
 }
 
+pkg_preinst() {
+	[ -d /proc/stb ] && mount -o rw,remount /boot
+}
+
+pkg_postinst() {
+	[ -d /proc/stb ] && mount -o ro,remount /boot
+}
+
+pkg_prerm() {
+	pkg_preinst
+}
+
+pkg_postrm() {
+	pkg_postinst
+}
+
 PACKAGE_ARCH := "${MACHINE_ARCH}"
 FILES_${PN} = "/boot /usr/share"





More information about the Openembedded-commits mailing list