summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/sbin/hotplug
blob: 57ee969cf7b488b2d351f601b5916f688f403092 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
LOGNAME=root
USER=root
export PATH LOGNAME USER

[ \! -z "$1" -a -d /etc/hotplug.d/$1 ] && {
	for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
		[ -f $script ] && . $script
	); done
}