summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-10-23 11:52:22 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-10-23 11:52:22 +0200
commit24ad479554f7f455548d92f6ddf048b12ce32e3e (patch)
tree76d0e3131702699f7c2997d028c13a30a273e984
parentf59297dd236b2892205e28c734eb585587651532 (diff)
sync before umount
-rw-r--r--package/base-files/src/etc/rc.shutdown5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/base-files/src/etc/rc.shutdown b/package/base-files/src/etc/rc.shutdown
index 381669a57..8716dc59e 100644
--- a/package/base-files/src/etc/rc.shutdown
+++ b/package/base-files/src/etc/rc.shutdown
@@ -1,5 +1,6 @@
#!/bin/sh
+cd /
+sync
for i in $(grep -v ^# /etc/fstab 2>/dev/null|awk '{ print $2 }');do
- printf Unmounting $i
- umount $i
+ umount $i 2>/dev/null
done