summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/sysctl
Commit message (Collapse)AuthorAgeFilesLines
* Do not exit with non-zero return code if sysctl.conf or sysctl.conf.local filesdemon2014-01-211-1/+3
| | | | | | are absent. Approved by: delphij
* rc.d/sysctl: Fix error messages about unknown OIDs.jilles2013-03-221-3/+3
| | | | | | | | | | | | | There are three situations where the sysctl script is called: 1. "start", very early 2. "lastload", near the end of rc 3. "reload", at admin request while the system is booted Ignore unknown OIDs in situation 1 because kernel modules may not be loaded yet and complain about them in situations 2 and 3. PR: conf/174595 Submitted by: Olivier Smedts
* Teach sysctl(8) about parsing a file (while I'm there also give itdelphij2012-12-131-37/+13
| | | | | | | capability of parsing both = and : formats). Submitted by: hrs (initial version, bugs are mine) MFC after: 3 months
* This change does the following for the scripts that run up throughdougb2010-05-191-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FILESYSTEMS (the default early_late_divider): 1. Move sysctl to run first 2. Move as many BEFOREs to REQUIREs as possible. 3. Minor effect, move hostid_save from right before mdconfig to right after. A lot of the early scripts make use of sysctl one way or another so running this first makes a lot of sense given that system-critical values are often placed in sysctl.conf. My original purpose for working on this was that while doing some debugging on other stuff I noticed that the order of execution was different in the first pass through the early scripts and the second. In practice that doesn't matter because the scripts are not executed the second time. However this _can_ result in problems if the difference in the rcorder moves a script from the late section to the early section in the second pass (which would mean the script would not get executed). So, I wanted to make the order of execution of the scripts in the early section more deterministic. In the course of debugging the ordering problems I noticed that moving the BEFOREs to REQUIREs prevented the changes in order from the first pass to the second pass without having to make any substantial changes. (Of course it's no secret that I think BEFORE should be avoided as much as possible, but this is a good example of why.) Reviewed by: silence on freebsd-rc@ MFC after: 8.1-RELEASE
* Integrate rc.d/network_ipv6 into rc.d/netif:hrs2009-09-121-1/+1
| | | | | | | | | | - Add rc.d/stf and rc.d/faith for stf(4) and faith(4). - Remove rc.d/auto_linklocal and rc.d/network_ipv6. - Move rc.d/sysctl to just before FILESYSTEMS because rc.d/netif depends on some sysctl variables. Reviewed by: brooks MFC after: 3 days
* Oops, restore the recent changes to make startup messages quieter.jhb2008-07-311-1/+3
|
* Parse sysctl settings from /etc/sysctl.conf.local after /etc/sysctl.confjhb2008-07-311-10/+15
| | | | | | | | if it exists. This mirrors similar behavior for /boot/loader.conf and /etc/rc.conf. Obtained from: Yahoo! MFC after: 1 week
* As previously discussed, add the svn:executable property to all scriptsdougb2008-07-161-0/+0
|
* The sysctl(8) program exits on some errors and only emits warnings onmtm2008-06-231-1/+3
| | | | | | | | | others. In the case where it displayed warnings it would still return succesfully. Modify it so that it returns the number of sysctls that it was not able to set. Make use of this in rc.d to display only *unsuccessfull* attempts to set sysctls.
* 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.
* Quote the parameter to sysctl(1), allowing to use whitespaces inglebius2006-05-241-1/+1
| | | | | | | sysctl values. PR: conf/96509 Submitted by: Gregory Bond <gnb itga.com.au>
* Remove the requirement for the FreeBSD keyword as it no longermtm2004-10-071-1/+0
| | | | | | | makes any sense. Discussed with: dougb, brooks MFC after: 3 days
* o Rename the start command to conform to rc.d style.mtm2004-01-171-4/+4
| | | | | o Move the additional commands list to the end of the variable initialization to conform to rc.d style
* Luke Mewburn has indicated that they (NetBSD) are not interestedmtm2004-01-171-20/+4
| | | | | | | | | 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.
* Make ipfilter, ipnat, ipmon, and ipfs behave more like the old rc.mtm2003-04-241-1/+1
| | | | | | | | | | | | | 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 two typos. Using "-eq" instead of "=" in a [ caused an error whenfenner2002-10-251-2/+2
| | | | | | | | an entry in /etc/sysctl.conf didn't exist. Fixing this exposed a minor typo "exits" vs. "exist". However, there doesn't appear to be any provision to run this with the "lastload" argument, meaning that the error will never appear.
* Convert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation ongordon2002-09-061-1/+1
| | | | OS-dependent case switches.
* Merge in all the changes that Mike Makonnen has been maintaining for agordon2002-07-181-55/+64
| | | | | | | | 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
* Distinguish between first and last passes of rc.sysctl, and only setdougb2002-03-171-1/+17
| | | | mibs whose values are not already what is specified in sysctl.conf.
* sysctl(8) doesn't need '-w' to write to sysctl variables anymore.jhb2001-07-171-1/+1
|
* Add copyright notices. Other systems have been barrowing our /etc filesobrien2000-10-081-1/+28
| | | | w/o giving any credit.
* Use shell matching instead of sed(1) to strip comments and blank lines.chris2000-08-091-8/+10
| | | | | | | Since it doesn't depend on anything in /usr, it should work with a NFS-mounted /usr partition. Thanks to Bruce Evans to bringing this to my attention.
* Add and document support for handling comments and blank lineschris2000-01-161-3/+6
| | | | | | in /etc/sysctl.conf. Reviewed by: imp, jkh
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Style clean-up:sheldonh1999-08-251-2/+2
| | | | | | | | | | | | | | | | * All variables are now embraced: ${foo} * All comparisons against some value now take the form: [ "${foo}" ? "value" ] where ? is a comparison operator * All empty string tests now take the form: [ -z "${foo}" ] * All non-empty string tests now take the form: [ -n "${foo}" ] Submitted by: jkh
* Add two features:imp1999-03-281-0/+13
log_in_vain: log_in_vain turns on logging for packets to ports for which there is no listener. rc.sysctl: A generic way to set sysctl values. It reads /etc/syslog.conf and sets values based on that. No /etc/syslog.conf has been checked in yet, and I've not added this to the makefile yet until I get more feedback. Reviewed by: -current, -hackers and bde especially
OpenPOWER on IntegriCloud