diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-11-19 00:03:39 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-11-19 00:03:39 +0000 |
commit | 69598dd0201f6a1d9ac1c2037cd6c898a8a19a35 (patch) | |
tree | 29dc9792ad72ce583ecd17f70f34883bc54b92e0 | |
parent | 13f5ebaf8ed9ef98f10c2c3a554592217e237d82 (diff) | |
download | upstream-69598dd0201f6a1d9ac1c2037cd6c898a8a19a35.tar.gz upstream-69598dd0201f6a1d9ac1c2037cd6c898a8a19a35.tar.bz2 upstream-69598dd0201f6a1d9ac1c2037cd6c898a8a19a35.zip |
base-files: add the DEVICENAME variable for hotplug scripts
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38861
-rwxr-xr-x | package/base-files/files/sbin/hotplug-call | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index d627becc69..260be0b7a4 100755 --- a/package/base-files/files/sbin/hotplug-call +++ b/package/base-files/files/sbin/hotplug-call @@ -9,6 +9,7 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin LOGNAME=root 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 ( |