Explorar el Código

sync before umount

Waldemar Brodkorb hace 14 años
padre
commit
24ad479554
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  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
 #!/bin/sh
+cd /
+sync
 for i in $(grep -v ^# /etc/fstab 2>/dev/null|awk '{ print $2 }');do
 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
 done