lede/package/base-files/files/sbin/hotplug-call

19 lines
336 B
Plaintext
Raw Normal View History

2017-09-06 11:19:45 +00:00
#!/bin/sh
# Copyright (C) 2006-2016 OpenWrt.org
export HOTPLUG_TYPE="$1"
. /lib/functions.sh
PATH="%PATH%"
LOGNAME=root
USER=root
export PATH LOGNAME USER
export DEVICENAME="${DEVPATH##*/}"
2019-12-08 17:30:10 +00:00
if [ \! -z "$1" -a -d /etc/hotplug.d/$1 ]; then
2017-09-06 11:19:45 +00:00
for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
[ -f $script ] && . $script
); done
2021-06-15 09:58:07 +00:00
fi