Magellan Linux

Diff of /trunk/initscripts/sysvinit/rc/network

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2101 by niro, Tue Apr 2 08:27:01 2013 UTC revision 2305 by niro, Thu Jan 2 13:28:42 2014 UTC
# Line 14  source /etc/conf.d/rc Line 14  source /etc/conf.d/rc
14  source ${rc_functions}  source ${rc_functions}
15  source /etc/conf.d/network  source /etc/conf.d/network
16    
17    wait_online()
18    {
19     local timeout="1"
20     local iface="$2"
21    
22     (( timeout *= 10 ))
23    
24     while [ ! -e /sys/class/net/${iface} ]
25     do
26     (( timeout-- > 0 )) || return 1
27     sleep 0.1
28     done
29    
30     return 0
31    }
32    
33  # read values from files  # read values from files
34  read_value()  read_value()
35  {  {
# Line 460  networking_start() Line 476  networking_start()
476   source ${rc_network_settings}/net.${iface} || exit 1   source ${rc_network_settings}/net.${iface} || exit 1
477   checkconfig   checkconfig
478    
479     # wait until the device is created
480     wait_online 5 "${iface}" || { echo "device '${iface}' does not exist"; continue; }
481    
482   # setup mac   # setup mac
483   if [[ -n ${FORCE_MAC_TO} ]]   if [[ -n ${FORCE_MAC_TO} ]]
484   then   then

Legend:
Removed from v.2101  
changed lines
  Added in v.2305