From fcb3566b2ab7dbfcc7843f8ab5e8b89716215ce2 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 19 Nov 2013 00:03:39 +0000 Subject: base-files: add the DEVICENAME variable for hotplug scripts Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38861 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/sbin/hotplug-call | 1 + 1 file changed, 1 insertion(+) (limited to 'package/base-files/files') 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 ( -- cgit v1.2.3