Browse Source

sync before umount

Waldemar Brodkorb 14 years ago
parent
commit
24ad479554
1 changed files with 3 additions and 2 deletions
  1. 3 2
      package/base-files/src/etc/rc.shutdown

+ 3 - 2
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