diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-11-09 02:02:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-11-09 02:02:13 +0000 |
commit | e3e87f09d912a1891590b6d31619eb28ad8e9469 (patch) | |
tree | ea3df9772f5ee87e7f38b6be6dd4b7e7073150ff /package/base-files/default/etc | |
parent | f80c6e9e292877d4c94a27fd46f73390b30d781c (diff) | |
download | upstream-e3e87f09d912a1891590b6d31619eb28ad8e9469.tar.gz upstream-e3e87f09d912a1891590b6d31619eb28ad8e9469.tar.bz2 upstream-e3e87f09d912a1891590b6d31619eb28ad8e9469.zip |
fix potential data loss issue on failed umount (patch from #942)
SVN-Revision: 5474
Diffstat (limited to 'package/base-files/default/etc')
-rwxr-xr-x | package/base-files/default/etc/hotplug.d/block/01-mount | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/default/etc/hotplug.d/block/01-mount b/package/base-files/default/etc/hotplug.d/block/01-mount index b6275e5a28..db8ccdabd6 100755 --- a/package/base-files/default/etc/hotplug.d/block/01-mount +++ b/package/base-files/default/etc/hotplug.d/block/01-mount @@ -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 |