aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/fstools/files/mount.hotplug
diff options
context:
space:
mode:
authorRosy Song <rosysong@rosinson.com>2018-09-23 09:57:29 +0800
committerRafał Miłecki <rafal@milecki.pl>2019-01-10 07:16:42 +0100
commitd7275c03123fbbc318f47c37b08ad7433c639ebf (patch)
treeef45e38e164bbad3bf23d3c1856cec3c9309adf4 /package/system/fstools/files/mount.hotplug
parente0daa62af69eb3eba9750eccec8d790388878ba8 (diff)
downloadupstream-d7275c03123fbbc318f47c37b08ad7433c639ebf.tar.gz
upstream-d7275c03123fbbc318f47c37b08ad7433c639ebf.tar.bz2
upstream-d7275c03123fbbc318f47c37b08ad7433c639ebf.zip
fstools: filter unknown action in mount.hotplug script
Signed-off-by: Rosy Song <rosysong@rosinson.com> (cherry picked from commit 0fa1dd71ccf5456e1a55dd492e9a42d9b71185ba)
Diffstat (limited to 'package/system/fstools/files/mount.hotplug')
-rw-r--r--package/system/fstools/files/mount.hotplug2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/fstools/files/mount.hotplug b/package/system/fstools/files/mount.hotplug
index 946924e351..550e57c713 100644
--- a/package/system/fstools/files/mount.hotplug
+++ b/package/system/fstools/files/mount.hotplug
@@ -1 +1 @@
-/sbin/block hotplug
+[ "$ACTION" = "add" -o "$ACTION" = "remove" ] && /sbin/block hotplug