fix potential data loss issue on failed umount (patch from #942)
[openwrt.git] / 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.022996 seconds and 4 git commands to generate.