base-files: add the DEVICENAME variable for hotplug scripts
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 19 Nov 2013 00:03:39 +0000 (00:03 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 19 Nov 2013 00:03:39 +0000 (00:03 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38861 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/sbin/hotplug-call

index d627bec..260be0b 100755 (executable)
@@ -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 (