2 # Copyright (C) 2006-2016 OpenWrt.org
4 export HOTPLUG_TYPE
="$1"
11 export PATH LOGNAME USER
12 export DEVICENAME
="${DEVPATH##*/}"
14 if [ \
! -z "$1" -a -d /etc
/hotplug.d
/$1 ]; then
15 for script in $
(ls /etc
/hotplug.d
/$1/* 2>&-); do (
16 [ -f $script ] && .
$script