mount: check if block was mounted before cleaning it up
authorRafał Miłecki <[email protected]>
Wed, 3 Jan 2018 10:31:23 +0000 (11:31 +0100)
committerJohn Crispin <[email protected]>
Sun, 7 Jan 2018 11:49:37 +0000 (12:49 +0100)
commitc54e5c6e09bf8e8debea05dd0dac095624a2472b
tree2be4ea893654739d904c9bc011e9357ac8e4c49a
parente31565a287c6b44763d5b11bdc88c2d79c5e508e
mount: check if block was mounted before cleaning it up

Calling an extra rmdir and unlink isn't a big issue but triggering
hotplug.d scripts for devices that weren't mounted could be misleading
for listeners.

Signed-off-by: Rafał Miłecki <[email protected]>
mount.c