/[baselayout]/branches/baselayout-1_12/net-scripts/net/ifconfig.sh
Gentoo

Diff of /branches/baselayout-1_12/net-scripts/net/ifconfig.sh

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

Revision 2422 Revision 2423
428 config=( ${r//brd +/} ) 428 config=( ${r//brd +/} )
429 config=( "${config[@]//brd/broadcast}" ) 429 config=( "${config[@]//brd/broadcast}" )
430 config=( "${config[@]//peer/pointopoint}" ) 430 config=( "${config[@]//peer/pointopoint}" )
431 fi 431 fi
432 432
433 # Ensure that the interface is up so we can add IPv6 addresses
434 interface_up "${real_iface}"
435
436 # Some kernels like to apply lo with an address when they are brought up 433 # Some kernels like to apply lo with an address when they are brought up
437 if [[ ${config[@]} == "127.0.0.1/8 brd 127.255.255.255" ]]; then 434 if [[ ${config[@]} == "127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255" ]]; then
438 is_loopback "${iface}" && ifconfig "${iface}" 0.0.0.0 435 if is_loopback "${real_iface}" ; then
436 ifconfig "${real_iface}" ${config[@]}
437 return 0
438 fi
439 fi 439 fi
440 440
441 ifconfig "${iface}" ${config[@]} 441 ifconfig "${iface}" ${config[@]}
442} 442}
443 443

Legend:
Removed from v.2422  
changed lines
  Added in v.2423

  ViewVC Help
Powered by ViewVC 1.1.20