From 24ad479554f7f455548d92f6ddf048b12ce32e3e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 23 Oct 2011 11:52:22 +0200 Subject: sync before umount --- package/base-files/src/etc/rc.shutdown | 5 +++-- 1 file 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 -- cgit v1.2.3