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