base-files: add the DEVICENAME variable for hotplug scripts
[librecmc/librecmc.git] / 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 (