openwrtv4/openwrt/package/base-files/default/sbin/hotplug
Felix Fietkau 2e8e51060f add hotplug stuff to trunk/
SVN-Revision: 2364
2005-11-07 01:12:51 +00:00

11 lines
231 B
Bash
Executable file

#!/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
}