mount: check if block was mounted before cleaning it up
authorRafał Miłecki <rafal@milecki.pl>
Wed, 3 Jan 2018 10:31:23 +0000 (11:31 +0100)
committerJohn Crispin <john@phrozen.org>
Sun, 7 Jan 2018 11:49:37 +0000 (12:49 +0100)
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 <rafal@milecki.pl>

No differences found