From: Rosy Song Date: Sun, 23 Sep 2018 01:57:29 +0000 (+0800) Subject: fstools: filter unknown action in mount.hotplug script X-Git-Tag: v18.06.2~32 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d7275c03123fbbc318f47c37b08ad7433c639ebf;p=oweals%2Fopenwrt.git fstools: filter unknown action in mount.hotplug script Signed-off-by: Rosy Song (cherry picked from commit 0fa1dd71ccf5456e1a55dd492e9a42d9b71185ba) --- diff --git a/package/system/fstools/Makefile b/package/system/fstools/Makefile index 1b5bea47f0..cc02033706 100644 --- a/package/system/fstools/Makefile +++ b/package/system/fstools/Makefile @@ -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 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