base-files: hotplug-call: exit success when dir is absent
This commit is contained in:
parent
bbfe794d58
commit
5c21501084
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user