rc.network (91853) | rc.network (91871) |
---|---|
1#!/bin/sh - | 1#!/bin/sh - |
2# $FreeBSD: head/release/picobsd/mfs_tree/etc/rc.network 91853 2002-03-08 05:15:08Z luigi $ | 2# $FreeBSD: head/release/picobsd/mfs_tree/etc/rc.network 91871 2002-03-08 12:33:48Z luigi $ |
3 4network_pass1() { 5 echo -n 'Doing initial network setup:' 6 # Set the host name if it is not already set 7 if [ -z "`hostname -s`" ] ; then 8 hostname $hostname 9 echo ' hostname' 10 fi --- 5 unchanged lines hidden (view full) --- 16 [ -n "${ifconfig_args}" ] && ifconfig ${ifn} ${ifconfig_args} 17 # Check to see if aliases need to be added 18 alias=0 19 while : 20 do 21 eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} 22 if [ -n "${ifconfig_args}" ]; then 23 ifconfig ${ifn} ${ifconfig_args} alias | 3 4network_pass1() { 5 echo -n 'Doing initial network setup:' 6 # Set the host name if it is not already set 7 if [ -z "`hostname -s`" ] ; then 8 hostname $hostname 9 echo ' hostname' 10 fi --- 5 unchanged lines hidden (view full) --- 16 [ -n "${ifconfig_args}" ] && ifconfig ${ifn} ${ifconfig_args} 17 # Check to see if aliases need to be added 18 alias=0 19 while : 20 do 21 eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} 22 if [ -n "${ifconfig_args}" ]; then 23 ifconfig ${ifn} ${ifconfig_args} alias |
24 alias=`expr ${alias} + 1` | 24 alias=$((${alias} + 1)) |
25 else 26 break; 27 fi 28 done 29 ifconfig ${ifn} 30 done 31 # Load the filters if required 32 if [ -f /etc/rc.firewall -a "${firewall_enable}" = "YES" ] ; then --- 51 unchanged lines hidden --- | 25 else 26 break; 27 fi 28 done 29 ifconfig ${ifn} 30 done 31 # Load the filters if required 32 if [ -f /etc/rc.firewall -a "${firewall_enable}" = "YES" ] ; then --- 51 unchanged lines hidden --- |