aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin/hotplug-call
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-06-15 16:07:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-06-15 16:07:09 +0000
commit171557a1c1f861e4e623d2c7f7afe7c917ac5803 (patch)
treef61c859fa79bcf8d22b6964b875bf2f835de0fa7 /package/base-files/files/sbin/hotplug-call
parent040caceff305b7d30e4de03f1307562b6cd058fc (diff)
downloadmaster-187ad058-171557a1c1f861e4e623d2c7f7afe7c917ac5803.tar.gz
master-187ad058-171557a1c1f861e4e623d2c7f7afe7c917ac5803.tar.bz2
master-187ad058-171557a1c1f861e4e623d2c7f7afe7c917ac5803.zip
more fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7639 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/sbin/hotplug-call')
-rwxr-xr-xpackage/base-files/files/sbin/hotplug-call2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call
index 607ee2e9db..57011d1523 100755
--- a/package/base-files/files/sbin/hotplug-call
+++ b/package/base-files/files/sbin/hotplug-call
@@ -5,7 +5,7 @@ export HOTPLUG_TYPE="$1"
# bypass the normal hotplug path for firmware loading
# would otherwise cause problems with drivers like bcm43xx
-[ "$HOTPLUG_TYPE" = "firmware" -a "$ACTION" = "add" ] && {
+[ "firmware" = "$HOTPLUG_TYPE" -a "add" = "$ACTION" ] && {
[ -f "/lib/firmware/$FIRMWARE" ] && {
echo 1 > "/sys$DEVPATH/loading"
cp "/lib/firmware/$FIRMWARE" "/sys$DEVPATH/data"