aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-11-19 00:03:39 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-11-19 00:03:39 +0000
commit69598dd0201f6a1d9ac1c2037cd6c898a8a19a35 (patch)
tree29dc9792ad72ce583ecd17f70f34883bc54b92e0
parent13f5ebaf8ed9ef98f10c2c3a554592217e237d82 (diff)
downloadupstream-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-xpackage/base-files/files/sbin/hotplug-call1
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 (