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
commit90d54c0faaaaf14edad59185d6066c5b32273dcb (patch)
treea7429f41f482afebd0ac8c04d417ff026e2bbbfd /package/base-files/files/sbin/hotplug-call
parent5e6f8739be1b3de38ed7ad1c7dc80bc1f4c4bf31 (diff)
downloadupstream-90d54c0faaaaf14edad59185d6066c5b32273dcb.tar.gz
upstream-90d54c0faaaaf14edad59185d6066c5b32273dcb.tar.bz2
upstream-90d54c0faaaaf14edad59185d6066c5b32273dcb.zip
more fixes
SVN-Revision: 7639
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"