head	1.74;
access;
symbols
	RELENG_8_4:1.74.0.2
	RELENG_9_1_0_RELEASE:1.72.2.2.2.2
	RELENG_9_1:1.72.2.2.0.2
	RELENG_9_1_BP:1.72.2.2
	RELENG_8_3_0_RELEASE:1.70.2.2.4.1
	RELENG_8_3:1.70.2.2.0.4
	RELENG_8_3_BP:1.70.2.2
	RELENG_9_0_0_RELEASE:1.72.2.1.2.1
	RELENG_9_0:1.72.2.1.0.2
	RELENG_9_0_BP:1.72.2.1
	RELENG_9:1.72.0.2
	RELENG_9_BP:1.72
	RELENG_7_4_0_RELEASE:1.67.2.2.2.1
	RELENG_8_2_0_RELEASE:1.70.2.2.2.1
	RELENG_7_4:1.67.2.2.0.2
	RELENG_7_4_BP:1.67.2.2
	RELENG_8_2:1.70.2.2.0.2
	RELENG_8_2_BP:1.70.2.2
	RELENG_8_1_0_RELEASE:1.70.2.1.4.1
	RELENG_8_1:1.70.2.1.0.4
	RELENG_8_1_BP:1.70.2.1
	RELENG_7_3_0_RELEASE:1.67.2.1.2.1
	RELENG_7_3:1.67.2.1.0.2
	RELENG_7_3_BP:1.67.2.1
	RELENG_8_0_0_RELEASE:1.70.2.1.2.1
	RELENG_8_0:1.70.2.1.0.2
	RELENG_8_0_BP:1.70.2.1
	RELENG_8:1.70.0.2
	RELENG_8_BP:1.70
	RELENG_7_2_0_RELEASE:1.67.8.1
	RELENG_7_2:1.67.0.8
	RELENG_7_2_BP:1.67
	RELENG_7_1_0_RELEASE:1.67.6.1
	RELENG_6_4_0_RELEASE:1.65.2.1.8.1
	RELENG_7_1:1.67.0.6
	RELENG_7_1_BP:1.67
	RELENG_6_4:1.65.2.1.0.8
	RELENG_6_4_BP:1.65.2.1
	RELENG_7_0_0_RELEASE:1.67
	RELENG_6_3_0_RELEASE:1.65.2.1
	RELENG_7_0:1.67.0.4
	RELENG_7_0_BP:1.67
	RELENG_6_3:1.65.2.1.0.6
	RELENG_6_3_BP:1.65.2.1
	RELENG_7:1.67.0.2
	RELENG_7_BP:1.67
	RELENG_6_2_0_RELEASE:1.65.2.1
	RELENG_6_2:1.65.2.1.0.4
	RELENG_6_2_BP:1.65.2.1
	RELENG_5_5_0_RELEASE:1.64.2.1
	RELENG_5_5:1.64.2.1.0.2
	RELENG_5_5_BP:1.64.2.1
	RELENG_6_1_0_RELEASE:1.65.2.1
	RELENG_6_1:1.65.2.1.0.2
	RELENG_6_1_BP:1.65.2.1
	RELENG_6_0_0_RELEASE:1.65
	RELENG_6_0:1.65.0.4
	RELENG_6_0_BP:1.65
	RELENG_6:1.65.0.2
	RELENG_6_BP:1.65
	RELENG_5_4_0_RELEASE:1.64
	RELENG_5_4:1.64.0.6
	RELENG_5_4_BP:1.64
	RELENG_4_11_0_RELEASE:1.54.2.5
	RELENG_4_11:1.54.2.5.0.16
	RELENG_4_11_BP:1.54.2.5
	RELENG_5_3_0_RELEASE:1.64
	RELENG_5_3:1.64.0.4
	RELENG_5_3_BP:1.64
	RELENG_5:1.64.0.2
	RELENG_5_BP:1.64
	RELENG_4_10_0_RELEASE:1.54.2.5
	RELENG_4_10:1.54.2.5.0.14
	RELENG_4_10_BP:1.54.2.5
	RELENG_5_2_1_RELEASE:1.63
	RELENG_5_2_0_RELEASE:1.63
	RELENG_5_2:1.63.0.2
	RELENG_5_2_BP:1.63
	RELENG_4_9_0_RELEASE:1.54.2.5
	RELENG_4_9:1.54.2.5.0.12
	RELENG_4_9_BP:1.54.2.5
	RELENG_5_1_0_RELEASE:1.62
	RELENG_5_1:1.62.0.2
	RELENG_5_1_BP:1.62
	RELENG_4_8_0_RELEASE:1.54.2.5
	RELENG_4_8:1.54.2.5.0.10
	RELENG_4_8_BP:1.54.2.5
	RELENG_5_0_0_RELEASE:1.60
	RELENG_5_0:1.60.0.2
	RELENG_5_0_BP:1.60
	RELENG_4_7_0_RELEASE:1.54.2.5
	RELENG_4_7:1.54.2.5.0.8
	RELENG_4_7_BP:1.54.2.5
	RELENG_4_6_2_RELEASE:1.54.2.5
	RELENG_4_6_1_RELEASE:1.54.2.5
	RELENG_4_6_0_RELEASE:1.54.2.5
	RELENG_4_6:1.54.2.5.0.6
	RELENG_4_6_BP:1.54.2.5
	RELENG_4_5_0_RELEASE:1.54.2.5
	RELENG_4_5:1.54.2.5.0.4
	RELENG_4_5_BP:1.54.2.5
	RELENG_4_4_0_RELEASE:1.54.2.5
	RELENG_4_4:1.54.2.5.0.2
	RELENG_4_4_BP:1.54.2.5
	RELENG_4_3_0_RELEASE:1.54.2.4
	RELENG_4_3:1.54.2.4.0.2
	RELENG_4_3_BP:1.54.2.4
	RELENG_4_2_0_RELEASE:1.54.2.1
	RELENG_4_1_1_RELEASE:1.54.2.1
	PRE_SMPNG:1.55
	RELENG_4_1_0_RELEASE:1.54.2.1
	RELENG_3_5_0_RELEASE:1.52.2.2
	RELENG_4_0_0_RELEASE:1.54
	RELENG_4:1.54.0.2
	RELENG_4_BP:1.54
	RELENG_3_4_0_RELEASE:1.52.2.2
	RELENG_3_3_0_RELEASE:1.52.2.2
	RELENG_3_2_PAO:1.52.2.1.0.2
	RELENG_3_2_PAO_BP:1.52.2.1
	RELENG_3_2_0_RELEASE:1.52.2.1
	RELENG_3_1_0_RELEASE:1.52.2.1
	RELENG_3:1.52.0.2
	RELENG_3_BP:1.52
	RELENG_2_2_8_RELEASE:1.51.2.1
	RELENG_3_0_0_RELEASE:1.52
	RELENG_2_2_7_RELEASE:1.51.2.1
	RELENG_2_2_6_RELEASE:1.51.2.1
	RELENG_2_2_5_RELEASE:1.51.2.1
	RELENG_2_2:1.51.0.2
	RELENG_2_2_2_RELEASE:1.45.2.2
	RELENG_2_2_1_RELEASE:1.45.2.1
	RELENG_2_2_0_RELEASE:1.45.2.1
	RELENG_2_1_7_RELEASE:1.32.4.6
	RELENG_2_1_6_1_RELEASE:1.32.4.6
	RELENG_2_1_6_RELEASE:1.32.4.6
	RELENG_2_2_BP:1.45
	RELENG_2_1_5_RELEASE:1.32.4.6
	RELENG_2_1_0_RELEASE:1.32.4.3
	RELENG_2_1_0:1.32.0.4
	RELENG_2_1_0_BP:1.32
	RELENG_2_0_5_RELEASE:1.32
	RELENG_2_0_5:1.32.0.2
	RELENG_2_0_5_BP:1.32
	RELENG_2_0_5_ALPHA:1.32
	RELEASE_2_0:1.17
	BETA_2_0:1.17
	ALPHA_2_0:1.17.0.2
	MOVED_NEWCVS:1.12
	FINAL_1_1_5:1.12
	ALPHA_1_1_5:1.12
	FINAL_1_1:1.8.2.3
	GAMMA_1_1:1.8.2.2
	BETA_1_1:1.8.0.2
	BP_BETA_1_1:1.8
	FINAL_1_0:1.5
	EPSILON_1_0:1.5
	GAMMA_1_0:1.5
	BETA_1_0:1.5
	ALPHA_1_0:1.4
	V_0_0_1_0:1.1.1.1;
locks; strict;
comment	@# @;


1.74
date	2012.11.17.01.49.02;	author svnexp;	state Exp;
branches
	1.74.2.1;
next	1.73;

1.73
date	2012.01.20.17.25.15;	author rea;	state Exp;
branches;
next	1.72;

1.72
date	2010.08.05.15.11.03;	author ume;	state Exp;
branches
	1.72.2.1;
next	1.71;

1.71
date	2010.08.05.15.07.28;	author ume;	state Exp;
branches;
next	1.70;

1.70
date	2009.03.19.12.52.19;	author des;	state Exp;
branches
	1.70.2.1;
next	1.69;

1.69
date	2008.05.26.10.39.45;	author bz;	state Exp;
branches;
next	1.68;

1.68
date	2008.01.26.13.37.48;	author mtm;	state Exp;
branches;
next	1.67;

1.67
date	2006.05.30.02.10.01;	author brooks;	state Exp;
branches
	1.67.2.1
	1.67.6.1
	1.67.8.1;
next	1.66;

1.66
date	2005.10.29.05.08.00;	author yar;	state Exp;
branches;
next	1.65;

1.65
date	2005.03.26.20.10.24;	author cperciva;	state Exp;
branches
	1.65.2.1;
next	1.64;

1.64
date	2004.02.10.19.10.34;	author des;	state Exp;
branches
	1.64.2.1;
next	1.63;

1.63
date	2003.10.13.10.36.26;	author des;	state Exp;
branches;
next	1.62;

1.62
date	2003.04.29.15.32.02;	author imp;	state Exp;
branches;
next	1.61;

1.61
date	2003.04.29.12.26.37;	author jwd;	state Exp;
branches;
next	1.60;

1.60
date	2001.05.18.09.14.39;	author brian;	state Exp;
branches;
next	1.59;

1.59
date	2000.12.26.20.55.18;	author dougb;	state Exp;
branches;
next	1.58;

1.58
date	2000.12.17.08.15.57;	author dougb;	state Exp;
branches;
next	1.57;

1.57
date	2000.12.16.02.48.14;	author des;	state Exp;
branches;
next	1.56;

1.56
date	2000.10.08.19.18.24;	author obrien;	state Exp;
branches;
next	1.55;

1.55
date	2000.04.27.08.43.47;	author sheldonh;	state Exp;
branches;
next	1.54;

1.54
date	99.08.27.23.23.42;	author peter;	state Exp;
branches
	1.54.2.1;
next	1.53;

1.53
date	99.02.10.18.08.16;	author jkh;	state Exp;
branches;
next	1.52;

1.52
date	97.07.05.19.35.45;	author pst;	state Exp;
branches
	1.52.2.1;
next	1.51;

1.51
date	97.05.18.20.11.44;	author jkh;	state Exp;
branches
	1.51.2.1;
next	1.50;

1.50
date	97.05.18.14.10.06;	author jkh;	state Exp;
branches;
next	1.49;

1.49
date	97.04.27.03.59.13;	author jkh;	state dead;
branches;
next	1.48;

1.48
date	97.02.23.09.20.42;	author peter;	state Exp;
branches;
next	1.47;

1.47
date	97.01.14.05.44.21;	author jkh;	state Exp;
branches;
next	1.46;

1.46
date	96.11.05.20.10.36;	author jhay;	state Exp;
branches;
next	1.45;

1.45
date	96.10.27.06.30.43;	author peter;	state Exp;
branches
	1.45.2.1;
next	1.44;

1.44
date	96.04.06.09.24.48;	author mpp;	state Exp;
branches;
next	1.43;

1.43
date	96.04.03.17.13.58;	author phk;	state Exp;
branches;
next	1.42;

1.42
date	96.02.11.04.07.25;	author jkh;	state Exp;
branches;
next	1.41;

1.41
date	96.02.09.12.45.37;	author jkh;	state Exp;
branches;
next	1.40;

1.40
date	96.01.31.15.02.24;	author mpp;	state Exp;
branches;
next	1.39;

1.39
date	96.01.08.04.50.18;	author jkh;	state Exp;
branches;
next	1.38;

1.38
date	96.01.06.20.49.17;	author jkh;	state Exp;
branches;
next	1.37;

1.37
date	96.01.02.19.47.05;	author pst;	state Exp;
branches;
next	1.36;

1.36
date	95.12.28.01.24.03;	author jkh;	state Exp;
branches;
next	1.35;

1.35
date	95.08.25.07.18.04;	author davidg;	state Exp;
branches;
next	1.34;

1.34
date	95.08.23.07.12.15;	author jkh;	state Exp;
branches;
next	1.33;

1.33
date	95.06.25.09.35.56;	author asami;	state Exp;
branches;
next	1.32;

1.32
date	95.05.17.04.46.56;	author rgrimes;	state Exp;
branches
	1.32.4.1;
next	1.31;

1.31
date	95.05.11.21.11.14;	author jkh;	state Exp;
branches;
next	1.30;

1.30
date	95.05.11.19.08.36;	author rgrimes;	state Exp;
branches;
next	1.29;

1.29
date	95.04.24.23.52.15;	author rgrimes;	state Exp;
branches;
next	1.28;

1.28
date	95.04.12.16.58.06;	author ache;	state Exp;
branches;
next	1.27;

1.27
date	95.04.11.01.22.15;	author rgrimes;	state Exp;
branches;
next	1.26;

1.26
date	95.04.09.09.54.41;	author rgrimes;	state Exp;
branches;
next	1.25;

1.25
date	95.03.30.06.26.08;	author rgrimes;	state Exp;
branches;
next	1.24;

1.24
date	95.03.29.03.33.55;	author rgrimes;	state Exp;
branches;
next	1.23;

1.23
date	95.03.29.03.28.08;	author rgrimes;	state Exp;
branches;
next	1.22;

1.22
date	95.03.21.15.20.45;	author jkh;	state Exp;
branches;
next	1.21;

1.21
date	95.03.16.16.57.59;	author wollman;	state Exp;
branches;
next	1.20;

1.20
date	95.02.08.16.42.12;	author wpaul;	state Exp;
branches;
next	1.19;

1.19
date	95.02.07.20.52.35;	author ats;	state Exp;
branches;
next	1.18;

1.18
date	95.02.03.23.54.07;	author wpaul;	state Exp;
branches;
next	1.17;

1.17
date	94.11.07.04.02.25;	author phk;	state Exp;
branches;
next	1.16;

1.16
date	94.11.02.23.50.54;	author phk;	state Exp;
branches;
next	1.15;

1.15
date	94.10.06.20.52.00;	author pst;	state Exp;
branches;
next	1.14;

1.14
date	94.09.29.17.27.45;	author pst;	state Exp;
branches;
next	1.13;

1.13
date	94.09.15.01.19.43;	author phk;	state Exp;
branches;
next	1.12;

1.12
date	94.06.17.19.29.05;	author jkh;	state Exp;
branches;
next	1.11;

1.11
date	94.05.04.08.59.52;	author rgrimes;	state Exp;
branches;
next	1.10;

1.10
date	94.04.18.11.00.44;	author rgrimes;	state Exp;
branches;
next	1.9;

1.9
date	94.04.18.06.44.43;	author rgrimes;	state Exp;
branches;
next	1.8;

1.8
date	93.12.21.21.28.11;	author wollman;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	93.11.07.01.19.02;	author wollman;	state Exp;
branches;
next	1.6;

1.6
date	93.10.29.19.06.20;	author ats;	state Exp;
branches;
next	1.5;

1.5
date	93.08.09.09.14.47;	author rgrimes;	state Exp;
branches;
next	1.4;

1.4
date	93.07.19.21.08.53;	author rgrimes;	state Exp;
branches;
next	1.3;

1.3
date	93.07.19.19.14.45;	author rgrimes;	state Exp;
branches;
next	1.2;

1.2
date	93.07.05.21.43.35;	author nate;	state Exp;
branches;
next	1.1;

1.1
date	93.06.20.13.41.38;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.74.2.1
date	2012.11.17.01.49.02;	author svnexp;	state dead;
branches;
next	1.74.2.2;

1.74.2.2
date	2013.03.28.13.02.41;	author svnexp;	state Exp;
branches;
next	;

1.72.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.72.2.1.2.1;
next	1.72.2.2;

1.72.2.2
date	2012.05.18.18.26.03;	author rea;	state Exp;
branches
	1.72.2.2.2.1;
next	1.72.2.3;

1.72.2.3
date	2012.11.17.11.36.10;	author svnexp;	state Exp;
branches;
next	;

1.72.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.72.2.1.2.2;

1.72.2.1.2.2
date	2012.11.17.08.36.10;	author svnexp;	state Exp;
branches;
next	;

1.72.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.72.2.2.2.2;

1.72.2.2.2.2
date	2012.11.17.08.47.00;	author svnexp;	state Exp;
branches;
next	;

1.70.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.70.2.1.2.1
	1.70.2.1.4.1;
next	1.70.2.2;

1.70.2.2
date	2010.08.08.15.29.27;	author ume;	state Exp;
branches
	1.70.2.2.2.1
	1.70.2.2.4.1;
next	1.70.2.3;

1.70.2.3
date	2012.05.18.18.32.44;	author rea;	state Exp;
branches;
next	1.70.2.4;

1.70.2.4
date	2012.11.17.10.35.56;	author svnexp;	state Exp;
branches;
next	;

1.70.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.70.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.70.2.2.2.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.70.2.2.4.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.70.2.2.4.2;

1.70.2.2.4.2
date	2012.11.17.08.24.37;	author svnexp;	state Exp;
branches;
next	;

1.67.2.1
date	2009.05.14.02.14.46;	author des;	state Exp;
branches
	1.67.2.1.2.1;
next	1.67.2.2;

1.67.2.2
date	2010.08.17.21.28.40;	author jhb;	state Exp;
branches
	1.67.2.2.2.1;
next	1.67.2.3;

1.67.2.3
date	2012.11.17.08.01.15;	author svnexp;	state Exp;
branches;
next	;

1.67.2.1.2.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.67.2.2.2.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.67.2.2.2.2;

1.67.2.2.2.2
date	2012.11.17.08.16.36;	author svnexp;	state Exp;
branches;
next	;

1.67.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.67.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.65.2.1
date	2006.01.21.22.42.43;	author yar;	state Exp;
branches
	1.65.2.1.8.1;
next	1.65.2.2;

1.65.2.2
date	2012.11.17.07.39.01;	author svnexp;	state Exp;
branches;
next	;

1.65.2.1.8.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.64.2.1
date	2005.04.29.22.40.47;	author cperciva;	state Exp;
branches;
next	;

1.54.2.1
date	2000.05.28.19.17.15;	author asmodai;	state Exp;
branches;
next	1.54.2.2;

1.54.2.2
date	2001.01.14.09.47.47;	author dougb;	state Exp;
branches;
next	1.54.2.3;

1.54.2.3
date	2001.03.06.01.58.44;	author obrien;	state Exp;
branches;
next	1.54.2.4;

1.54.2.4
date	2001.03.06.02.02.08;	author obrien;	state Exp;
branches;
next	1.54.2.5;

1.54.2.5
date	2001.08.01.19.45.36;	author obrien;	state Exp;
branches;
next	1.54.2.6;

1.54.2.6
date	2012.11.17.07.22.36;	author svnexp;	state Exp;
branches;
next	;

1.52.2.1
date	99.02.10.18.08.38;	author jkh;	state Exp;
branches;
next	1.52.2.2;

1.52.2.2
date	99.08.29.14.18.49;	author peter;	state Exp;
branches;
next	;

1.51.2.1
date	97.07.05.19.36.53;	author pst;	state Exp;
branches;
next	1.51.2.2;

1.51.2.2
date	99.09.05.11.01.57;	author peter;	state Exp;
branches;
next	;

1.45.2.1
date	96.11.06.09.22.16;	author phk;	state Exp;
branches;
next	1.45.2.2;

1.45.2.2
date	97.04.26.22.39.33;	author jkh;	state dead;
branches;
next	;

1.32.4.1
date	95.08.09.01.45.51;	author davidg;	state Exp;
branches;
next	1.32.4.2;

1.32.4.2
date	95.08.23.07.18.05;	author jkh;	state Exp;
branches;
next	1.32.4.3;

1.32.4.3
date	95.08.25.07.21.46;	author davidg;	state Exp;
branches;
next	1.32.4.4;

1.32.4.4
date	96.05.29.22.23.34;	author jkh;	state Exp;
branches;
next	1.32.4.5;

1.32.4.5
date	96.06.05.02.36.32;	author jkh;	state Exp;
branches;
next	1.32.4.6;

1.32.4.6
date	96.06.17.09.17.06;	author jkh;	state Exp;
branches;
next	1.32.4.7;

1.32.4.7
date	99.09.05.11.02.52;	author peter;	state Exp;
branches;
next	;

1.8.2.1
date	94.04.18.06.37.29;	author rgrimes;	state Exp;
branches;
next	1.8.2.2;

1.8.2.2
date	94.04.18.10.49.46;	author rgrimes;	state Exp;
branches;
next	1.8.2.3;

1.8.2.3
date	94.05.04.08.57.11;	author rgrimes;	state Exp;
branches;
next	;

1.1.1.1
date	93.06.20.13.41.39;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.74
log
@Switching exporter and resync
@
text
@#!/bin/sh -
#
# Copyright (c) 1993  The FreeBSD Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: head/etc/netstart 230389 2012-01-20 17:25:15Z rea $
#	From: @@(#)netstart	5.9 (Berkeley) 3/30/91
#

# This file is NOT called by any of the other scripts - it has been
# obsoleted by /etc/rc.d/* and is provided here only for user
# convenience (if you're sitting in single user mode and wish to start
# the network by hand, this script will do it for you).
#

. /etc/rc.subr

load_rc_config 'XXX'
_start=quietstart

/etc/rc.d/devd ${_start}
/etc/rc.d/hostid ${_start}
/etc/rc.d/hostname ${_start}
/etc/rc.d/ipmon ${_start}
/etc/rc.d/ipfilter ${_start}
/etc/rc.d/ipnat ${_start}
/etc/rc.d/ipfs ${_start}
/etc/rc.d/sppp ${_start}
# /etc/rc.d/atm1 ${_start}
# . /etc/rc.d/atm2.sh ${_start}
# . /etc/rc.d/atm3.sh ${_start}
/etc/rc.d/netif ${_start}
/etc/rc.d/ipsec ${_start}
/etc/rc.d/ppp ${_start}
/etc/rc.d/ipfw ${_start}
/etc/rc.d/routing ${_start}
/etc/rc.d/mroute6d ${_start}
/etc/rc.d/route6d ${_start}
/etc/rc.d/mrouted ${_start}
/etc/rc.d/routed ${_start}
/etc/rc.d/nisdomain ${_start}

exit 0
@


1.74.2.1
log
@file netstart was added on branch RELENG_8_4 on 2013-03-28 13:02:41 +0000
@
text
@d1 64
@


1.74.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 65
#!/bin/sh -
#
# Copyright (c) 1993  The FreeBSD Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: releng/8.4/etc/netstart 235617 2012-05-18 18:32:44Z rea $
#	From: @@(#)netstart	5.9 (Berkeley) 3/30/91
#

# This file is NOT called by any of the other scripts - it has been
# obsoleted by /etc/rc.d/* and is provided here only for user
# convenience (if you're sitting in single user mode and wish to start
# the network by hand, this script will do it for you).
#

. /etc/rc.subr

load_rc_config 'XXX'
_start=quietstart

/etc/rc.d/devd ${_start}
/etc/rc.d/hostid ${_start}
/etc/rc.d/hostname ${_start}
/etc/rc.d/ipmon ${_start}
/etc/rc.d/ipfilter ${_start}
/etc/rc.d/ipnat ${_start}
/etc/rc.d/ipfs ${_start}
/etc/rc.d/sppp ${_start}
# /etc/rc.d/atm1 ${_start}
# . /etc/rc.d/atm2.sh ${_start}
# . /etc/rc.d/atm3.sh ${_start}
/etc/rc.d/netif ${_start}
/etc/rc.d/ipsec ${_start}
/etc/rc.d/ppp ${_start}
/etc/rc.d/ipfw ${_start}
/etc/rc.d/network_ipv6 ${_start}
/etc/rc.d/routing ${_start}
/etc/rc.d/mroute6d ${_start}
/etc/rc.d/route6d ${_start}
/etc/rc.d/mrouted ${_start}
/etc/rc.d/routed ${_start}
/etc/rc.d/nisdomain ${_start}

exit 0
@


1.73
log
@SVN rev 230389 on 2012-01-20 17:25:15Z by rea

/etc/netstart: remove invocation of dhclient

dhclient is no longer a real service, it is a helper script
for /etc/rc.d/netif and devd.  Its direct invocation isn't
needed to bring the network up.

Approved by: jhb
@
text
@d27 1
a27 1
# $FreeBSD$
@


1.72
log
@SVN rev 210862 on 2010-08-05 15:11:03Z by ume

/etc/rc.d/network_ipv6 was deprecated.

Reported by:	Alex Kozlov <spam__at__rm-rf.kiev.ua>
@
text
@a54 1
/etc/rc.d/dhclient ${_start}
@


1.72.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.72.2.2
log
@SVN rev 235615 on 2012-05-18 18:26:03Z by rea

/etc/netstart: remove invocation of dhclient

dhclient is no longer a real service, it is a helper script
for /etc/rc.d/netif and devd.  Its direct invocation isn't
needed to bring the network up.

Approved by: jhb, delphij
@
text
@d55 1
@


1.72.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d27 1
a27 1
# $FreeBSD: stable/9/etc/netstart 235615 2012-05-18 18:26:03Z rea $
@


1.72.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.72.2.2.2.2
log
@Switch importer
@
text
@d27 1
a27 1
# $FreeBSD: releng/9.1/etc/netstart 235615 2012-05-18 18:26:03Z rea $
@


1.72.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.72.2.1.2.2
log
@Switch importer
@
text
@d27 1
a27 1
# $FreeBSD: releng/9.0/etc/netstart 210862 2010-08-05 15:11:03Z ume $
@


1.71
log
@SVN rev 210861 on 2010-08-05 15:07:28Z by ume

/etc/rc.d/ip6fw was deprecated.

Reported by:	Alex Kozlov <spam__at__rm-rf.kiev.ua>
MFC after:	3 days
@
text
@a57 1
/etc/rc.d/network_ipv6 ${_start}
@


1.70
log
@SVN rev 190032 on 2009-03-19 12:52:19Z by des

Add hostid to the ranks.

MFC after:	2 weeks
@
text
@a57 1
/etc/rc.d/ip6fw ${_start}
@


1.70.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.70.2.2
log
@SVN rev 211074 on 2010-08-08 15:29:27Z by ume

MFC r210861: /etc/rc.d/ip6fw was deprecated.
@
text
@d58 1
@


1.70.2.3
log
@SVN rev 235617 on 2012-05-18 18:32:44Z by rea

/etc/netstart: remove invocation of dhclient

dhclient is no longer a real service, it is a helper script
for /etc/rc.d/netif and devd.  Its direct invocation isn't
needed to bring the network up.

Approved by: jhb, delphij
@
text
@d55 1
@


1.70.2.4
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d27 1
a27 1
# $FreeBSD: stable/8/etc/netstart 235617 2012-05-18 18:32:44Z rea $
@


1.70.2.2.4.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.70.2.2.4.2
log
@Switch importer
@
text
@d27 1
a27 1
# $FreeBSD: releng/8.3/etc/netstart 211074 2010-08-08 15:29:27Z ume $
@


1.70.2.2.2.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.70.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.70.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.69
log
@Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and
parts relied on the now removed NET_NEEDS_GIANT.
Most of I4B has been disconnected from the build
since July 2007 in HEAD/RELENG_7.

This is what was removed:
- configuration in /etc/isdn
- examples
- man pages
- kernel configuration
- sys/i4b (drivers, layers, include files)
- user space tools
- i4b support from ppp
- further documentation

Discussed with: rwatson, re
@
text
@d43 1
@


1.68
log
@Use 'quietstart' so as not to get spammed with informational diagnostics.
@
text
@a54 1
/etc/rc.d/isdnd ${_start}
@


1.67
log
@Remove reference to no longer existant /etc/rc.d/pccard.

PR:		conf/98055
Submitted by:	thierry herbelot <thierry at herbelot dot com>
@
text
@d40 26
a65 24
/etc/rc.d/devd start
/etc/rc.d/hostname start
/etc/rc.d/ipmon start
/etc/rc.d/ipfilter start
/etc/rc.d/ipnat start
/etc/rc.d/ipfs start
/etc/rc.d/sppp start
# /etc/rc.d/atm1 start
# . /etc/rc.d/atm2.sh start
# . /etc/rc.d/atm3.sh start
/etc/rc.d/netif start
/etc/rc.d/ipsec start
/etc/rc.d/dhclient start
/etc/rc.d/isdnd start
/etc/rc.d/ppp start
/etc/rc.d/ipfw start
/etc/rc.d/ip6fw start
/etc/rc.d/network_ipv6 start
/etc/rc.d/routing start
/etc/rc.d/mroute6d start
/etc/rc.d/route6d start
/etc/rc.d/mrouted start
/etc/rc.d/routed start
/etc/rc.d/nisdomain start
@


1.67.2.1
log
@SVN rev 192076 on 2009-05-14 02:14:46Z by des

MFC r190032: add hostid
@
text
@a40 1
/etc/rc.d/hostid start
@


1.67.2.2
log
@SVN rev 211438 on 2010-08-17 21:28:40Z by jhb

MFC 175682,175683,175686:
Generally, anything that runs rc.d scripts internally should
start using the quiet prefix (i.e. quietstart, quietstop, etc...).
@
text
@d40 25
a64 27
_start=quietstart

/etc/rc.d/devd ${_start}
/etc/rc.d/hostid ${_start}
/etc/rc.d/hostname ${_start}
/etc/rc.d/ipmon ${_start}
/etc/rc.d/ipfilter ${_start}
/etc/rc.d/ipnat ${_start}
/etc/rc.d/ipfs ${_start}
/etc/rc.d/sppp ${_start}
# /etc/rc.d/atm1 ${_start}
# . /etc/rc.d/atm2.sh ${_start}
# . /etc/rc.d/atm3.sh ${_start}
/etc/rc.d/netif ${_start}
/etc/rc.d/ipsec ${_start}
/etc/rc.d/dhclient ${_start}
/etc/rc.d/isdnd ${_start}
/etc/rc.d/ppp ${_start}
/etc/rc.d/ipfw ${_start}
/etc/rc.d/ip6fw ${_start}
/etc/rc.d/network_ipv6 ${_start}
/etc/rc.d/routing ${_start}
/etc/rc.d/mroute6d ${_start}
/etc/rc.d/route6d ${_start}
/etc/rc.d/mrouted ${_start}
/etc/rc.d/routed ${_start}
/etc/rc.d/nisdomain ${_start}
@


1.67.2.3
log
@Switch importer
@
text
@d27 1
a27 1
# $FreeBSD: stable/7/etc/netstart 211438 2010-08-17 21:28:40Z jhb $
@


1.67.2.2.2.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.67.2.2.2.2
log
@Switch importer
@
text
@d27 1
a27 1
# $FreeBSD: releng/7.4/etc/netstart 211438 2010-08-17 21:28:40Z jhb $
@


1.67.2.1.2.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.67.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.67.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.66
log
@Transforming "ppp-user" into just "ppp", step 4:
The legacy script "/etc/netstart" will start "ppp", not "ppp-user".
@
text
@a39 1
/etc/rc.d/pccard start
@


1.65
log
@netstart is now obsoleted by /etc/rc.d/*, not by /etc/rc.network.

Reported by:	Martin Jakob, on freebsd-stable@@
MFC after:	1 month
@
text
@d55 1
a55 1
/etc/rc.d/ppp-user start
@


1.65.2.1
log
@MFC:
Rename the rc.d script "ppp-user" to just "ppp".
@
text
@d55 1
a55 1
/etc/rc.d/ppp start
@


1.65.2.2
log
@Switch importer
@
text
@d27 1
a27 1
# $FreeBSD: stable/6/etc/netstart 200489 2009-12-14 00:12:07Z dougb $
@


1.65.2.1.8.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.64
log
@Run /etc/rc.d/routing at the appropriate time.

Spotted by:	mat
@
text
@d32 1
a32 1
# obsoleted by /etc/rc.network and is provided here only for user
@


1.64.2.1
log
@MFC rev. 1.65: netstart is now obsoleted by /etc/rc.d/*, not by
/etc/rc.network.
@
text
@d32 1
a32 1
# obsoleted by /etc/rc.d/* and is provided here only for user
@


1.63
log
@There is no network2 any more.

Pointy hat to:	mtm
@
text
@d59 1
@


1.62
log
@We need pccard start too.
@
text
@a56 1
/etc/rc.d/network2 start
@


1.61
log
@new netstart
atm should be correct but is commented out pending appropriate testing.

Submitted by:	mtm
@
text
@d40 1
a40 1
# /etc/rc.d/pccard start
@


1.60
log
@Run network6_pass1 if ipv6_enable is YES
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/netstart,v 1.59 2000/12/26 20:55:18 dougb Exp $
d37 1
a37 7
# If there is a global system configuration file, suck it in.
if [ -f /etc/defaults/rc.conf ]; then
	. /etc/defaults/rc.conf
	source_rc_confs
elif [ -f /etc/rc.conf ]; then
	. /etc/rc.conf
fi
d39 26
a64 28
# Start pccard if necessary
if [ -r /etc/rc.pccard ]; then
	. /etc/rc.pccard
fi

if [ -r /etc/rc.network ]; then
	. /etc/rc.network
else
	echo 'Sorry, I cannot find /etc/rc.network - aborting'
	exit 1
fi

echo 'Doing stage one network startup:'
network_pass1

case ${ipv6_enable} in
[Yy][Ee][Ss])
	if [ -r /etc/rc.network6 ]; then
		. /etc/rc.network6
	else
		echo 'Sorry, I cannot find /etc/rc.network6 - aborting'
		exit 1
	fi

	echo 'Doing stage one network6 startup:'
	network6_pass1
	;;
esac
@


1.59
log
@Fix a quoting problem I introduced.
Fix a tiny style problem while I'm here.

Submitted by:	knu
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/netstart,v 1.58 2000/12/17 08:15:57 dougb Exp $
d59 15
@


1.58
log
@Apply a more consistent style to the echo statements in /etc/ scripts.
* Put quotes around each line
* Single quotes for lines with no variable interpolation
* Double quotes if there is
* Capitalize each word that begins a line
* Make echo -n 'Doing foo:' ... echo '.' more of a standard

No functionality changes
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/netstart,v 1.57 2000/12/16 02:48:14 des Exp $
d50 1
a50 1
if [ -f /etc/rc.network ]; then
d53 1
a53 1
	echo 'Sorry, I can't find /etc/rc.network - aborting'
@


1.57
log
@Run rc.pccard from netstart so it works for us laptop users as well.
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/netstart,v 1.56 2000/10/08 19:18:24 obrien Exp $
d53 1
a53 1
	echo "Sorry, I can't find /etc/rc.network - aborting."
@


1.56
log
@Add copyright notices.  Other systems have been barrowing our /etc files
w/o giving any credit.
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/netstart,v 1.55 2000/04/27 08:43:47 sheldonh Exp $
d43 5
@


1.55
log
@Add to defaults/rc.conf a new function source_rc_confs which rc
scripts may use to source safely overrides in ${rc_conf_files}
files.

This protects users who insist on the bad practice of copying
/etc/defaults/rc.conf to /etc/rc.conf from a recursive loop
that exhausts available file descriptors.

Several people have expressed interest in breaking this function
out into its own shell script.  Anyone who wants to embark on
such an undertaking would do well to study the attributed PR.

PR:		17595
Reported by:	adrian
Submitted by:	Doug Barton <Doug@@gorean.org>
@
text
@d3 25
a27 1
# $FreeBSD: src/etc/netstart,v 1.54 1999/08/27 23:23:42 peter Exp $
d29 1
@


1.54
log
@$Id$ -> $FreeBSD$
@
text
@d3 1
a3 1
# $FreeBSD$
d15 1
@


1.54.2.1
log
@MFC:	- add source_rc_confs

Reminded of, while working on the readline MFC, by:
	Mike Harding <mvh@@ix.netcom.com>
@
text
@d3 1
a3 1
# $FreeBSD: src/etc/netstart,v 1.54 1999/08/27 23:23:42 peter Exp $
a14 1
	source_rc_confs
@


1.54.2.2
log
@MFC, Apply a more consistent style to the echo statements in /etc/ scripts.
@
text
@d3 1
a3 1
# $FreeBSD: src/etc/netstart,v 1.54.2.1 2000/05/28 19:17:15 asmodai Exp $
d20 1
a20 1
if [ -r /etc/rc.network ]; then
d23 1
a23 1
	echo 'Sorry, I cannot find /etc/rc.network - aborting'
@


1.54.2.3
log
@MFC: add copyright notices
@
text
@d3 1
a3 25
# Copyright (c) 1993  The FreeBSD Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: src/etc/netstart,v 1.54.2.2 2001/01/14 09:47:47 dougb Exp $
a4 1
#
@


1.54.2.4
log
@MFC: 1.57: run pccard for laptop users
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/netstart,v 1.54.2.3 2001/03/06 01:58:44 obrien Exp $
a42 5
fi

# Start pccard if necessary
if [ -r /etc/rc.pccard ]; then
	. /etc/rc.pccard
@


1.54.2.5
log
@MFC: rev 1.60 (network6_pass1 if ipv6_enable is YES)
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/netstart,v 1.54.2.4 2001/03/06 02:02:08 obrien Exp $
a58 15

case ${ipv6_enable} in
[Yy][Ee][Ss])
	if [ -r /etc/rc.network6 ]; then
		. /etc/rc.network6
	else
		echo 'Sorry, I cannot find /etc/rc.network6 - aborting'
		exit 1
	fi

	echo 'Doing stage one network6 startup:'
	network6_pass1
	;;
esac

@


1.54.2.6
log
@Switch importer
@
text
@d27 1
a27 1
# $FreeBSD: stable/4/etc/netstart 80943 2001-08-01 19:45:36Z obrien $
@


1.53
log
@Use /etc/defaults/rc.conf everywhere, falling back to /etc/rc.conf
as necessary (for half-assed upgrades).
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.52 1997/07/05 19:35:45 pst Exp $
@


1.52
log
@netstart should really only do phase 1 bringup, not start all the daemons
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.51 1997/05/18 20:11:44 jkh Exp $
d13 3
a15 1
if [ -f /etc/rc.conf ]; then
@


1.52.2.1
log
@MFC: Use rc.conf from new location.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.52 1997/07/05 19:35:45 pst Exp $
d13 1
a13 3
if [ -f /etc/defaults/rc.conf ]; then
	. /etc/defaults/rc.conf
elif [ -f /etc/rc.conf ]; then
@


1.52.2.2
log
@$Id$ -> $FreeBSD$
@
text
@d3 1
a3 1
# $FreeBSD$
@


1.51
log
@Comment that this is no longer used and is only for convenience.
Requested by:	ache
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.50 1997/05/18 14:10:06 jkh Exp $
a25 2
echo 'Doing stage two network startup:'
network_pass2
@


1.51.2.1
log
@YAMFC
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.51 1997/05/18 20:11:44 jkh Exp $
d26 2
@


1.51.2.2
log
@$Id$ -> $FreeBSD$
@
text
@d3 1
a3 1
# $FreeBSD$
@


1.50
log
@Bring back /etc/netstart for those who are sitting in single user and
wish only to bring up their interfaces.  This script is not actually called
by any other script and exists purely for user convenience.
Requested by:	pst
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.45.2.1 1996/11/06 09:22:16 phk Exp $
d5 6
@


1.49
log
@Bring in rc file changes from -current.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.48 1997/02/23 09:20:42 peter Exp jkh $
a5 5
# Note that almost all the user-configurable behavior is no longer in
# this file, but rather in /etc/sysconfig.  Please check this file
# first before contemplating any changes here.  If you do need to change
# this file for some reason, we would like to know about it.

d7 2
a8 7
if [ -f /etc/sysconfig ]; then
	. /etc/sysconfig
fi

# Set the host name if it is not already set
if [ -z "`hostname -s`" ] ; then
	hostname $hostname
d11 12
a22 83
# Set the domainname if we're using NIS
if [ -n "$defaultdomainname" -a "x$defaultdomainname" != "xNO" ] ; then
	domainname $defaultdomainname
fi

# If IP filtering
if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then
	sh /etc/rc.firewall
fi

#
# XXX This is known to cause an error if /usr is nfs mounted since it
# will not be available until after the network is up :-(.  Once the
# relocation of sysctl to /sbin is done that problem will go away.
#
if [ -n "$tcp_extensions" -a "x$tcp_extensions" = "xNO" ] ; then
	sysctl -w net.inet.tcp.rfc1323=0
	sysctl -w net.inet.tcp.rfc1644=0
fi

# Set up all the network interfaces, calling startup scripts if needed
for ifn in ${network_interfaces}; do
	if [ -e /etc/start_if.${ifn} ]; then
		. /etc/start_if.${ifn} ${ifn}
	fi
	# Do the primary ifconfig if specified
	eval ifconfig_args=\$ifconfig_${ifn}
	if [ -n "${ifconfig_args}" ] ; then
		ifconfig ${ifn} ${ifconfig_args}
	fi
	# Check to see if aliases need to be added
	alias=0
	while :
	do
		eval ifconfig_args=\$ifconfig_${ifn}_alias${alias}
		if [ -n "${ifconfig_args}" ]; then
			ifconfig ${ifn} ${ifconfig_args} alias
			alias=`expr ${alias} + 1`
		else
			break;
		fi
	done
	# Do ipx address if specified
	eval ifconfig_args=\$ifconfig_${ifn}_ipx
	if [ -n "${ifconfig_args}" ]; then
		ifconfig ${ifn} ${ifconfig_args}
	fi
	ifconfig ${ifn}
done

if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then
	static_routes="default ${static_routes}"
	route_default="default ${defaultrouter}"
fi

# Set up any static routes.  This should be done before router discovery.
if [ "x${static_routes}" != "x" ]; then
	for i in ${static_routes}; do
		eval route_args=\$route_${i}
		route add ${route_args}
	done
fi

if [ "x$gateway" != "xNO" ]; then
	echo 'configuring host as a gateway.'
	sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
fi

if [ "x$router" != "xNO" ] ; then
	echo -n starting routing daemon:
	echo -n " ${router}";	${router} ${routerflags}
	echo '.'
fi

if [ "x$ipxgateway" != "xNO" ]; then
	echo 'configuring host as an ipx gateway.'
	sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1
fi

if [ "x$ipxrouted" != "xNO" ] ; then
	echo -n "starting IPXrouted";	IPXrouted ${ipxrouted}
	echo '.'
fi
@


1.48
log
@Revert $FreeBSD$ to $Id$
@
text
@d3 1
a3 1
#	$Id$
@


1.47
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d3 1
a3 1
#	$FreeBSD$
@


1.46
log
@Add knobs for IPX.
2.2 candidate?
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.45 1996/10/27 06:30:43 peter Exp $
@


1.45
log
@Add rudimentry support for ifconfig'ing aliases at boot.  Also allow
start_if.<if> to do all the work instead if so configured.  With examples.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.44 1996/04/06 09:24:48 mpp Exp $
d63 5
d92 10
@


1.45.2.1
log
@Merge from -current
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.45 1996/10/27 06:30:43 peter Exp $
a62 5
	# Do ipx address if specified
	eval ifconfig_args=\$ifconfig_${ifn}_ipx
	if [ -n "${ifconfig_args}" ]; then
		ifconfig ${ifn} ${ifconfig_args}
	fi
a86 10
	echo '.'
fi

if [ "x$ipxgateway" != "xNO" ]; then
	echo 'configuring host as an ipx gateway.'
	sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1
fi

if [ "x$ipxrouted" != "xNO" ] ; then
	echo -n "starting IPXrouted";	IPXrouted ${ipxrouted}
@


1.45.2.2
log
@Bring in rc reorganizational changes.  I'm bringing them into 2.2
first rather than 3.0 because, ironically, I have every confidence that
they run in 2.2 but not in 3.0 yet.  3.0 commits will follow just as I've
finished an inventory for any new knobs in -current which need accomodation.
In any case, it's good to get them into 2.2 early because there is going
to be a doc hit for this (all the references to sysconfig) and I'd just
as soon start getting people used to the new files ASAP rather than
prolonging the pain any more than necessary.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.45.2.1 1996/11/06 09:22:16 phk Exp jkh $
@


1.44
log
@Use the correct syntax for checking if /etc/rc.firewall exists.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.43 1996/04/03 17:13:58 phk Exp $
d46 1
d48 15
a62 1
	ifconfig ${ifn} ${ifconfig_args}
@


1.43
log
@Add skeleton firewall setup(s).  Comments very welcome.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.42 1996/02/11 04:07:25 jkh Exp $
d27 1
a27 1
if [ -n "$firewall" -a "x$firewall" != "xNO" -f /etc/rc.firewall ] ; then
@


1.42
log
@Remove my previous bogus comment about the relationship between the
static_routes and defaultrouter variables.  I'm glad I looked again, however,
as I realized that setting static_routes to NO in the case of a defaultrouter
would wind up with a bogus value for static_routes.  It doesn't really
hurt anything, but it's still wrong so I fixed it.  I think this whole routing
section of sysconfig needs a revisit - it's getting gross!
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.41 1996/02/09 12:45:37 jkh Exp $
d24 5
@


1.41
log
@Close conf/1007 and take this opportunity to correct a few long-standing
bogons with the way static_routes was being handled.  Also document
the fact that default_router overrides static_routes entirely.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.40 1996/01/31 15:02:24 mpp Exp $
d52 1
a52 1
if [ "x${static_routes}" != "xNO" ]; then
@


1.40
log
@Another round of spelling fixes.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.39 1996/01/08 04:50:18 jkh Exp $
d52 6
a57 4
for i in ${static_routes}; do
	eval route_args=\$route_${i}
	route add ${route_args}
done
@


1.39
log
@echo setting of ${router} properly, e.g. between double quotes. :)
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.38 1996/01/06 20:49:17 jkh Exp $
d28 1
a28 1
# will not be avaliable until after the network is up :-(.  Once the
@


1.38
log
@New hack for configuring routers spawns two new variables:
	router=<some routed>
	routerflags=<startup flags>
Submitted by:	Paul Richards et al
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.37 1996/01/02 19:47:05 pst Exp $
d64 1
a64 1
	echo -n ' ${router}';	${router} ${routerflags}
@


1.37
log
@Using csh constructs in shell scripts is a boo-boo.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.36 1995/12/28 01:24:03 jkh Exp $
d62 1
a62 1
if [ "x$routedflags" != "xNO" ] ; then
d64 1
a64 7

	# $routedflags is imported from /etc/sysconfig.
	# If $routedflags == NO, routed isn't run.

	if [ "X${routedflags}" != X"NO" ]; then
		echo -n ' routed';	routed $routedflags
	fi
@


1.36
log
@Go to new scheme for local_startup variable.  Now one can specify multiple
directories to check in looking for port startup scripts.  The specific gunge
for apache httpd, gated and pcnfsd in /etc/sysconfig and /etc/netstart is
gone now.  Note that pcnfsd's troubles aren't necessarily over (and probably
why NetBSD brought it into their sources) - anyone adding pcnfsd will STILL
have to tweak /etc/sysconfig in order to set the new variable
`weak_mountd_authentication' to YES.  The flags to mountd are directly affected
by pcnfsd's requirements for non-root mounts, unfortunately! :-(
Submitted by: paul & jkh
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.35 1995/08/25 07:18:04 davidg Exp $
d59 1
a59 1
	sysctl -w net.inet.ip.forwarding=1 >& /dev/null
@


1.35
log
@Add missing quote.

Submitted by:	Morgan Davis <root@@io.cts.com>
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.34 1995/08/23 07:12:15 jkh Exp $
d59 1
a59 1
	sysctl -w net.inet.ip.forwarding=1
d62 2
a63 2
if [ "x$gated" != "xNO" -o "x$routedflags" != "xNO" ] ; then
	echo -n starting routing daemons:
d65 1
a65 2
	# $gated and $routedflags are imported from /etc/sysconfig.
	# If $gated == YES, gated is used; otherwise routed.
d68 1
a68 3
	if [ "X${gated}" = X"YES" -a -r /etc/gated.conf ]; then
		echo -n	' gated';	/usr/local/sbin/gated $gatedflags
	elif [ "X${routedflags}" != X"NO" ]; then
a70 1

@


1.34
log
@Add a "gateway" flag so that user can set up a gateway machine automatically
from sysinstall.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.33 1995/06/25 09:35:56 asami Exp $
d57 1
a57 1
if [ "x$gateway" != "xNO ]; then
@


1.33
log
@Change "sysctl -nw" to "sysctl -w" to make the output more informative.

Reviewed by:	rgrimes
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.32 1995/05/17 04:46:56 rgrimes Exp $
d56 5
@


1.32
log
@Reviewed by:	bde, jkh

Add comment that you should not have to edit netstart, and if you
do we would like to know about it.

The lo0 interface is now handled just like any other interface,
This makes it possible to do things to it from sysconfig.

Redo the comments in sysconfig about network_interfaces and ifconfig_${X}
to reflect the moving of lo0 to this scheme.  We now have an uncommented
variable for sysintall to find and play with.  (Your welcome Jordan)

Redo the way static routes are handled.  Basically use the same
scheme for routes that I did for network interfaces.  This allows
any number of static routes to be added from sysconfig.

Make sure we do the default route first so we stand a chance of
getting to our DNS server (if we have one) to resolve our own
IP address from $hostname.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.31 1995/05/11 21:11:14 jkh Exp $
d32 2
a33 2
	sysctl -nw net.inet.tcp.rfc1323=0
	sysctl -nw net.inet.tcp.rfc1644=0
@


1.32.4.1
log
@Don't supress sysctl variable change information for [no] tcp extensions.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.32 1995/05/17 04:46:56 rgrimes Exp $
d32 2
a33 2
	sysctl -w net.inet.tcp.rfc1323=0
	sysctl -w net.inet.tcp.rfc1644=0
@


1.32.4.2
log
@Bring in revisions from the HEAD.  I've brought dumpdev and
nis_ypsetflags in as well with this rev, though they may
be no-ops for the moment until we bring whatever corresponding
changes are required in.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.32.4.1 1995/08/09 01:45:51 davidg Exp $
a55 5

if [ "x$gateway" != "xNO ]; then
	echo 'configuring host as a gateway.'
	sysctl -w net.inet.ip.forwarding=1
fi
@


1.32.4.3
log
@Brought in change from rev 1.35: add missing quote.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.32.4.2 1995/08/23 07:18:05 jkh Exp $
d57 1
a57 1
if [ "x$gateway" != "xNO" ]; then
@


1.32.4.4
log
@Merge from HEAD, except:

	Clients that used gnumalloc still do, despite the merge.  We're not
	bringing phkmalloc over.

	Thread stuff left out.

	PCCARD support left out.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.32.4.3 1995/08/25 07:21:46 davidg Exp $
a25 5
# If IP filtering
if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then
	sh /etc/rc.firewall
fi

d28 1
a28 1
# will not be available until after the network is up :-(.  Once the
d52 4
a55 6
if [ "x${static_routes}" != "x" ]; then
	for i in ${static_routes}; do
		eval route_args=\$route_${i}
		route add ${route_args}
	done
fi
d59 1
a59 1
	sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
d62 13
a74 3
if [ "x$router" != "xNO" ] ; then
	echo -n starting routing daemon:
	echo -n " ${router}";	${router} ${routerflags}
@


1.32.4.5
log
@This 3rd mega-commit should hopefully bring us back to where we were.
I can get it to `make world' succesfully, anyway!
@
text
@d26 5
d33 1
a33 1
# will not be avaliable until after the network is up :-(.  Once the
d57 6
a62 4
for i in ${static_routes}; do
	eval route_args=\$route_${i}
	route add ${route_args}
done
d66 1
a66 1
	sysctl -w net.inet.ip.forwarding=1
d69 3
a71 13
if [ "x$gated" != "xNO" -o "x$routedflags" != "xNO" ] ; then
	echo -n starting routing daemons:

	# $gated and $routedflags are imported from /etc/sysconfig.
	# If $gated == YES, gated is used; otherwise routed.
	# If $routedflags == NO, routed isn't run.

	if [ "X${gated}" = X"YES" -a -r /etc/gated.conf ]; then
		echo -n	' gated';	/usr/local/sbin/gated $gatedflags
	elif [ "X${routedflags}" != X"NO" ]; then
		echo -n ' routed';	routed $routedflags
	fi

@


1.32.4.6
log
@Merge very small, selected parts of this directory from HEAD.  Mostly
motivated by a desire to see the local_startup stuff work correctly
for the packages collection in 2.1.5.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.32.4.5 1996/06/05 02:36:32 jkh Exp $
a25 5
# If IP filtering
if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then
	sh /etc/rc.firewall
fi

d28 1
a28 1
# will not be available until after the network is up :-(.  Once the
d52 4
a55 6
if [ "x${static_routes}" != "x" ]; then
	for i in ${static_routes}; do
		eval route_args=\$route_${i}
		route add ${route_args}
	done
fi
d59 1
a59 1
	sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
d62 13
a74 3
if [ "x$router" != "xNO" ] ; then
	echo -n starting routing daemon:
	echo -n " ${router}";	${router} ${routerflags}
@


1.32.4.7
log
@$Id$ -> $FreeBSD$
@
text
@d3 1
a3 1
# $FreeBSD$
@


1.31
log
@Document the fact that almost all the user configuration stuff is now
in /etc/sysconfig, per Luigi's suggestion.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.30 1995/05/11 19:08:36 rgrimes Exp $
d8 2
a9 1
# first before contemplating any changes here.
a45 7
# set the address for the loopback interface
ifconfig lo0 inet localhost

# set interface for multicasts to default interface
# this needs to happen before router discovery
route add 224.0.0.0 -netmask 0xf0000000 -interface $hostname

d47 2
a48 1
	route add default $defaultrouter
d51 5
a55 2
# use loopback, not the wire
# route add $hostname localhost
@


1.30
log
@Reviewed by:	wollman

Add a knob to make it easy to turn off RFC 1323 and RFC 1644 options.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.29 1995/04/24 23:52:15 rgrimes Exp $
d5 4
@


1.29
log
@Add $defaultdomainname to sysconfig and use it in netstart to set the
domainname.  This eliminates /etc/defaultdomain.

Correct tickadj, it should have been tickadjflags.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.28 1995/04/12 16:58:06 ache Exp $
d19 10
@


1.28
log
@Call gated as /usr/local/sbin/gated instead of possible adding
/usr/local/sbin to rc PATH
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.27 1995/04/11 01:22:15 rgrimes Exp $
d17 2
a18 3
if [ -z "`domainname`" -a -e "/etc/defaultdomain" ] ; then
	domainname=`cat /etc/defaultdomain`
	domainname $domainname
@


1.27
log
@Remove obsolete comments about my-name and my-network.

Have netstart directly source sysconfig so that it stands on its own.
Do not source netstart in rc, run it with sh.

Rework the dangerous /etc/hostname.* so that it uses a variable with
a list of interfaces and a variable for each interface in that list.
The files /etc/hostname.* become obsolete with this change, the
information is now stored in /etc/sysconfig.

Source any /etc/start_if.${ifn} files so they can export things to
netstart (plans for future enhancements in this area.)

Obsolete /etc/defaultrouter, this is now down with $defaultrouter from
sysconfig.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.26 1995/04/09 09:54:41 rgrimes Exp $
d54 1
a54 1
		echo -n ' gated';	gated $gatedflags
@


1.26
log
@This is a purely cosmetic clean up.  Fix many cut and paste problems that
had turned tabs into spaces.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.25 1995/03/30 06:26:08 rgrimes Exp $
d6 6
a11 3
# my-name is my symbolic name
# my-netmask is specified in /etc/networks
#
d22 4
a25 9
for i in /etc/hostname.*
do
	ifn=`expr $i : '/etc/hostname\.\(.*\)'`
	if [ -e /etc/hostname.$ifn ]; then
		if [ -e /etc/start_if.$ifn ]; then
			sh /etc/start_if.$ifn $ifn
		fi
		ifconfig $ifn `cat /etc/hostname.$ifn`
		ifconfig $ifn
d27 3
a40 2
elif [ -f /etc/defaultrouter ] ; then
	route add default `cat /etc/defaultrouter`
@


1.25
log
@This is the rc work as provided by pts, I will me makeing some additional
changes to it based upon other outstanding bug reports and commits made
after his work.

Comments:

(a) sysconfig is still used to do all configuration.  I was not going to
    change that out from under you.... a user never need edit netstart
    or rc* unless they're being very weird.

(b) rc.maint has been folded back into rc.  It is just unworkable as
    a separate chunk because of ordering bogosities

(c) netstart does what it says... it starts up enough of the network to
    get up,  it doesn't start every bloody daemon that might talk to a
    socket...  netstart ifconfig's the devices and sets up routing if
    configured to do so.

(d) nfs disks are mounted immediately after netstart completes

(e) syslog is started as early as possible (right after nfs) so that error
    messages can get logged to remote syslog servers properly

(f) named is started (there is an argument that says that named should be
    started before syslogd because if you are the dns server for your domain,
    you'd like named to resolve remote hosts in syslog.conf,  but this is
    a minority case and the trivial workarround is to put the syslog host
    in /etc/hosts or use an /etc/resolv.conf -- why? because you want syslog
    to catch named errors, which is a MUCH more important and likely occurance)

(g) NOW all of the rest of the network daemons such as the time stuff, RPC,
    NIS, NFS, Kerberos and inetd are started

(h) the rest of the generic stuff is done (cron/printer/sendmail)

(i) shared libraries are set

(j) /etc/rc.i386 is run (this does FreeBSD/386 specific stuff like ibcs2,
    xtend, and all of the syscons stuff
    (this is actually started as /etc/rc.`uname -m`

(k) the syscons stuff has gotten a serious cleaning to make it consistent
    with rc conventions

(l) rc.local has had the comments about syscons removed (they are not relevant
    to this file now) and the full name of the kernel has been restored to
    /etc/motd

Submitted by:	pts
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.24 1995/03/29 03:33:55 rgrimes Exp $
d15 2
a16 2
        domainname=`cat /etc/defaultdomain`
        domainname $domainname
d48 1
a48 1
    echo -n starting routing daemons:
d50 9
a58 9
    # $gated and $routedflags are imported from /etc/sysconfig.
    # If $gated == YES, gated is used; otherwise routed.
    # If $routedflags == NO, routed isn't run.

    if [ "X${gated}" = X"YES" -a -r /etc/gated.conf ]; then
	    echo -n ' gated';	gated $gatedflags
    elif [ "X${routedflags}" != X"NO" ]; then
	    echo -n ' routed';	routed $routedflags
    fi
d60 1
a60 1
    echo '.'
@


1.24
log
@History merge after repository restore of netstart,v:

date: 1995/03/26 18:18:59;  author: wpaul;  state: Exp;  lines: +23 -17
Make syslogd work again: in needs to be started in netstart right
before the rest of the system daemons are brought up and *after* the
network interfaces have been configured.

Also fix one other potential problem: the NIS services need to be started
relavively early since some of the other daemons might need them. The
automounter is a good example: if you use amd with NIS-based maps, you'd
better have NIS running before you start it. :) I think mountd might
need it too, now that netgroups can be read via NIS as well.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.23 1995/03/29 03:28:08 rgrimes Exp $
d47 2
a48 54
# The syslog daemon needs to be started as soon as possible in order
# to capture any messages generated by the other system daemons.
echo -n Starting system logger:
rm -f /dev/log
echo ' syslogd.';			syslogd

echo -n starting network daemons:

# Portmapper should always be run, to provide RPC services for inetd.
if [ -x /usr/sbin/portmap ]; then
	echo -n ' portmap';		portmap
fi

# $gated and $routedflags are imported from /etc/sysconfig.
# If $gated == YES, gated is used; otherwise routed.
# If $routedflags == NO, routed isn't run.
if [ "X${gated}" = X"YES" -a -r /etc/gated.conf ]; then
	echo -n ' gated';	gated $gatedflags
elif [ "X${routedflags}" != X"NO" ]; then
	echo -n ' routed';	routed $routedflags
fi

# $namedflags is imported from /etc/sysconfig
if [ "X${namedflags}" != "XNO" ]; then
	echo -n ' named';	named $namedflags
fi

# Start ypserv if we're an NIS server.
# Run yppasswdd only on the NIS master server
if [ "X${nis_serverflags}" != X"NO" ]; then
        echo -n ' ypserv'; ypserv ${nis_serverflags}

	if [ "X${yppasswddflags}" != X"NO" ]; then
	        echo -n ' yppasswdd'; yppasswdd ${yppasswddflags}
	fi
fi


# Start ypbind if we're an NIS client
if [ "X${nis_clientflags}" != X"NO" ]; then
        echo -n ' ypbind'; ypbind ${nis_clientflags}
fi

# $ntpdate and $xntpdflags are imported from /etc/sysconfig.
# If $ntpdate != NO, run ntpdate $ntpdate to set the date correctly.
# If $xntpdflags != NO, start xntpd.
if [ "X${ntpdate}" != X"NO" -o "X${xntpdflags}" != X"NO" ]; then
	if [ "X${tickadjflags}" != X"NO" ]; then
		echo -n ' tickadj';	tickadj ${tickadjflags--Aq}
	fi

	if [ "X${ntpdate}" != X"NO" ]; then
		echo -n ' ntpdate';	ntpdate ${ntpdate}
	fi
d50 9
a58 21
	if [ "X${xntpdflags}" != X"NO" ]; then
		echo -n ' xntpd';	xntpd ${xntpdflags}
	fi
fi

# $timedflags is imported from /etc/sysconfig;
# if $timedflags == NO, timed isn't run.
if [ "X${timedflags}" != X"NO" ]; then
	echo -n ' timed'; timed $timedflags
fi

# $rwhod is imported from /etc/sysconfig;
# if $rwhod is set to YES, rwhod is run.
if [ "X${rwhod}" = X"YES" ]; then
	echo -n ' rwhod';	rwhod
fi

if [ "X${nfs_server}" = X"YES" -a -r /etc/exports ]; then
	echo -n ' mountd';		mountd
	echo -n ' nfsd';		nfsd -u -t 4
fi
d60 1
a60 2
if [ "X${nfs_client}" = X"YES" ]; then
	echo -n ' nfsiod';		nfsiod -n 4
a61 21

if [ "X${amdflags}" != X"NO" ]; then
	echo -n ' amd';			amd ${amdflags}
fi

# $sendmail_flags is imported from /etc/sysconfig;
# if $sendmail_flags is something other than NO, sendmail is run.
if [ "X${sendmail_flags}" != X"NO" -a -r /etc/sendmail.cf ]; then
	echo -n ' sendmail';		sendmail ${sendmail_flags} 
fi

# Kerberos runs ONLY on the Kerberos server machine
if [ "X${kerberos_server}" = X"YES" ]; then
	echo -n ' kerberos';	kerberos >> /var/log/kerberos.log &
	echo -n ' kadmind'; \
		(sleep 20; /usr/sbin/kadmind -n >/dev/null 2>&1 &) &
fi

echo -n ' inetd';		inetd
echo '.'

@


1.23
log
@History merge after repository restore of netstart,v:

date: 1995/03/23 01:25:18;  author: jkh;  state: Exp;
Another pass through our rc files in an attempt to eliminate historical
crufy and generally make all of this easier to understand and modify.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.22 1995/03/21 15:20:45 jkh Exp $
d47 6
d74 16
a142 16
fi

# Start ypserv if we're an NIS server.
# Run yppasswdd only on the NIS master server
if [ "X${nis_serverflags}" != X"NO" ]; then
        echo -n ' ypserv'; ypserv ${nis_serverflags}

	if [ "X${yppasswddflags}" != X"NO" ]; then
	        echo -n ' yppasswdd'; yppasswdd ${yppasswddflags}
	fi
fi


# Start ypbind if we're an NIS client
if [ "X${nis_clientflags}" != X"NO" ]; then
        echo -n ' ypbind'; ypbind ${nis_clientflags}
@


1.22
log
@Begin a long-overdue cleanup of this whole mess.

1. Move all system configuration variables into /etc/sysconfig
2. Adapt other files to use it.
3. Add a host of new variables for micro-managing your system in various
   ways.  For 2.1, /etc/sysconfig will be machine-edited so that the user
   doesn't even have to care at all about the various funny names we picked.
4. Enable dset.  We won't get it debugged if we never use it, and no one
   has said anything negative about it yet, so here goes!
5. Try to use one consistent style throughout.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.21 1995/03/16 16:57:59 wollman Exp $
a9 1
	hostname=`cat /etc/myname`
d46 96
@


1.21
log
@Semi-major RC file cleanup:

- Do ntp right
- Move recenrly-added and long-standing junk from rc.local into rc, so
. that rc.local truly is LOCAL.
- Fix named invocation to use the correct boot file location.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.20 1995/02/08 16:42:12 wpaul Exp $
a4 21

defaultrouter=NO
routedflags=-q
timedflags=NO
xntpdflags="NO"
tickadj="-Aq"	# this is inoperative unless xntpd is enabled; NO to disable
ntpdate="NO"
#ntpdate="-b -s ntp-0 ntp-1 ntp-2"
rwhod=NO
sendmail_flags="-bd -q30m"
amdflags="NO"
nfs_client=NO
nfs_server=NO
nis_clientflags="NO"
nis_serverflags="NO"
yppasswddflags="NO"
#yppasswddflags"-m /var/yp/master.passwd -s -f"
name_server=NO
savecore=NO
#kerberos_server=YES
#gated=YES
@


1.20
log
@Small NIS fixes:

1) ypserv is started with nis_serverflags, not yppasswddflags (that's what
   I get for cutting & pasting without paying attention).

2) ypbind can also be started with arguments, so turn nis_client to
   nis_clientflags.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.19 1995/02/07 20:52:35 ats Exp $
d10 1
d12 1
@


1.19
log
@Submitted by:	Michael Reiffenberger ?
Changed the yppaswddd to a yppaswdd :-).
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.18 1995/02/03 23:54:07 wpaul Exp $
d16 1
a16 1
nis_client="NO"
@


1.18
log
@Added options for starting NIS client and server processes. All are
off by default.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.17 1994/11/07 04:02:25 phk Exp $
d18 1
a18 1
yppasswdddflags="NO"
@


1.17
log
@Only so savecore if people ask for it.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.16 1994/11/02 23:50:54 phk Exp $
d16 4
d31 6
@


1.16
log
@Don't set hostname if we already have it.  (diskless).
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.15 1994/10/06 20:52:00 pst Exp $
d17 1
@


1.15
log
@Make multicasts go out default interface
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.14 1994/09/29 17:27:45 pst Exp $
d23 4
a26 2
hostname=`cat /etc/myname`
hostname $hostname
@


1.14
log
@Add nfs_client and amdflags
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.13 1994/09/15 01:19:43 phk Exp $
d40 4
@


1.13
log
@Added support for defaultrouter, both as a variable and as /etc/defaultrouter.

Changed the everlenghtening list of "if [ -f /etc/hostname.foo ].." to a
loop which will do them all, and look for init-scripts for them as well.
perfect place to put your calls to slattach and such: /etc/start_if.sl0
for instance.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.12 1994/06/17 19:29:05 jkh Exp $
d13 4
a17 2
#nfs_server=YES
#name_server=YES
@


1.12
log
@Add entry for the new PCMCIA ethernet adapter code (ze0).
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.11 1994/05/04 08:59:52 rgrimes Exp $
d6 1
d24 11
a34 15
if [ -e /etc/hostname.ed0 ]; then
	ifconfig ed0 `cat /etc/hostname.ed0`
fi
if [ -e /etc/hostname.ed1 ]; then
	ifconfig ed1 `cat /etc/hostname.ed1`
fi
if [ -e /etc/hostname.ie0 ]; then
	ifconfig ie0 `cat /etc/hostname.ie0`
fi
if [ -e /etc/hostname.is0 ]; then
	ifconfig is0 `cat /etc/hostname.is0`
fi
if [ -e /etc/hostname.ze0 ]; then
	ifconfig ze0 `cat /etc/hostname.ze0`
fi
d38 6
@


1.11
log
@Add supoort for hostname.ed1
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.10 1994/04/18 11:00:44 rgrimes Exp $
d34 3
@


1.10
log
@Fix the ifconfig lines so that they have interface names on them.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.9 1994/04/18 06:44:43 rgrimes Exp $
d25 3
@


1.9
log
@>From BETA_1_1 branch:
----------------------------
revision 1.8.2.1
date: 1994/04/18 06:37:29;  author: rgrimes;  state: Exp;  lines: +10 -4
Use the hostname.* files created by the installation to reduce the
amount of work one has to do when setting up a system.
----------------------------
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.8.2.1 1994/04/18 06:37:29 rgrimes Exp $
d24 1
a24 1
	ifconfig `cat /etc/hostname.ed0`
d27 1
a27 1
	ifconfig `cat /etc/hostname.ie0`
d30 1
a30 1
	ifconfig `cat /etc/hostname.is0`
@


1.8
log
@Support for automatically running ntpdate and xntpd.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.7 1993/11/07 01:19:02 wollman Exp $
d23 9
a31 3
# ifconfig ie0 inet $hostname netmask my-netmask
# ifconfig is0 inet $hostname netmask my-netmask
# ifconfig ed0 inet $hostname netmask my-netmask
@


1.8.2.1
log
@Use the hostname.* files created by the installation to reduce the
amount of work one has to do when setting up a system.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.8 1993/12/21 21:28:11 wollman Exp $
d23 3
a25 9
if [ -e /etc/hostname.ed0 ]; then
	ifconfig `cat /etc/hostname.ed0`
fi
if [ -e /etc/hostname.ie0 ]; then
	ifconfig `cat /etc/hostname.ie0`
fi
if [ -e /etc/hostname.is0 ]; then
	ifconfig `cat /etc/hostname.is0`
fi
@


1.8.2.2
log
@Arghh.. this is what I get for not taking patchfiles over, forgot the
interface names on the ifconfig lines.
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.8.2.1 1994/04/18 06:37:29 rgrimes Exp $
d24 1
a24 1
	ifconfig ed0 `cat /etc/hostname.ed0`
d27 1
a27 1
	ifconfig ie0 `cat /etc/hostname.ie0`
d30 1
a30 1
	ifconfig is0 `cat /etc/hostname.is0`
@


1.8.2.3
log
@Support hostname.ed1
@
text
@d3 1
a3 1
#	$Id: netstart,v 1.8.2.2 1994/04/18 10:49:46 rgrimes Exp $
a24 3
fi
if [ -e /etc/hostname.ed1 ]; then
	ifconfig ed1 `cat /etc/hostname.ed1`
@


1.7
log
@Added a new flag variable to /etc/netstart, $sendmail_flags, which
gives the flags to be passed to sendmail when it is started.  (If it is
"NO", sendmail is not started.)  Also, always start the portmapper regardless
of the value of $nfs_server; this should prevent the inetd complaints we
have seen from recurring.
@
text
@d3 1
a3 1
#	$Id$
d8 2
@


1.6
log
@Deleted the ifconfig lines with we0, ne0, ec0: the drivers don't exist
anymore. Added an ifconfig line with ie0.
@
text
@d3 2
a4 1
#	@@(#)netstart	5.9 (Berkeley) 3/30/91
d9 1
@


1.5
log
@Fixed spelling error in ifconfig line for ed0, from netwask to netmask
@
text
@d19 1
a19 3
# ifconfig we0 inet $hostname netmask 447-ether
# ifconfig ne0 inet $hostname netmask my-netmask
# ifconfig ec0 inet $hostname netmask my-netmask
@


1.4
log
@Pulled in patch kit 0.2.4 netstart, added ifconfig ed0 line.  This is a
crock so I can get the binaries released.
@
text
@d23 1
a23 1
# ifconfig ed0 inet $hostname netwask my-netmask
@


1.3
log
@From NetBSD, copied verbatium.  May need some work yet.
@
text
@a4 1
# set these to "NO" to turn them off.  otherwise, they're used as flags
d6 1
a6 3
timedflags=

# set the following to "YES" to turn them on
d8 4
a11 5
nfs_server=NO
nfs_client=NO
name_server=NO
gated=NO
kerberos_server=NO
d13 2
a14 1
# /etc/myname contains my symbolic name
a17 26
if [ -f /etc/defaultdomain ]; then
	domainname `cat /etc/defaultdomain`
fi

# configure all of the interfaces which we know about.
# do this by reading /etc/hostname.* files, where * is the name
# of a given interface.
#
# these files are formatted like the following, but with no # at the
# beginning of the line
#
# addr_family hostname netmask broadcast_addr options
# dest dest_addr
#
# addr_family is the address family of the interface, generally inet
# hostname is the host name that belongs to the interface, in /etc/hosts.
# netmask is the network mask for the interface.
# broadcast_addr is the broadcast address for the interface
# options are misc. options to ifconfig for the interface.
#
# dest is simply the string "dest" (no quotes, though) if the interface
# has a "destination" (i.e. it's a point-to-point link, like SLIP).
# dest_addr is the hostname of the other end of the link, in /etc/hosts
#
# the only required contents of the file are the addr_family field
# and the hostname.
d19 5
a23 6
(
    tmp="$IFS"
    IFS="$IFS."
    set `echo /etc/hostname.*`
    IFS=$tmp
    unset tmp
a24 23
    while [ $# -ge 2 ] ; do
        shift            # get rid of "hostname"
        (
            read af name mask bcaddr extras
            read dt dtaddr 

            if [ ! -n "$name" ]; then
                echo "/etc/hostname.$1: invalid network configuration file"
                exit
            fi

	    cmd="ifconfig $1 $af $name "
	    if [ "${dt}" = "dest" ]; then cmd="$cmd $dtaddr"; fi
	    if [ -n "$mask" ]; then cmd="$cmd netmask $mask"; fi
	    if [ -n "$bcaddr" ]; then cmd="$cmd broadcast $bcaddr"; fi
	    cmd="$cmd $extras"

	    $cmd
        ) < /etc/hostname.$1
        shift
    done
)

d29 1
a29 11
route add $hostname localhost

# /etc/mygate, if it exists, contains the name of my gateway host
# that name must be in /etc/hosts.
if [ -f /etc/mygate ]; then
	route add default `cat /etc/mygate`
fi

if [ -f /usr/sbin/ypbind -a -d /var/yp ]; then
	ypbind;		echo ypbind
fi
@


1.2
log
@Fixed netstart to have a hard-coded localhost address.
This fixes situations where you don't have a correct localhost in
your nameserver or no name-server.
@
text
@d5 1
d7 3
a9 1
timedflags=YES
d11 5
d17 1
a17 2
# myname is my symbolic name
# my-netmask is specified in /etc/networks
d19 1
a19 1
hostname=myname.my.domain
d21 26
d48 6
a53 9
ifconfig imp0 inet $hostname
ifconfig ace0 inet $hostname netmask my-netmask
ifconfig ex0 inet $hostname netmask my-netmask
ifconfig we0 inet $hostname netmask my-netmask
ifconfig ne0 inet $hostname netmask my-netmask

# for en ethernet interface, load microcode before ifconfig
# /etc/enpload /dev/enp0ram /etc/enpcode	> /dev/console 2>&1
ifconfig en0 inet $hostname netmask my-netmask
d55 23
d79 1
a79 1
ifconfig lo0 inet 127.0.0.1
d83 10
@


1.1
log
@Initial revision
@
text
@d26 1
a26 1
ifconfig lo0 inet localhost
@


1.1.1.1
log
@Initial import of 386BSD 0.1 othersrc/etc
@
text
@@
