Signed-off-by: Bastian Bittorf <bitt...@bluebottle.com>
---
 package/base-files/files/sbin/hotplug-call |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/package/base-files/files/sbin/hotplug-call 
b/package/base-files/files/sbin/hotplug-call
index 260be0b..0a7c238 100755
--- a/package/base-files/files/sbin/hotplug-call
+++ b/package/base-files/files/sbin/hotplug-call
@@ -1,6 +1,8 @@
 #!/bin/sh
 # Copyright (C) 2006-2010 OpenWrt.org
 
+[ -n "$1" -a -d "/etc/hotplug.d/$1" ] && exit
+
 export HOTPLUG_TYPE="$1"
 
 . /lib/functions.sh
@@ -11,8 +13,6 @@ USER=root
 export PATH LOGNAME USER
 export DEVICENAME="${DEVPATH##*/}"
 
-[ \! -z "$1" -a -d /etc/hotplug.d/$1 ] && {
-       for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
-               [ -f $script ] && . $script
-       ); done
-}
+for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
+       [ -f $script ] && . $script
+); done
-- 
1.7.2.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to