diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-31 00:59:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-31 00:59:49 +0000 |
commit | 32d7a5ac2a99ead4e7e55afc4864397a6f668a69 (patch) | |
tree | 292cb624190b75e588c8fc56af21c087431db872 /package/base-files/files/sbin/hotplug-call | |
parent | 1ddb7378b9648d39ab47e368987267ef442154a4 (diff) | |
download | upstream-32d7a5ac2a99ead4e7e55afc4864397a6f668a69.tar.gz upstream-32d7a5ac2a99ead4e7e55afc4864397a6f668a69.tar.bz2 upstream-32d7a5ac2a99ead4e7e55afc4864397a6f668a69.zip |
/sbin/hotplug-call: export the hotplug event type through the environment for hotplug scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6768 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/sbin/hotplug-call')
-rwxr-xr-x | package/base-files/files/sbin/hotplug-call | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index b1b6f97b23..607ee2e9db 100755 --- a/package/base-files/files/sbin/hotplug-call +++ b/package/base-files/files/sbin/hotplug-call @@ -1,9 +1,11 @@ #!/bin/sh # Copyright (C) 2006 OpenWrt.org +export HOTPLUG_TYPE="$1" + # bypass the normal hotplug path for firmware loading # would otherwise cause problems with drivers like bcm43xx -[ "$1" = "firmware" -a "$ACTION" = "add" ] && { +[ "$HOTPLUG_TYPE" = "firmware" -a "$ACTION" = "add" ] && { [ -f "/lib/firmware/$FIRMWARE" ] && { echo 1 > "/sys$DEVPATH/loading" cp "/lib/firmware/$FIRMWARE" "/sys$DEVPATH/data" |