Up to [cvs.netbsd.org] / src / etc / rc.d
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.5.6.1 / (download) - annotate - [select for diffs], Wed May 23 10:07:21 2012 UTC (2 days, 17 hours ago) by yamt
Branch: yamt-pagecache
Changes since 1.5: +9 -6
lines
Diff to previous 1.5 (colored) next main 1.6 (colored)
sync with head.
Revision 1.3.12.1 / (download) - annotate - [select for diffs], Sat May 19 16:48:36 2012 UTC (6 days, 10 hours ago) by riz
Branch: netbsd-5
Changes since 1.3: +17 -6
lines
Diff to previous 1.3 (colored) next main 1.4 (colored)
Pull up following revision(s) (requested by gendalia in ticket #1757): share/man/man5/route.conf.5: revision 1.4 etc/rc.d/staticroute: revision 1.4 etc/rc.d/staticroute: revision 1.5 etc/rc.d/staticroute: revision 1.6 Add a "return 0" to avoid incorrect error returns because we ran out of lines to read from "/etc/route.conf". Add proper error reporting via the return code: Remember if any of the "route" commands failed and return an error in that case. Add the ability for staticroute to evaluate lines from /etc/route.conf as shell script fragments, add example to the route.conf man page of evaluating variables. Remove route.conf man page statement that staticroute is enabled in rc.conf since that's incorrect. Wrap the staticroute while in parens, per <apb> & <christos>, and quote all the arguments for the evals.
Revision 1.5.8.1 / (download) - annotate - [select for diffs], Mon May 7 03:16:45 2012 UTC (2 weeks, 5 days ago) by riz
Branch: netbsd-6
Changes since 1.5: +9 -6
lines
Diff to previous 1.5 (colored) next main 1.6 (colored)
Pull up following revision(s) (requested by gendalia in ticket #211): share/man/man5/route.conf.5: revision 1.4 etc/rc.d/staticroute: revision 1.6 Add the ability for staticroute to evaluate lines from /etc/route.conf as shell script fragments, add example to the route.conf man page of evaluating variables. Remove route.conf man page statement that staticroute is enabled in rc.conf since that's incorrect. Wrap the staticroute while in parens, per <apb> & <christos>, and quote all the arguments for the evals.
Revision 1.6 / (download) - annotate - [select for diffs], Wed May 2 15:57:15 2012 UTC (3 weeks, 2 days ago) by gendalia
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
HEAD
Changes since 1.5: +9 -6
lines
Diff to previous 1.5 (colored)
Add the ability for staticroute to evaluate lines from /etc/route.conf as shell script fragments, add example to the route.conf man page of evaluating variables. Remove route.conf man page statement that staticroute is enabled in rc.conf since that's incorrect. Wrap the staticroute while in parens, per <apb> & <christos>, and quote all the arguments for the evals.
Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 7 08:06:11 2009 UTC (2 years, 7 months ago) by tron
Branch: MAIN
CVS Tags: yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
matt-premerge-20091211,
matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache,
netbsd-6
Changes since 1.4: +11 -5
lines
Diff to previous 1.4 (colored)
Add proper error reporting via the return code: Remember if any of the "route" commands failed and return an error in that case.
Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 7 07:51:28 2009 UTC (2 years, 7 months ago) by tron
Branch: MAIN
Changes since 1.3: +3 -1
lines
Diff to previous 1.3 (colored)
Add a "return 0" to avoid incorrect error returns because we ran out of lines to read from "/etc/route.conf".
Revision 1.2.16.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:23:49 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.2: +3 -1
lines
Diff to previous 1.2 (colored) next main 1.3 (colored)
sync with HEAD
Revision 1.3.2.2 / (download) - annotate - [select for diffs], Thu Jan 31 15:21:33 2008 UTC (4 years, 3 months ago) by reed
Branch: mjf-devfs
Changes since 1.3.2.1: +41 -0
lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)
Add comment to point to manual page for details.
Revision 1.3.2.1, Thu Jan 31 15:21:32 2008 UTC (4 years, 3 months ago) by reed
Branch: mjf-devfs
Changes since 1.3: +0 -41
lines
FILE REMOVED
file staticroute was added on branch mjf-devfs on 2008-01-31 15:21:33 +0000
Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 31 15:21:32 2008 UTC (4 years, 3 months ago) by reed
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
netbsd-5-base,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
mjf-devfs2-base2,
mjf-devfs2-base,
mjf-devfs2,
mjf-devfs-base,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
matt-armv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base
Branch point for: netbsd-5,
mjf-devfs
Changes since 1.2: +3 -1
lines
Diff to previous 1.2 (colored)
Add comment to point to manual page for details.
Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 13 18:08:03 2004 UTC (7 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: matt-armv6
Changes since 1.1: +2 -2
lines
Diff to previous 1.1 (colored)
Add an _rc_subr_loaded variable, set to ":" by rc.subr. Scripts can use this for a speedup by doing: $_rc_subr_loaded . /etc/rc.subr
Revision 1.1 / (download) - annotate - [select for diffs], Thu Jan 9 15:57:02 2003 UTC (9 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Script to add and remove static routes:
eg:
$ cat /etc/route.conf
# Turn on/off IP forwarding.
+sysctl -w net.inet.ip.forwarding=1
-sysctl -w net.inet.ip.forwarding=0
net 192.168.2.0 -netmask 255.255.255.0 192.168.150.2