summaryrefslogtreecommitdiff
path: root/package/base-files
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 /package/base-files
parent13f5ebaf8ed9ef98f10c2c3a554592217e237d82 (diff)
downloadmtk-20170518-69598dd0201f6a1d9ac1c2037cd6c898a8a19a35.zip
mtk-20170518-69598dd0201f6a1d9ac1c2037cd6c898a8a19a35.tar.gz
mtk-20170518-69598dd0201f6a1d9ac1c2037cd6c898a8a19a35.tar.bz2
base-files: add the DEVICENAME variable for hotplug scripts
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38861
Diffstat (limited to 'package/base-files')
-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 d627bec..260be0b 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 (