add hotplug stuff to trunk/
[openwrt.git] / package / base-files / default / sbin / hotplug
1 #!/bin/sh
2 PATH=/bin:/sbin:/usr/bin:/usr/sbin
3 LOGNAME=root
4 USER=root
5 export PATH LOGNAME USER
6
7 [ \! -z "$1" -a -d /etc/hotplug.d/$1 ] && {
8 for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
9 [ -f $script ] && . $script
10 ); done
11 }
This page took 0.039762 seconds and 5 git commands to generate.