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 | 7326a8beb5b3b075ea6942a10795514b73dfc61e (patch) | |
tree | 585bcc65b14f8148c6272ca43d3e9d02ea764460 /package/base-files/files/sbin/hotplug-call | |
parent | 9dd72732bbe358858a03a7130bb0e0d8e4f85be8 (diff) | |
download | upstream-7326a8beb5b3b075ea6942a10795514b73dfc61e.tar.gz upstream-7326a8beb5b3b075ea6942a10795514b73dfc61e.tar.bz2 upstream-7326a8beb5b3b075ea6942a10795514b73dfc61e.zip |
/sbin/hotplug-call: export the hotplug event type through the environment for hotplug scripts
SVN-Revision: 6768
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" |