From 5c21501084258bfb9b07b555b947368c26a72fce Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Sat, 2 Nov 2019 07:55:05 +0800 Subject: [PATCH] base-files: hotplug-call: exit success when dir is absent --- package/base-files/files/sbin/hotplug-call | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index 28e957c398..f595b9e75f 100755 --- a/package/base-files/files/sbin/hotplug-call +++ b/package/base-files/files/sbin/hotplug-call @@ -11,8 +11,8 @@ USER=root export PATH LOGNAME USER 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 ( [ -f $script ] && . $script ); done -} +fi