projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix potential data loss issue on failed umount (patch from #942)
[openwrt.git]
/
package
/
base-files
/
default
/
etc
/
hotplug.d
/
block
/
01-mount
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
b6275e5
..
db8ccda
100755
(executable)
--- 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 -
r
f /dev/$DEV /tmp/$DEV
+ umount /tmp/$DEV
&& rmdir /tmp/$DEV
+ rm -f /dev/$DEV /tmp/$DEV
;;
esac
} 2>&1 | logger
This page took
0.029673 seconds
and
4
git commands to generate.