2005-11-07 01:12:51 +00:00
|
|
|
#!/bin/sh
|
2005-11-19 03:17:20 +00:00
|
|
|
[ -e /tmp/.failsafe ] && {
|
|
|
|
export FAILSAFE=true
|
|
|
|
} || {
|
|
|
|
[ -e /etc/config/network ] && . /etc/config/network
|
|
|
|
}
|
2005-11-07 02:18:59 +00:00
|
|
|
. /etc/functions.sh
|
|
|
|
. /etc/network.overrides
|
|
|
|
|
2005-11-07 01:12:51 +00:00
|
|
|
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
|
|
|
|
}
|