The NetBSD Project

CVS log for src/etc/rc.d/network

[BACK] Up to [cvs.NetBSD.org] / src / etc / rc.d

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.85 / (download) - annotate - [select for diffs], Fri Oct 16 15:31:04 2020 UTC (3 years, 6 months ago) by kim
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.84: +2 -4 lines
Diff to previous 1.84 (colored)

network: Update rtsol options

- Use "-6" instead of "--noipv4" as it seems more appropriate based on
  the dhcpcd(8) manual page.
- Remove "-f /dev/null" as it seems unnecessary with "-6".
- Remove "--persistent" as it is in the default /etc/dhcpcd.conf,
  and this way the user can change it, if they would like to (either
  through dhcpcd_flags or by editing /etc/dhcpcd.conf).

The "-b" (or "--background") option is needed to avoid a timeout error
message (and a delay in booting), so it is still left in place.

Revision 1.84 / (download) - annotate - [select for diffs], Thu Oct 15 07:05:27 2020 UTC (3 years, 6 months ago) by kim
Branch: MAIN
Changes since 1.83: +2 -3 lines
Diff to previous 1.83 (colored)

Update "rtsol" keyword: leave IPv6 autoconf on

There is no need to turn off ipv6_autoconf or dhcp6 in dhcpcd to match
the previous behaviour with in-kernel RA processing.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Oct 11 22:38:48 2020 UTC (3 years, 6 months ago) by kim
Branch: MAIN
Changes since 1.82: +5 -2 lines
Diff to previous 1.82 (colored)

Make "rtsol" functional again.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Sep 8 12:52:18 2020 UTC (3 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

Rename MOUNTCRITLOCAL to CRITLOCALMOUNTED to avoid a name collision
on case insensitive file systems

Revision 1.81 / (download) - annotate - [select for diffs], Wed Jul 22 16:50:41 2020 UTC (3 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

Split the local disk availability step into two phases to allow scripts
that pre-populate parts of the system (e.g. a tmpfs based /var) an
easy place to plug in like:

# REQUIRE: mountcritlocal
# BEFORE: MOUNTCRITLOCAL

This also cleans up the existing special handling a bit by separating it
into new scripts. All later scripts now depend on MOUNTCRITLOCAL.
Discussed on tech-userlevel some time ago.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Jul 4 06:24:53 2020 UTC (3 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)

Trailing whitespace

Revision 1.79 / (download) - annotate - [select for diffs], Fri Jun 12 11:04:45 2020 UTC (3 years, 10 months ago) by roy
Branch: MAIN
Changes since 1.78: +8 -23 lines
Diff to previous 1.78 (colored)

Remove in-kernel handling of Router Advertisements

This is much better handled by a user-land tool.
Proposed on tech-net here:
https://mail-index.netbsd.org/tech-net/2020/04/22/msg007766.html

Note that the ioctl SIOCGIFINFO_IN6 no longer sets flags. That now
needs to be done using the pre-existing SIOCSIFINFO_FLAGS ioctl.

Compat is fully provided where it makes sense, but trying to turn on
RA handling will obviously throw an error as it no longer exists.

Note that if you use IPv6 temporary addresses, this now needs to be
turned on in dhcpcd.conf(5) rather than in sysctl.conf(5).

Revision 1.71.8.2 / (download) - annotate - [select for diffs], Thu Apr 23 13:59:32 2020 UTC (3 years, 11 months ago) by martin
Branch: netbsd-8
Changes since 1.71.8.1: +13 -5 lines
Diff to previous 1.71.8.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

Pull up following revision(s) (requested by kim in ticket #1538):

	usr.sbin/rtsold/rtsold.8: revision 1.37
	usr.sbin/rtsold/rtsold.8: revision 1.38
	usr.sbin/rtsold/rtsold.8: revision 1.39
	share/man/man5/ifconfig.if.5: revision 1.20
	etc/rc.d/network: revision 1.77
	etc/rc.d/network: revision 1.78 (plus patch)
	usr.sbin/rtsold/rtsold.8: revision 1.40
	usr.sbin/rtsold/rtsold.8: revision 1.41
	usr.sbin/rtsold/rtsold.8: revision 1.42
	share/man/man5/ifconfig.if.5: revision 1.19

Add rtsol to the NAME section as well

rc.d/network: improve wording of waiting for DAD to finish

Revert unrelated changes to prior

Use .Dl for one line literal display.  Add SEE ALSO.

Remove trailing dot in SEE ALSO.

Add an "rtsol" keyword to ifconfig.if for enabling IPv6 RS/RA

Sort SEE ALSO.

Update date

Revision 1.71.8.1 / (download) - annotate - [select for diffs], Thu Apr 23 13:43:42 2020 UTC (3 years, 11 months ago) by martin
Branch: netbsd-8
Changes since 1.71: +34 -1 lines
Diff to previous 1.71 (colored)

Pull up following revision(s) (requested by kim in ticket #1537):

	share/man/man5/rc.conf.5: revision 1.172
	etc/rc.d/network: revision 1.75

Allow rc.conf to setup resolv.conf via resolvconf(8).

This allows all static network config to be in rc.conf rather than
spread across files.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Wed Apr 22 17:55:16 2020 UTC (3 years, 11 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.76: +11 -2 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

Pull up following revision(s) (requested by kim in ticket #838):

	share/man/man5/ifconfig.if.5: revision 1.20
	etc/rc.d/network: revision 1.78 (plus patch)
	usr.sbin/rtsold/rtsold.8: revision 1.42

Add an "rtsol" keyword to ifconfig.if for enabling IPv6 RS/RA

Sort SEE ALSO.
Update date

Revision 1.73.6.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:41:54 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.73.6.2: +9 -1 lines
Diff to previous 1.73.6.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Sync with HEAD

Revision 1.78 / (download) - annotate - [select for diffs], Wed Apr 15 20:31:57 2020 UTC (4 years ago) by kim
Branch: MAIN
CVS Tags: phil-wifi-20200421
Changes since 1.77: +10 -2 lines
Diff to previous 1.77 (colored)

Add an "rtsol" keyword to ifconfig.if for enabling IPv6 RS/RA

Revision 1.73.6.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:03:58 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.73.6.1: +3 -4 lines
Diff to previous 1.73.6.1 (colored) to branchpoint 1.73 (colored)

Merge changes from current as of 20200406

Revision 1.77 / (download) - annotate - [select for diffs], Sat Feb 22 11:52:45 2020 UTC (4 years, 1 month ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.76: +3 -4 lines
Diff to previous 1.76 (colored)

rc.d/network: improve wording of waiting for DAD to finish

Revision 1.73.6.1 / (download) - annotate - [select for diffs], Mon Jun 10 21:42:45 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.73: +38 -5 lines
Diff to previous 1.73 (colored)

Sync with HEAD

Revision 1.73.4.2 / (download) - annotate - [select for diffs], Mon Nov 26 01:49:59 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.73.4.1: +4 -3 lines
Diff to previous 1.73.4.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.76 / (download) - annotate - [select for diffs], Tue Oct 23 09:25:33 2018 UTC (5 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.75: +4 -3 lines
Diff to previous 1.75 (colored)

only flush routes in stop routine if flushroutes is true, same as
the start up.

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:33:02 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.73: +35 -3 lines
Diff to previous 1.73 (colored)

Sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Fri Jul 27 15:31:02 2018 UTC (5 years, 8 months ago) by roy
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728
Changes since 1.74: +34 -1 lines
Diff to previous 1.74 (colored)

Allow rc.conf to setup resolv.conf via resolvconf(8).
This allows all static network config to be in rc.conf rather than
spread across files.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Jun 29 12:34:15 2018 UTC (5 years, 9 months ago) by roy
Branch: MAIN
Changes since 1.73: +2 -3 lines
Diff to previous 1.73 (colored)

Remove dhclient from the base system.

Discussed here:
https://mail-index.netbsd.org/tech-userlevel/2018/06/21/msg011233.html

Revision 1.73 / (download) - annotate - [select for diffs], Thu Jul 6 09:49:39 2017 UTC (6 years, 9 months ago) by kre
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.72: +1 -1 lines
Diff to previous 1.72 (colored)


Revert previous - not a typo, even though it looks like one

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jul 6 09:24:47 2017 UTC (6 years, 9 months ago) by kre
Branch: MAIN
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored)


PR misc/52370

Correct typo.

XXX pullup 8, pullup 7

Revision 1.71 / (download) - annotate - [select for diffs], Sun Mar 6 18:50:06 2016 UTC (8 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.70: +5 -5 lines
Diff to previous 1.70 (colored)

use kat, a version of cat that strips comments

Revision 1.70 / (download) - annotate - [select for diffs], Thu Jan 7 11:51:07 2016 UTC (8 years, 3 months ago) by roy
Branch: MAIN
Changes since 1.69: +12 -13 lines
Diff to previous 1.69 (colored)

Instead of waiting for a duration based in IPv6 DAD count sysctl,
wait for 15 seconds for tentative flags to clear allowing 5 seconds
for detached flags to clear as well from configured addresses.

This is now protocol independant and allows time for the interfaces to
work out if they have a carrier or not.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Oct 14 20:49:47 2014 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

fix syntax error

Revision 1.68 / (download) - annotate - [select for diffs], Sun Sep 21 09:48:32 2014 UTC (9 years, 6 months ago) by roy
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

Use checkyesnox to test rtsol as it has been removed including its
default configuration which we should not warn about.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Sep 11 13:10:03 2014 UTC (9 years, 7 months ago) by roy
Branch: MAIN
Changes since 1.66: +16 -23 lines
Diff to previous 1.66 (colored)

Remove rtsol(8) and rtsold(8) as their functionality is in dhcpcd(8).
Remove rtsol(8) from rc.d/network.
Add -w seconds command to ifconfig to wait for N seconds for until DAD
has finished on all addresses.
Use ifconfig -w in rc.d/network instead of a forced sleep.

As discussed on tech-net@

Revision 1.61.12.3 / (download) - annotate - [select for diffs], Tue Aug 19 23:45:51 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.61.12.2: +273 -214 lines
Diff to previous 1.61.12.2 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.63.6.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:49:24 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.63: +274 -215 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Rebase.

Revision 1.61.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:27:20 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.61.6.1: +281 -207 lines
Diff to previous 1.61.6.1 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.66 / (download) - annotate - [select for diffs], Tue Apr 29 09:58:18 2014 UTC (9 years, 11 months ago) by uebayasi
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.65: +207 -207 lines
Diff to previous 1.65 (colored)

Indent.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Apr 29 09:56:16 2014 UTC (9 years, 11 months ago) by uebayasi
Branch: MAIN
Changes since 1.64: +12 -11 lines
Diff to previous 1.64 (colored)

Refactor a little to remove huge indents.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Apr 29 09:42:51 2014 UTC (9 years, 11 months ago) by uebayasi
Branch: MAIN
Changes since 1.63: +59 -1 lines
Diff to previous 1.63 (colored)

Split huge monolithic functions for readability.

Revision 1.61.12.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:26:22 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.61.12.1: +21 -6 lines
Diff to previous 1.61.12.1 (colored) to branchpoint 1.61 (colored)

resync from head

Revision 1.63 / (download) - annotate - [select for diffs], Sat Apr 20 18:24:18 2013 UTC (11 years ago) by christos
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: tls-earlyentropy
Changes since 1.62: +21 -6 lines
Diff to previous 1.62 (colored)

don't attempt to create interfaces that exist and don't hide errors.

Revision 1.61.6.1 / (download) - annotate - [select for diffs], Wed Jan 16 05:26:13 2013 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.61: +5 -1 lines
Diff to previous 1.61 (colored)

sync with (a bit old) head

Revision 1.61.12.1 / (download) - annotate - [select for diffs], Tue Nov 20 02:57:56 2012 UTC (11 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.61: +5 -1 lines
Diff to previous 1.61 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.62 / (download) - annotate - [select for diffs], Fri Nov 2 08:36:13 2012 UTC (11 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, agc-symver-base, agc-symver
Changes since 1.61: +5 -1 lines
Diff to previous 1.61 (colored)

print something before sleeping so that a user like me can see
what the mysterious pause is.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Fri Jan 7 01:53:33 2011 UTC (13 years, 3 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.57.2.1: +1 -0 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Pull up following revision(s) (requested by enami in ticket #1504):
	share/man/man8/rc.subr.8: revision 1.27
	etc/rc.subr: revision 1.86
	share/man/man5/ifconfig.if.5: revision 1.14
	etc/rc.d/network: revision 1.61
Add a collapse_backslash_newline function to rc.subr.
Collapse <abckslash><newline> sequences in /etc/ifconfig.xxx files read
by /etc/rc.d/network.  Fixes PR 41662 by Christoph Badura, which was
also reported independently by Jeremy C. Reed.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Sep 26 18:52:04 2010 UTC (13 years, 6 months ago) by apb
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored)

Collapse <abckslash><newline> sequences in /etc/ifconfig.xxx files read
by /etc/rc.d/network.  Fixes PR 41662 by Christoph Badura, which was
also reported independently by Jeremy C. Reed.

Revision 1.57.8.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:21:24 2010 UTC (14 years ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.57: +12 -4 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

sync to netbsd-5

Revision 1.60 / (download) - annotate - [select for diffs], Fri Sep 11 21:25:07 2009 UTC (14 years, 7 months ago) by cegger
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.59: +0 -21 lines
Diff to previous 1.59 (colored)

backout rev. 1.59. Will be re-done differently.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Sep 8 08:56:33 2009 UTC (14 years, 7 months ago) by cegger
Branch: MAIN
Changes since 1.58: +22 -1 lines
Diff to previous 1.58 (colored)

Do not flush routes if root file system is nfs mounted.
Fixes boot problem when the nfs server is in a different subnet.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Mon May 18 19:30:48 2009 UTC (14 years, 11 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.57: +12 -4 lines
Diff to previous 1.57 (colored)

Pull up following revision(s) (requested by roy in ticket #757):
	etc/rc.d/network: revision 1.58
Only start dhcpcd per interface if not running the full dhcpcd daemon.
Only stop dhcpcd pre interface if it's running for the interface.
Fixes PR bin/40320

Revision 1.58 / (download) - annotate - [select for diffs], Thu May 14 15:33:36 2009 UTC (14 years, 11 months ago) by roy
Branch: MAIN
Changes since 1.57: +12 -4 lines
Diff to previous 1.57 (colored)

Only start dhcpcd per interface if not running the full dhcpcd daemon.
Only stop dhcpcd pre interface if it's running for the interface.

Fixes PR bin/40320

Revision 1.51.12.3 / (download) - annotate - [select for diffs], Sat Jan 17 20:43:44 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.51.12.2: +4 -2 lines
Diff to previous 1.51.12.2 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

Sync with HEAD.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Oct 11 17:28:03 2008 UTC (15 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-5-base, 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, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Branch point for: netbsd-5, matt-nb5-mips64
Changes since 1.56: +5 -3 lines
Diff to previous 1.56 (colored)

eval arguments one more time so that quoting works.

Revision 1.51.12.2 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:20 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.51.12.1: +162 -114 lines
Diff to previous 1.51.12.1 (colored) to branchpoint 1.51 (colored)

Sync with HEAD.

Revision 1.56 / (download) - annotate - [select for diffs], Fri Sep 26 10:31:46 2008 UTC (15 years, 6 months ago) by apb
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.55: +30 -30 lines
Diff to previous 1.55 (colored)

Move default route configuration after interface alias address
configuration, in case people have default routes over aliased
addresses.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Sep 20 14:22:57 2008 UTC (15 years, 7 months ago) by apb
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

remove an unecessary "eval"

Revision 1.54 / (download) - annotate - [select for diffs], Sat Sep 20 12:12:38 2008 UTC (15 years, 7 months ago) by apb
Branch: MAIN
Changes since 1.53: +95 -47 lines
Diff to previous 1.53 (colored)

* Allow multiple commands in $ifconfig_xxN variables in rc.conf(5).
  This may be done either by embedding newlines in the value,
  or by using semicolons to represent line breaks (but not both at once).
* Allow shell quoting insode $ifconfig_xxN variables or /etc/ifconfig.xxN
  files.  This allows something like ifconfig_wi0="ssid 'my network'; dhcp"

Revision 1.51.16.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:41:08 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.51.16.1: +48 -48 lines
Diff to previous 1.51.16.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Jul 24 19:48:19 2008 UTC (15 years, 8 months ago) by reed
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.52: +48 -48 lines
Diff to previous 1.52 (colored)

Use absolute path for various /sbin tools.
This is consistent with several other rc.d scripts
and fixes problem with /sbin not in PATH.

(Tested several times for over three weeks, but not all
parts of this code were used by me.)

Revision 1.51.16.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:29:04 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.51: +10 -2 lines
Diff to previous 1.51 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.51.14.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:03:27 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.51: +10 -2 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

sync with head

Revision 1.51.12.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:21:20 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.51: +10 -2 lines
Diff to previous 1.51 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Thu May 29 15:38:35 2008 UTC (15 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.51: +10 -2 lines
Diff to previous 1.51 (colored)

Allow per-interface DHCP configuration using dhcpcd via
ifconfig_xxN=dhcp or a dhcp line in /etc/ifconfig.xxN.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Feb 10 19:40:58 2007 UTC (17 years, 2 months ago) by reed
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42, wrstuden-revivesa, mjf-devfs2
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

Fix typo/mispelling in comment.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Nov 24 17:28:45 2005 UTC (18 years, 4 months ago) by rpaulo
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, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.49: +17 -9 lines
Diff to previous 1.49 (colored)

RFC 3879 deprecated the IPv6 site-local prefix (fec0::/10):
    * remove all references to $ip6sitelocal and output a warning
    message if the variable is defined.
    * introduce $ip6uniquelocal (defaults to 'NO') that will control the
    behaviour of the system when $ip6mode is ``router'' (i.e. fc00::/7
    will not be routed if the variable is ``NO'') as per RFC 4193.

Thanks to Jonathan A. Kollasch for pointing this out in PR 32152.

Revision 1.44.4.2 / (download) - annotate - [select for diffs], Tue Jul 5 21:23:17 2005 UTC (18 years, 9 months ago) by riz
Branch: netbsd-2
CVS Tags: 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
Changes since 1.44.4.1: +2 -2 lines
Diff to previous 1.44.4.1 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored)

Pull up revision 1.49 (requested by symka in ticket #2038):
PR/29317: ifconfig.if does not allow parameters with spaces
OKeyd by christos@

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Sat Jul 2 23:29:48 2005 UTC (18 years, 9 months ago) by tron
Branch: netbsd-3
CVS Tags: 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
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Pull up revision 1.49 (requested by symka in ticket #511):
PR/29317: ifconfig.if does not allow parameters with spaces
OKeyd by christos@

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jun 28 13:36:40 2005 UTC (18 years, 9 months ago) by symka
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

PR/29317: ifconfig.if does not allow parameters with spaces

OKeyd by christos@

Revision 1.44.4.1 / (download) - annotate - [select for diffs], Mon May 9 22:42:08 2005 UTC (18 years, 11 months ago) by riz
Branch: netbsd-2
Changes since 1.44: +4 -2 lines
Diff to previous 1.44 (colored)

Pull up revision 1.47 (requested by lukem in ticket #1269):
Use 'load_rc_config_var CMD VAR' to set VAR for "foreign" rc.conf(5)
variables that may be set in /etc/rc.conf.d/CMD instead of /etc/rc.conf.
Fixes PR 20786 from Pavel Cahyna.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Apr 26 10:28:29 2005 UTC (18 years, 11 months ago) by cjs
Branch: MAIN
Changes since 1.47: +7 -9 lines
Diff to previous 1.47 (colored)

Make ifaliases_lo0 in rc.conf work just like other interfaces (instead of
being ignored). Also, when configuring aliases set as ifaliases_xxN,
print out the interface name and the alias address.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Oct 12 14:51:03 2004 UTC (19 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.46: +4 -2 lines
Diff to previous 1.46 (colored)

Use 'load_rc_config_var CMD VAR' to set VAR for "foreign" rc.conf(5)
variables that may be set in /etc/rc.conf.d/CMD instead of /etc/rc.conf.
Fixes PR 20768 from Pavel Cahyna.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Oct 11 15:00:51 2004 UTC (19 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.45: +11 -11 lines
Diff to previous 1.45 (colored)

Use new style command substitution.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Aug 13 18:08:03 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (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.38.2.2 / (download) - annotate - [select for diffs], Sat Jun 5 04:55:45 2004 UTC (19 years, 10 months ago) by jmc
Branch: netbsd-1-6
Changes since 1.38.2.1: +21 -3 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

Pullup rev 1.44 (requested by itojun in ticket #1704)

Allow an IPv6 default route to be set from /etc/mygate6 or $defaultroute6.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Oct 12 09:50:05 2003 UTC (20 years, 6 months ago) by jdc
Branch: MAIN
CVS Tags: netbsd-2-base, 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
Branch point for: netbsd-2
Changes since 1.43: +21 -3 lines
Diff to previous 1.43 (colored)

Allow an IPv6 default route to be set from /etc/mygate6 or $defaultroute6.
Approved by itojun@.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jan 9 15:52:58 2003 UTC (21 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.42: +1 -17 lines
Diff to previous 1.42 (colored)

revert previous; luke and matt want this as a separate script.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jan 9 15:12:47 2003 UTC (21 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.41: +19 -3 lines
Diff to previous 1.41 (colored)

Add /etc/route.conf processing to add static routes. Removes one more
reason for netstart.local.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jan 7 08:41:55 2003 UTC (21 years, 3 months ago) by tron
Branch: MAIN
Changes since 1.40: +1 -2 lines
Diff to previous 1.40 (colored)

Revert last change for now. It causes hangs during system shutdown when
NFS filesystems are mounted.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Jan 6 10:11:14 2003 UTC (21 years, 3 months ago) by tron
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

Add keyword "shutdown" so that this script is really executed on system
shutdown to delete clone interfaces.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Wed Oct 23 12:34:40 2002 UTC (21 years, 6 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.38: +15 -13 lines
Diff to previous 1.38 (colored)

Pull up revision 1.39 (requested by tron in ticket #901):
Automatically create and destroy cloning interfaces and sync IP Filter
immediately afterwards before bringing the interface up. This avoids
a small security gap existing in the previous scheme where IP Filter
was synced after all cloning interfaces were created and brought up.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Oct 5 05:24:40 2002 UTC (21 years, 6 months ago) by tron
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.38: +15 -13 lines
Diff to previous 1.38 (colored)

Automatically create and destroy cloning interfaces and sync IP Filter
immediately afterwards before bringing the interface up. This avoids
a small security gap existing in the previous scheme where IP Filter
was synced after all cloning interfaces were created and brought up.

Revision 1.38 / (download) - annotate - [select for diffs], Sat May 4 13:53:02 2002 UTC (21 years, 11 months ago) by tron
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Branch point for: netbsd-1-6
Changes since 1.37: +11 -1 lines
Diff to previous 1.37 (colored)

Sync ipf(4) after starting or stopping. This is necesarry to make filter
rules for dynamically created interfaces like pppoe(4) effective.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Apr 29 12:13:14 2002 UTC (21 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.36: +1 -15 lines
Diff to previous 1.36 (colored)

don't bother warning or supporting obsolete $ip6forwarding;
postinstall now checks for this

Revision 1.36 / (download) - annotate - [select for diffs], Wed Mar 27 07:37:56 2002 UTC (22 years ago) by lukem
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

clean up warning

Revision 1.35 / (download) - annotate - [select for diffs], Sun Mar 24 17:58:21 2002 UTC (22 years, 1 month ago) by sommerfeld
Branch: MAIN
Changes since 1.34: +18 -18 lines
Diff to previous 1.34 (colored)

Improve information density of output -- add the dozen -reject routes
with "route -q" since they are always the same and convey no useful
information.

While we're here, use sysctl -qw instead of sysctl -w >/dev/null

Revision 1.34 / (download) - annotate - [select for diffs], Fri Mar 22 04:33:59 2002 UTC (22 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

Correct the "direction" of the barrier dependencies (DAEMON, LOGIN,
NETWORKING, and SERVERS) by specifying that certain things should
come BEFORE a given barrier, rather than having the barrier REQUIRE
a service.  This allows scripts to be removed without having to
edit the barrier dependencies.

As discussed on tech-userlevel, and approved by Luke.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jul 22 13:33:59 2001 UTC (22 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

seperate -> separate

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jul 8 07:16:00 2001 UTC (22 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.31: +2 -6 lines
Diff to previous 1.31 (colored)

After itojun's recent RTF_CLONED and other changes, it's not necessary to
add a route from an alias address to 127.0.0.1, so remove that code.
It's still necessary to configure lo0 -> 127.0.0.1 though, so emphasize that.

Revision 1.11.4.7 / (download) - annotate - [select for diffs], Wed May 2 22:52:22 2001 UTC (22 years, 11 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.11.4.6: +107 -96 lines
Diff to previous 1.11.4.6 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Pull up revisions 1.29-1.30 (via patch, requested by itojun):
  Add support for "!" and "#" syntax in /etc/ifconfig.*.

Revision 1.11.4.6 / (download) - annotate - [select for diffs], Tue Mar 20 18:19:27 2001 UTC (23 years, 1 month ago) by he
Branch: netbsd-1-5
Changes since 1.11.4.5: +8 -1 lines
Diff to previous 1.11.4.5 (colored) to branchpoint 1.11 (colored)

Pull up revision 1.15 (requested by bouyer):
  Add support for cloning network devices (e.g. vlan).  Fixes
  PR#12398.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Mar 2 03:07:29 2001 UTC (23 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

comment correction: 127/8 must not leave the node (RFC1122)

Revision 1.30 / (download) - annotate - [select for diffs], Sat Jan 13 13:26:36 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.29: +94 -92 lines
Diff to previous 1.29 (colored)

move IPv6 mode/route configuration upwards, so that !rtsol in
/etc/ifconfig.* is meaningful.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jan 11 17:56:16 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.28: +14 -2 lines
Diff to previous 1.28 (colored)

extend /etc/ifconfig.xxN, for comment lines (#) and shell script
fragment (!).  inspired by openbsd /etc/hostname.xxN.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jan 3 17:54:05 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.27: +4 -2 lines
Diff to previous 1.27 (colored)

add $ip6sitelocal, to control installation of reject route for fec0::/10.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Nov 26 06:46:42 2000 UTC (23 years, 4 months ago) by nisimura
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

More cautious about undefined hostname check in terms of what hostname(1)
returns.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Nov 22 04:20:04 2000 UTC (23 years, 5 months ago) by nisimura
Branch: MAIN
Changes since 1.25: +3 -4 lines
Diff to previous 1.25 (colored)

I believe in that the facy nested quotes was intended to skip blank
lines, but am not sure it is allowed as a standard practice of the
/etc/ifconfig.xxN file.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Nov 21 16:12:48 2000 UTC (23 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

un-break.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Nov 21 09:59:02 2000 UTC (23 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

minor typo in previous

Revision 1.23 / (download) - annotate - [select for diffs], Tue Nov 21 09:38:06 2000 UTC (23 years, 5 months ago) by nisimura
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Shell programming police for sophistication; take #2.  Handle the
case when the filename expansion results in no match more gracefully.
Far less costy than invoking a new process.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Nov 21 08:39:50 2000 UTC (23 years, 5 months ago) by nisimura
Branch: MAIN
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored)

Shell programming police for sophistication.  It's not necessary
to enclose `prog` backquote command substitution with double quotes
as it produces a quoted string.  Other changes are pending this time.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Nov 17 04:19:06 2000 UTC (23 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.20: +3 -4 lines
Diff to previous 1.20 (colored)

- replace   `IFS='.'; set -- $int; echo $2`   with   ${int##*.}
- can't use $configured_interfaces in network_stop(), so use `ifconfig -lu`
  instead

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 9 05:02:14 2000 UTC (23 years, 6 months ago) by nisimura
Branch: MAIN
Changes since 1.19: +16 -22 lines
Diff to previous 1.19 (colored)

- avoid -a or -o logical operator of test command as possible.  They would
  introduce syntaxical ambiguousity, and having concatenation with && or
  || costs nothing because our sh(1) has test(1) builtin.
- use elif construct to avoid dungling else-ifs.
- while-read construct does not need enclosed by a sub-shell.
- variable detection could be done in eval args=\$ifconfig_$int
- smart variable substitution occationally saves lines and extra command
  invocations.

Revision 1.11.4.5 / (download) - annotate - [select for diffs], Wed Aug 23 12:27:27 2000 UTC (23 years, 8 months ago) by lukem
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.11.4.4: +2 -2 lines
Diff to previous 1.11.4.4 (colored) to branchpoint 1.11 (colored)

pull up rev 1.19:
REQUIRE ipfilter and ipsec

approved: thorpej

Revision 1.19 / (download) - annotate - [select for diffs], Mon Aug 21 23:35:20 2000 UTC (23 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

REQUIRE ipfilter and ipsec

Revision 1.11.4.4 / (download) - annotate - [select for diffs], Wed Aug 9 19:09:44 2000 UTC (23 years, 8 months ago) by lukem
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.11.4.3: +3 -3 lines
Diff to previous 1.11.4.3 (colored) to branchpoint 1.11 (colored)

pull up the following
approved by: thorpej

	etc/rc.d/DAEMON		1.3
	etc/rc.d/LOGIN		1.3
	etc/rc.d/NETWORK	1.1
	etc/rc.d/SERVERS	1.2
	etc/rc.d/cron		1.4
	etc/rc.d/dhclient	1.6
	etc/rc.d/dmesg		1.4
	etc/rc.d/inetd		1.5
	etc/rc.d/lkm1		1.3
	etc/rc.d/lkm2		1.3
	etc/rc.d/lkm3		1.4
	etc/rc.d/motd		1.3
	etc/rc.d/mountcritlocal		1.3-1.4
	etc/rc.d/mountcritremote	1.3
	etc/rc.d/mountd		1.7
	etc/rc.d/network	1.12 1.14
	etc/rc.d/ntpdate	1.4
	etc/rc.d/ppp		1.3-1.4
	etc/rc.d/pwcheck	1.3
	etc/rc.d/rpcbind	1.4
	etc/rc.d/sshd		1.3-1.5
	etc/rc.d/swap1		1.5
	etc/rc.d/swap2		1.4
	etc/rc.d/sysdb		1.3-1.4
	etc/rc.d/syslogd	1.5-1.6
	etc/rc.d/systemfs	REMOVE
	etc/rc.d/virecover	1.3
	etc/rc.d/wscons		1.4
	etc/rc.d/xdm		1.5

summary:

* reword descriptions
* add '# KEYWORD: shutdown' to some of these scripts so that only they get run
  at shutdown time.  now, only scripts with the keyword `shutdown' will be
  run by /etc/rc.shutdown, which speeds up shutdown and makes it more robust
* add new dummy dependancy `NETWORK' to be REQUIREd by services which need
  networking to be operational before starting, and use as appropriate.
  NETWORK depends upon network and dhclient.
* move the guts of systemfs into mountcritlocal
* replace the dependancy on systemfs with mountcritremote, and remove the
  former.
* SERVERS now also depends upon ppp
* move recreating /var/run/utmp from mountcritlocal (where /var/run is
  purged but /usr/bin/install is not available) to sysdb.
  problem noted by Matthias Drochner.
* share the same load_rc_config between the lkm* scripts
* network: Don't warn that $hostname isn't set if the hostname is already set.
* network: reenable stop_cmd now that network doesn't get run at shutdown
* add sshd startup script
* use "load_rc_config swap" for swap1 and swap2
* syslog requires databases from sysdb which creates /var/run/utmp.

Should fix PRs:
    [install/9853] [bin/10002] [misc/10349] [port-i386/10633] [misc/10641]

Revision 1.11.4.3 / (download) - annotate - [select for diffs], Thu Aug 3 12:07:27 2000 UTC (23 years, 8 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.11.4.2: +14 -8 lines
Diff to previous 1.11.4.2 (colored) to branchpoint 1.11 (colored)

pullup 1.16 -> 1.18 (approved by releng-1-5)

 > we need to sleep for IPv6 DAD period, before and after rtsol.
 > (they are for stability in boot-time configuration)
 > comment from perry.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Aug 2 13:59:11 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

fix comment on DAD wait

Revision 1.17 / (download) - annotate - [select for diffs], Tue Aug 1 20:49:11 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.16: +14 -8 lines
Diff to previous 1.16 (colored)

we need to sleep for IPv6 DAD period, before and after rtsol.
(they are for stability in boot-time configuration)
comment from perry.

Revision 1.11.4.2 / (download) - annotate - [select for diffs], Tue Jul 25 19:12:20 2000 UTC (23 years, 8 months ago) by jdolecek
Branch: netbsd-1-5
Changes since 1.11.4.1: +3 -1 lines
Diff to previous 1.11.4.1 (colored) to branchpoint 1.11 (colored)

pullup rev. 1.16 from trunk (approved by thorpej):
for ifaliases, add some comments about format without netmask beeing supported
for compatibility only

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 25 18:47:28 2000 UTC (23 years, 8 months ago) by jdolecek
Branch: MAIN
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored)

the format without netmask is supported for compatibility only and not
specifying it is discouradged, actually
also add comments about this fact to etc/rc.d/network, for people who
don't read manpages :)

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jul 20 19:43:10 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +8 -1 lines
Diff to previous 1.14 (colored)

Build a list of cloning network interfaces to configure, as well
as normal interfaces.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jul 17 15:25:42 2000 UTC (23 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

reenable stop_cmd now that network doesn't get run at shutdown

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Tue Jun 20 17:53:32 2000 UTC (23 years, 10 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.11: +1 -7 lines
Diff to previous 1.11 (colored)

remove ip6defaultif configuration, which is not for common installation.
approved by: releng-1-5

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jun 20 16:48:19 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.12: +1 -7 lines
Diff to previous 1.12 (colored)

remove ip6defaultif configuration.  because:
- ndp is in /usr/sbin, chokes on NFS-mounted /usr installation
- the option is just for IPv6 specification geek, not for normal users

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jun 20 08:34:33 2000 UTC (23 years, 10 months ago) by enami
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Don't warn that $hostname isn't set if the hostname is already set.

Revision 1.11 / (download) - annotate - [select for diffs], Sat May 13 08:45:07 2000 UTC (23 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf.
This allows us or a user to change the configuration file method in
one place - rc.subr - without having to edit all of the rc.d/* files.

Revision 1.10 / (download) - annotate - [select for diffs], Tue May 9 10:49:26 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.9: +5 -1 lines
Diff to previous 1.9 (colored)

do not let 127.0.0.0/8 leave the node.  based on RFC1122.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Apr 29 06:01:08 2000 UTC (23 years, 11 months ago) by veego
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Fix the last change so it doesn't fail due too a missing '; then'.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 28 00:13:39 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +8 -2 lines
Diff to previous 1.7 (colored)

Don't warn about $hostname not being set if $dhclient == YES; it's quite
likely that we'll be getting the hostname via DHCP when it runs.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Apr 20 02:12:04 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.6: +1 -7 lines
Diff to previous 1.6 (colored)

rtsol is not a daemon.  rtsol.d should have been killed by rc.d/rtsold.
(correct me if i'm wrong)

Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 11 05:03:24 2000 UTC (24 years ago) by lukem
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

make `stop' a no-op, so that the network doesn't disappear at an
inconvenient time during boot.

this may be fixed a different way in the long term...  (not that the old
rc.shutdown supported stopping the network, or could i really see a
practical use for allowing it at this stage, but in the future someone
might want the functionality i've just disabled).

Revision 1.5 / (download) - annotate - [select for diffs], Sat Apr 8 23:02:54 2000 UTC (24 years ago) by tsarna
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Mar 17 17:41:01 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.3: +35 -6 lines
Diff to previous 1.3 (colored)

correct reject route installations for IPv6.  improve comments.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Mar 12 04:21:26 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.2: +8 -1 lines
Diff to previous 1.2 (colored)

disallow packets to malicious 6to4 prefix, based on
http://playground.iijlab.net/i-d/draft-itojun-ipv6-transition-abuse-00.txt

Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 11 20:13:42 2000 UTC (24 years, 1 month ago) by veego
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Fix the network_stop function so it doesn't fails due to missing ]['s.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Mar 10 11:53:24 2000 UTC (24 years, 1 month ago) by lukem
Branch: TNF
CVS Tags: rc-d-2000-03-10
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

rc.d scripts derived from /etc/rc

Revision 1.1 / (download) - annotate - [select for diffs], Fri Mar 10 11:53:24 2000 UTC (24 years, 1 month ago) by lukem
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>