Deleted Added
full compact
routing (57012) routing (57459)
1#!/bin/sh -
2#
1#!/bin/sh -
2#
3# $FreeBSD: head/etc/rc.d/routing 57012 2000-02-06 16:33:54Z hm $
3# $FreeBSD: head/etc/rc.d/routing 57459 2000-02-24 23:12:04Z markm $
4# From: @(#)netstart 5.9 (Berkeley) 3/30/91
5
6# Note that almost all of the user-configurable behavior is no longer in
7# this file, but rather in /etc/defaults/rc.conf. Please check that file
8# first before contemplating any changes here. If you do need to change
9# this file for some reason, we would like to know about it.
10
11# First pass startup stuff.

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

598 if [ -n "${pppoed_provider}" ]; then
599 pppoed_flags="${pppoed_flags} -p ${pppoed_provider}"
600 fi
601 echo -n ' pppoed';
602 /usr/libexec/pppoed ${pppoed_flags} ${pppoed_interface}
603 ;;
604 esac
605
4# From: @(#)netstart 5.9 (Berkeley) 3/30/91
5
6# Note that almost all of the user-configurable behavior is no longer in
7# this file, but rather in /etc/defaults/rc.conf. Please check that file
8# first before contemplating any changes here. If you do need to change
9# this file for some reason, we would like to know about it.
10
11# First pass startup stuff.

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

598 if [ -n "${pppoed_provider}" ]; then
599 pppoed_flags="${pppoed_flags} -p ${pppoed_provider}"
600 fi
601 echo -n ' pppoed';
602 /usr/libexec/pppoed ${pppoed_flags} ${pppoed_interface}
603 ;;
604 esac
605
606 case ${sshd_enable} in
607 [Yy][Ee][Ss])
608 echo -n ' sshd';
609 ${sshd_program:-/usr/sbin/sshd} ${sshd_flags}
610 ;;
611 esac
612
606 echo '.'
607 network_pass3_done=YES
608}
609
610network_pass4() {
611 echo -n 'Additional TCP options:'
612 case ${log_in_vain} in
613 [Nn][Oo] | '')
614 ;;
615 *)
616 echo -n ' log_in_vain=YES'
617 sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null
618 sysctl -w net.inet.udp.log_in_vain=1 >/dev/null
619 ;;
620 esac
621
622 echo '.'
623 network_pass4_done=YES
624}
613 echo '.'
614 network_pass3_done=YES
615}
616
617network_pass4() {
618 echo -n 'Additional TCP options:'
619 case ${log_in_vain} in
620 [Nn][Oo] | '')
621 ;;
622 *)
623 echo -n ' log_in_vain=YES'
624 sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null
625 sysctl -w net.inet.udp.log_in_vain=1 >/dev/null
626 ;;
627 esac
628
629 echo '.'
630 network_pass4_done=YES
631}