fix potential data loss issue on failed umount (patch from #942)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 9 Nov 2006 02:02:13 +0000 (02:02 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 9 Nov 2006 02:02:13 +0000 (02:02 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5474 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/default/etc/hotplug.d/block/01-mount

index b6275e5..db8ccda 100755 (executable)
@@ -19,8 +19,8 @@ add)
        }
        ;;
 remove)
-       umount /tmp/$DEV
-       rm -rf /dev/$DEV /tmp/$DEV
+       umount /tmp/$DEV && rmdir /tmp/$DEV
+       rm -f /dev/$DEV /tmp/$DEV
        ;;
 esac
 } 2>&1 | logger
This page took 0.031955 seconds and 4 git commands to generate.