fstools: filter unknown action in mount.hotplug script
authorRosy Song <rosysong@rosinson.com>
Sun, 23 Sep 2018 01:57:29 +0000 (09:57 +0800)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 10 Jan 2019 06:16:42 +0000 (07:16 +0100)
Signed-off-by: Rosy Song <rosysong@rosinson.com>
(cherry picked from commit 0fa1dd71ccf5456e1a55dd492e9a42d9b71185ba)

package/system/fstools/Makefile
package/system/fstools/files/mount.hotplug

index 1b5bea47f06dee8dba27d98d363c6242ec886a6a..cc02033706bfa3c7addf6cefdd4494d3b6b7aa44 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fstools
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/fstools.git
index 946924e351c4cfc886428fdc39a76204118cd257..550e57c71396824b3022b527012342ed7362136e 100644 (file)
@@ -1 +1 @@
-/sbin/block hotplug
+[ "$ACTION" = "add" -o "$ACTION" = "remove" ] && /sbin/block hotplug