projects
/
librecmc
/
librecmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13f5eba
)
base-files: add the DEVICENAME variable for hotplug scripts
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 19 Nov 2013 00:03:39 +0000
(
00:03
+0000)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/package/base-files/files/sbin/hotplug-call
b/package/base-files/files/sbin/hotplug-call
index d627becc6973d66f1cea6925e160c70efb7e588e..260be0b7a4e9e834eda140142361e726d9eb4a30 100755
(executable)
--- 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 (