diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-11-19 00:03:39 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-11-19 00:03:39 +0000 |
commit | fcb3566b2ab7dbfcc7843f8ab5e8b89716215ce2 (patch) | |
tree | 1916bb1a801ac62e556ba0bd3a3a9e155261d36a /package/base-files/files/sbin | |
parent | 227b3b2d614c1d034feb85d2de79d7417d33c10e (diff) |
base-files: add the DEVICENAME variable for hotplug scripts
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38861 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/sbin')
-rwxr-xr-x | package/base-files/files/sbin/hotplug-call | 1 |
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 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 ( |