include functions and network config in hotplug
[openwrt.git] / package / base-files / default / sbin / hotplug
1 #!/bin/sh
2 . /etc/functions.sh
3 . /etc/network.overrides
4 [ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
5
6 PATH=/bin:/sbin:/usr/bin:/usr/sbin
7 LOGNAME=root
8 USER=root
9 export PATH LOGNAME USER
10
11 [ \! -z "$1" -a -d /etc/hotplug.d/$1 ] && {
12 for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
13 [ -f $script ] && . $script
14 ); done
15 }
This page took 0.04539 seconds and 5 git commands to generate.