summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/ipnat
Commit message (Collapse)AuthorAgeFilesLines
* Prepare for the removal of set_rcvar() by changing the rcvar=dougb2012-01-141-1/+1
| | | | | | | | | | | | | | | assignments to the literal values it would have returned. The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such as embedded ones. During the discussion on freebsd-rc@ a preference was expressed for using ${name}_enable instead of the literal values. However the code portability concept doesn't really apply since there are so many other places where the literal name has to be searched for and replaced. Also, using the literal value is also a tiny bit faster than dereferencing the variables, and every little bit helps.
* Make the pf and ipfw firewalls start before netif, just like ipfilterdougb2009-06-011-1/+0
| | | | | already does. This eliminates a logical inconsistency, and a small window where the system is open after the network comes up.
* Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d filesdougb2007-12-081-1/+0
| | | | | with theirs, so this information doesn't need to be in the live file. Having it in our CVS history is enough.
* Use $required_modules wherever suitable. Use load_kld() in specialyar2006-12-311-18/+2
| | | | cases. So we get rid of quite a few lines of duplicated code.
* Remove the requirement for the FreeBSD keyword as it no longermtm2004-10-071-1/+1
| | | | | | | makes any sense. Discussed with: dougb, brooks MFC after: 3 days
* Mark scripts as not usable inside a jail by adding keyword 'nojail'.pjd2004-03-081-1/+1
| | | | Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
* Luke Mewburn has indicated that they (NetBSD) are not interestedmtm2004-01-171-19/+0
| | | | | | | | | in keeping the scripts under rc.d in sync with us. So, remove NetBSD specific stuff (which made our scripts more complicated than necessary). The NetBSD ident string will be left intact, both for history and also incase we wish to pull in future versions.
* Luke Mewburn has indicated that they (NetBSD) are not interestedmtm2004-01-171-1/+1
| | | | | | in keeping the scripts under rc.d in sync with us. So, begin removal of NetBSD specific stuff (which made our scripts more complicated than necessary), starting with the NetBSD KEYWORD.
* Change a bogus -n parameter to echo(1).mux2003-11-031-1/+1
|
* Remove trailing whitespacedougb2003-10-131-1/+1
|
* o Make the 'Ip-filter module loaded' messages informationalmtm2003-04-301-3/+3
| | | | | | | o Make 'No ipnat rules' a warning o Remove unecessary ' ..' Approved by: markm (implicit)
* Use $ipnat_program instead of the hardcoded path, which was wronmtm2003-04-241-1/+1
| | | | | | | anyways. Approved by: markm (mentor) (implicit) Submitted by: leafy <leafy@leafy.idv.tw>
* Make ipfilter, ipnat, ipmon, and ipfs behave more like the old rc.mtm2003-04-241-49/+30
| | | | | | | | | | | | | o group them together so they run one right after another o use the NetBSD supplied ipfs script instead of tacking it on to the end of ipnat o Load the ipl module in ipnat and ipfilter, if it's not already loaded o In ipmon and ipnat show a warning if neither ipfilter nor ipnat is enabled or the ipl module is not loaded, and exit Approved by: markm (mentor) (implicit) Tested by: leafy <leafy@leafy.idv.tw>
* Fix "err" usage.fenner2002-10-261-2/+1
| | | | | PR: 44284 Submitted by: Sergey Mokryshev <mokr@mokr.net>
* Fix style bugs:schweikh2002-10-121-2/+2
| | | | | | | | | | * Space -> tabs conversion. * Removed blanks before semicolon in "if ... ; then". * Proper indentation of misindented lines. * Put a full stop after some comments. * Removed whitespace at end of line. Approved by: silence from gordon
* Convert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation ongordon2002-09-061-2/+2
| | | | OS-dependent case switches.
* Merge in all the changes that Mike Makonnen has been maintaining for agordon2002-06-131-14/+66
| | | | | | | | while. This is only the script pieces, the glue for the build comes next. Submitted by: Mike Makonnen <makonnen@pacbell.net> Reviewed by: silence on -current and -hackers Prodded by: rwatson
* Import the NetBSD 1.5 RC system.obrien2001-06-161-0/+33
Note that `rc' and `rc.shutdown' could not be imported because we already have files with those names.
OpenPOWER on IntegriCloud