base-files: add the DEVICENAME variable for hotplug scripts
authorFelix Fietkau <nbd@openwrt.org>
Tue, 19 Nov 2013 00:03:39 +0000 (00:03 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 19 Nov 2013 00:03:39 +0000 (00:03 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38861

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

index d627becc6973d66f1cea6925e160c70efb7e588e..260be0b7a4e9e834eda140142361e726d9eb4a30 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 (