Deleted Added
full compact
rc.network (91871) rc.network (96398)
1#!/bin/sh -
1#!/bin/sh -
2# $FreeBSD: head/release/picobsd/mfs_tree/etc/rc.network 91871 2002-03-08 12:33:48Z luigi $
2# $FreeBSD: head/release/picobsd/mfs_tree/etc/rc.network 96398 2002-05-11 06:06:11Z dd $
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

--- 43 unchanged lines hidden (view full) ---

54 for i in ${static_routes}; do
55 eval route_args=\$route_${i}
56 route add ${route_args}
57 done
58 fi
59 echo -n 'Additional routing options:'
60 if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
61 echo -n ' tcp_extensions=NO'
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

--- 43 unchanged lines hidden (view full) ---

54 for i in ${static_routes}; do
55 eval route_args=\$route_${i}
56 route add ${route_args}
57 done
58 fi
59 echo -n 'Additional routing options:'
60 if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
61 echo -n ' tcp_extensions=NO'
62 sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
63 sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
62 sysctl net.inet.tcp.rfc1323=0 >/dev/null 2>&1
63 sysctl net.inet.tcp.rfc1644=0 >/dev/null 2>&1
64 fi
65 if [ "X$gateway_enable" = X"YES" ]; then
66 echo -n ' IP_gateway=YES'
64 fi
65 if [ "X$gateway_enable" = X"YES" ]; then
66 echo -n ' IP_gateway=YES'
67 sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
67 sysctl net.inet.ip.forwarding=1 >/dev/null 2>&1
68 fi
69 if [ "X$arpproxy_all" = X"YES" ]; then
70 echo -n ' turning on ARP_PROXY_ALL: '
68 fi
69 if [ "X$arpproxy_all" = X"YES" ]; then
70 echo -n ' turning on ARP_PROXY_ALL: '
71 sysctl -w net.link.ether.inet.proxyall=1 2>&1
71 sysctl net.link.ether.inet.proxyall=1 2>&1
72 fi
73 echo '.'
74 network_pass1_done=YES # Let future generations know we made it.
75}
76
77network_pass2() {
78 network_pass2_done=YES
79}
80
81network_pass3() {
82 network_pass3_done=YES
83}
72 fi
73 echo '.'
74 network_pass1_done=YES # Let future generations know we made it.
75}
76
77network_pass2() {
78 network_pass2_done=YES
79}
80
81network_pass3() {
82 network_pass3_done=YES
83}