5 |
# get default settings |
# get default settings |
6 |
source /etc/conf.d/network |
source /etc/conf.d/network |
7 |
|
|
8 |
wait_online() |
iface_wait_online() |
9 |
{ |
{ |
10 |
local timeout="$1" |
local timeout="$1" |
11 |
local iface="$2" |
local iface="$2" |
446 |
checkconfig |
checkconfig |
447 |
|
|
448 |
# wait until the device is created |
# wait until the device is created |
449 |
wait_online 5 "${iface}" || { echo "device '${iface}' does not exist"; continue; } |
iface_wait_online 5 "${iface}" || { echo "device '${iface}' does not exist"; continue; } |
450 |
|
|
451 |
# setup mac |
# setup mac |
452 |
if [[ -n ${FORCE_MAC_TO} ]] |
if [[ -n ${FORCE_MAC_TO} ]] |