3 # set up network devices
6 #locate and source functions script
7 source `PATH=$INIT_D/:/sbin/init.d:/etc/init.d:/etc/rc.d type -p functions`
9 #sysconfig contains network parameters
10 source $sysconfig_nicconfig
15 while [ -n "${NET_DEVICE[$i]}" ]
17 if [ "${NET_ONBOOT[$i]}" = yes ]
19 echo "Bringing up the ${NET_DEVICE[$i]} interface..."
20 ifconfig
"${NET_DEVICE[$i]}" ${NET_IP[$i]} \
21 broadcast
${NET_BROADCAST[$i]} netmask
${NET_MASK[$i]}
30 while [ -n "${NET_DEVICE[$i]}" ]
32 if [ "${NET_ONBOOT[$i]}" = yes ]
34 echo "Bringing down the ${NET_DEVICE[$i]} interface..."
35 ifconfig
"${NET_DEVICE[$i]}" down