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
committerHans Dedecker <dedeckeh@gmail.com>2018-10-07 21:34:13 +0200
commit0fa1dd71ccf5456e1a55dd492e9a42d9b71185ba (patch)
tree13f5660c3755af824c7e964fe0924e8b4c45d0a1 /package/system/fstools/files/mount.hotplug
parentec9576607d19ddda04334142bdd7feef8cb5c5ca (diff)
downloadupstream-0fa1dd71ccf5456e1a55dd492e9a42d9b71185ba.tar.gz
upstream-0fa1dd71ccf5456e1a55dd492e9a42d9b71185ba.tar.bz2
upstream-0fa1dd71ccf5456e1a55dd492e9a42d9b71185ba.zip
fstools: filter unknown action in mount.hotplug script
Signed-off-by: Rosy Song <rosysong@rosinson.com>
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