[oe] [PATCH] initscripts-shr: add a palmpre specific umountfs script
Sylvain Paré
sylvain.pare at gmail.com
Mon Sep 5 07:42:19 UTC 2011
Signed-off-by: Sylvain 'GarthPS' Paré <sylvain.pare at gmail.com>
---
recipes/shr/initscripts-shr/palmpre/umountfs | 14 ++++++++++++++
recipes/shr/initscripts-shr_0.0.1.bb | 2 +-
2 files changed, 15 insertions(+), 1 deletions(-)
create mode 100644 recipes/shr/initscripts-shr/palmpre/umountfs
diff --git a/recipes/shr/initscripts-shr/palmpre/umountfs
b/recipes/shr/initscripts-shr/palmpre/umountfs
new file mode 100644
index 0000000..98ac3c2
--- /dev/null
+++ b/recipes/shr/initscripts-shr/palmpre/umountfs
@@ -0,0 +1,14 @@
+#! /bin/sh
+#
+# umountfs Turn off swap and unmount all local filesystems.
+#
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+# We leave /proc mounted.
+echo "Unmounting local filesystems..."
+grep -q /mnt/ram /proc/mounts && mount -o remount,ro /mnt/ram
+
+mount -o remount,ro /
+
+: exit 0
\ No newline at end of file
diff --git a/recipes/shr/initscripts-shr_0.0.1.bb b/recipes/shr/
initscripts-shr_0.0.1.bb
index 02e2205..b45296a 100644
--- a/recipes/shr/initscripts-shr_0.0.1.bb
+++ b/recipes/shr/initscripts-shr_0.0.1.bb
@@ -8,7 +8,7 @@ RDEPENDS_${PN} = "procps ${EXTRA_DEPS}"
LICENSE = "MIT"
LIC_FILES_CHKSUM =
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PV = "0.0.1"
-PR = "r29"
+PR = "r30"
RCONFLICTS_${PN} = "initscripts"
--
1.7.4.1
More information about the Openembedded-devel
mailing list