]> git.openpandora.org Git - openembedded.git/commitdiff
initscripts: Make umountfs a bit more robust, bump PR
authorTom Rini <tom_rini@mentor.com>
Tue, 23 Feb 2010 18:56:46 +0000 (11:56 -0700)
committerTom Rini <tom_rini@mentor.com>
Tue, 23 Feb 2010 18:56:46 +0000 (11:56 -0700)
recipes/initscripts/files/umountfs
recipes/initscripts/initscripts_1.0.bb

index ec75b0c4a4c745ef824ad0e61cbbc0875eb9c18b..79bb48f74e7a0015e2300ed946cc040f5a1d114b 100644 (file)
@@ -10,9 +10,9 @@ swapoff -a
 
 # We leave /proc mounted.
 echo "Unmounting local filesystems..."
-mount -o remount,ro /mnt/ram
-umount -f -a -r
-
+grep -q /mnt/ram /proc/mounts && mount -o remount,ro /mnt/ram
 mount -o remount,ro /
 
+umount -f -a -r > /dev/null 2>&1
+
 : exit 0
index 1bd6706abe322b7e79b7ab3fc84b3ac46a16f58b..2c0689ffc80d1def06aa87117ed7f802ddff962a 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "required"
 DEPENDS = "makedevs"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r116"
+PR = "r117"
 
 SRC_URI = "file://functions \
            file://halt \