mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00:00
base-files: hotplug-call: exit success when dir is absent
"block mount" invokes "hotplug-call mount". It emits the following error when mount is not present hotplug-call call failed Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
parent
b49f2113cc
commit
f526e85426
@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
|
|||||||
include $(INCLUDE_DIR)/feeds.mk
|
include $(INCLUDE_DIR)/feeds.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=205
|
PKG_RELEASE:=206
|
||||||
PKG_FLAGS:=nonshared
|
PKG_FLAGS:=nonshared
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
|
@ -11,8 +11,8 @@ USER=root
|
|||||||
export PATH LOGNAME USER
|
export PATH LOGNAME USER
|
||||||
export DEVICENAME="${DEVPATH##*/}"
|
export DEVICENAME="${DEVPATH##*/}"
|
||||||
|
|
||||||
[ \! -z "$1" -a -d /etc/hotplug.d/$1 ] && {
|
if [ \! -z "$1" -a -d /etc/hotplug.d/$1 ]; then
|
||||||
for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
|
for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
|
||||||
[ -f $script ] && . $script
|
[ -f $script ] && . $script
|
||||||
); done
|
); done
|
||||||
}
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user