add hotplug stuff to trunk/

SVN-Revision: 2364
This commit is contained in:
Felix Fietkau
2005-11-07 01:12:51 +00:00
parent 14a88822fd
commit 2e8e51060f
25 changed files with 148 additions and 73 deletions

View File

@@ -0,0 +1,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
}