364 |
|
|
365 |
if [[ -z $1 ]] |
if [[ -z $1 ]] |
366 |
then |
then |
367 |
ALL_INTERFACES=$(onboot_interface_list ${network_settings}/net.*) |
ALL_INTERFACES=$(onboot_interface_list ${rc_network_settings}/net.*) |
368 |
else |
else |
369 |
if [[ -e ${network_settings}/net.$1 ]] |
if [[ -e ${rc_network_settings}/net.$1 ]] |
370 |
then |
then |
371 |
ALL_INTERFACES="$1" |
ALL_INTERFACES="$1" |
372 |
else |
else |
381 |
for iface in ${ALL_INTERFACES} |
for iface in ${ALL_INTERFACES} |
382 |
do |
do |
383 |
# checkconfig |
# checkconfig |
384 |
source ${network_settings}/net.${iface} || exit 1 |
source ${rc_network_settings}/net.${iface} || exit 1 |
385 |
checkconfig |
checkconfig |
386 |
|
|
387 |
# setup mac |
# setup mac |
472 |
{ |
{ |
473 |
if [[ -z $1 ]] |
if [[ -z $1 ]] |
474 |
then |
then |
475 |
ALL_INTERFACES=$(onboot_interface_list ${network_settings}/net.*) |
ALL_INTERFACES=$(onboot_interface_list ${rc_network_settings}/net.*) |
476 |
else |
else |
477 |
if [[ -e ${network_settings}/net.$1 ]] |
if [[ -e ${rc_network_settings}/net.$1 ]] |
478 |
then |
then |
479 |
ALL_INTERFACES="$1" |
ALL_INTERFACES="$1" |
480 |
else |
else |
488 |
# get list of all devices |
# get list of all devices |
489 |
for iface in ${ALL_INTERFACES} |
for iface in ${ALL_INTERFACES} |
490 |
do |
do |
491 |
source ${network_settings}/net.${iface} || exit 1 |
source ${rc_network_settings}/net.${iface} || exit 1 |
492 |
checkconfig |
checkconfig |
493 |
|
|
494 |
if [[ -n ${GATEWAY} ]] |
if [[ -n ${GATEWAY} ]] |