summaryrefslogtreecommitdiffstats
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* Add a jails directory in the examples sectionjulian2010-10-241-0/+2
| | | | MFC after: 2 weeks
* No longer install /etc/manpath.config since the BSDL man utilitiesgordon2010-10-041-4/+0
| | | | | | don't use it. Approved by: wes (mentor)
* Commit the rest of r213270.emaste2010-09-291-0/+1
| | | | Thanks to Anonymous <swell dot k at gmail.com> for spotting this.
* /etc/rc.d/defaultroute currently bails immediately if all interfacesemaste2010-09-291-17/+26
| | | | | | | | | | | | | | | | set to use DHCP have no carrier. This can cause grief as it may take some time for link to be established, and defaultroute may terminate before this happens. Introduce a defaultroute_carrier_delay variable and then wait that long in defaultroute before bailing if no interfaces have carrier. With the default settings defaultroute will wait for five seconds for this, and the original 30 second wait for a default route to appear is unchanged. Note that there is in discussion an alternative approach to the broader problem of waiting for DHCP-configured routes. However, this change addresses a real problem in the current defaultroute script. Discussed on: freebsd-rc@
* Prefer echo over printfimp2010-09-271-1/+1
|
* Add gptboot script that is responsible for:pjd2010-09-242-1/+77
| | | | | | | | | | | | - looking for partition with 'bootonce' attribute alone (without 'bootme' attribute), removing it and logging that we successfully booted from this partition. - looking for partitions with 'bootfailed' attribute, removing it and logging that we failed to boot from this partition. Reviewed by: arch (Message-ID: <20100917234542.GE1902@garage.freebsd.pl>) Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com MFC after: 2 weeks
* Split $ipv6_prefer into $ip6addrctl_policy and $ipv6_activate_all_interfaces.hrs2010-09-134-13/+44
| | | | | | | | | | | | | | | | | | | The $ip6addrctl_policy is a variable to choose a pre-defined address selection policy set by ip6addrctl(8). The keyword "ipv4_prefer" sets IPv4-preferred one described in Section 10.3, the keyword "ipv6_prefer" sets IPv6-preferred one in Section 2.1 in RFC 3484, respectively. When "AUTO" is specified, it attempts to read /etc/ip6addrctl.conf first. If it is found, it reads and installs it as a policy table. If not, either of the two pre-defined policy tables is chosen automatically according to $ipv6_activate_all_interfaces. When $ipv6_activate_all_interfaces=NO, interfaces which have no corresponding $ifconfig_IF_ipv6 is marked as IFDISABLED for security reason. The default values are ip6addrctl_policy=AUTO and ipv6_activate_all_interfaces=NO. Discussed with: ume and bz
* Localize $_punct_c in get_if_var() and whitespace clean-ups.hrs2010-09-131-6/+6
| | | | Based on: changes in r206408 by dougb
* - Check some specific IFs first in ipv6_autoconfif().hrs2010-09-131-18/+15
| | | | | | - $ipv6_enable supports YES|TRUE|ON|1 as in checkyesno(). Based on: changes in r206408 by dougb
* Add $ipv6_privacy to support net.inet6.ip6.use_tempaddr. Note that thishrs2010-09-132-0/+9
| | | | | | will be replaced with a per-IF version later. Based on: changes in r206408 by dougb
* Fix $ipv6_network_interfaces and set it as AUTO by default.hrs2010-09-132-23/+12
| | | | Based on: changes in r206408 by dougb
* Revert changes in r206408.hrs2010-09-135-105/+132
| | | | Discussed with: dougb, core.5, and core.6
* Create the var/run/wpa_supplicant directory where the wpa_supplicantbschmidt2010-09-101-0/+2
| | | | | | RC script wants to save a pidfile for each interface. MFC after: 2 weeks
* Avoid to try to remove suj journal file (.sujournal) and conventionaldaichi2010-09-051-0/+3
| | | | snapshot directory (.snap) from cleartmp rc.d script.
* o Correct typo.maxim2010-08-251-1/+1
| | | | | Submitted by: Bojidara Marinchovska via -stable MFC after: 1 week
* - Change the threshold from 'running next scrub the <value+1>th day after thenetchild2010-08-251-3/+3
| | | | | | | | last one' to 'running next scrub the <value>th day after the last one'. - Improve wording. Requested by: jhell <jhell@DataIX.net> MFC after: 1 week
* Fix silly typo on my part (s/quotas_enable/quota_enable/)dougb2010-08-141-1/+1
| | | | Submitted by: ed
* Give people some warning before removing enable_quotasdougb2010-08-141-2/+2
|
* Consistently use full pathnames for external commands.jkim2010-08-132-7/+7
|
* Do not fork a subshell unnecessarily.jkim2010-08-131-2/+2
|
* Enforce ACPI timer as the timecounter hardware before we change sleep statejkim2010-08-132-0/+18
| | | | | | unless it is the current timer. When we have resumed successfully, restore the previous timecounter hardware if it was changed earlier. Only the ACPI timer is guaranteed to increase monotonically between S-state changes.
* Connect the new script 490.status-pkg-changes (see r210863)olli2010-08-101-0/+4
| | | | | | | to the build, so it gets actually installed. Approved by: des (mentor) MFC after: 17 days
* - Fixes to the chkportsum script to handle better some special cases,gabor2010-08-101-9/+9
| | | | | | | like spaces in filename Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> Approved by: delphij (mentor)
* Add a daily script to the periodic framework that reportsolli2010-08-052-0/+46
| | | | | | | | | | | | | | | | | | changes to the package database, i.e. any packages that have been added, updated or deleted in the past 24 hours. The format is intentionally simple and concise. That information is particularly useful on servers that are maintained by multiple administrators. When someone adds, updates or deletes a package, the others will see it in the daily periodic output. This script is disabled by default. PR: conf/113913 Submitted by: olli Approved by: des (mentor) MFC after: 3 weeks
* /etc/rc.d/network_ipv6 was deprecated.ume2010-08-051-1/+0
| | | | Reported by: Alex Kozlov <spam__at__rm-rf.kiev.ua>
* /etc/rc.d/ip6fw was deprecated.ume2010-08-051-1/+0
| | | | | Reported by: Alex Kozlov <spam__at__rm-rf.kiev.ua> MFC after: 3 days
* Allow starting /etc/rc.d/ipmon if ipnat is enabled but ipfilter is notjilles2010-08-011-1/+1
| | | | | | | | | | | (in /etc/rc.conf). This fixes an apparent confusion between test(1) and sh(1) syntax for AND/OR. PR: conf/149036 Submitted by: pluknet MFC after: 1 week
* Add a (disabled) configuration line to enable the snmp_wlan(3) module.syrinx2010-07-261-0/+6
| | | | Sponsored by: The FreeBSD Foundation
* Upgrade our Clang in base to r108428.ed2010-07-201-1/+1
| | | | | | | | | This commit merges the latest LLVM sources from the vendor space. It also updates the build glue to match the new sources. Clang's version number is changed to match LLVM's, which means /usr/include/clang/2.0 has been renamed to /usr/include/clang/2.8. Obtained from: projects/clangbsd
* - Add a periodic script, which can be used to find installed ports' files withgabor2010-07-193-0/+72
| | | | | | | | mismatched checksum PR: conf/124641 Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> Approved by: delphij (mentor)
* Fix spelling of "weirdo" in /etc/gettytab comment.bcr2010-07-121-1/+1
| | | | | | | PR: docs/148500 Submitted by: Warren Block (wblock at wonkity dot com) Approved by: ed@ MFC after: 1 week
* Use spaces, not tabs.pjd2010-06-281-5/+5
|
* Bring in Kris Moore's pc-sysinstall shell script from PC-BSD. Thisimp2010-06-241-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shell script is the back end logic necessary for an installer. It contains both query routines to allow a front-end installer to present reasonable choices to the user and also action routines which allow the front end installer to put a FreeBSD distribution onto a disk. It supports installing onto the usual suspects, as well as advanced features like Mirroring, ZFS, Encryprion and GPT labels. While this is only the back-end of the installer, it can do unattended scripted installations. In PC-BSD's world view, all installations are scripted and all the front-end does is write the script. As such, it is useful in its own right. This has been extensively tested over the past several releases of PC-BSD. However, differences between that environment and FreeBSD suggest there will be a period of shake-out while those differences are discovered and corrected. A text-based front-end is in the works. For the GUI-based front-end, you can use the PC-BSD distribution. Kris' BSDcan paper on pc-sysinstall is linked off his talk on the BSDcan site: http://www.bsdcan.org/2010/schedule/events/173.en.html The man page is written by Josh Paetzel, and I wrote the Makefiles for the FreeBSD integration. Kris wrote the rest. This represents version r7010 in the PC-BSD repo. http://svn.pcbsd.org/pcbsd/current/pc-sysinstall Submitted by: kris@ Sponsored by: iX Systems
* Remove vestiges of 'slip'.brian2010-06-191-7/+2
| | | | | | PR: 145648 Submitted by: alexbestms at wwu dot de and spam at rm-rf dot kiev dot ua MFC after: 1 week
* Add the AAAA address for i.root-servers.netdougb2010-06-181-2/+3
|
* - add the zfs scrub scriptnetchild2010-06-171-1/+5
| | | | | | | - move the zfs status script into the MK_ZFS conditional to respect WITHOUT_ZFS Noticed by: Andrzej Tobola <ato@iem.pw.edu.pl>
* device.hints: do install when WITHOUT_BOOT is setavg2010-06-161-0/+2
| | | | | Discussed with: imp MFC after: 2 weeks
* Add a periodic zfs scrub script.netchild2010-06-151-0/+86
| | | | | | | | | | | | | | | | | Features: - configurable amount of days between scrubs (default value or per pool) - do not scrub directly after pool creation (respects the configured number of days between scrubs) - do not scrub if a scrub is in progress - tells how to see the status of the scrub - tells how many days since the last scrub if it skips the scrubbing - warns if a non-existent pool is specified explicitely (default: no pools specified -> all currently imported pools are handled) - runs late in the periodic run to not slow down the other periodic daily scripts Discussed on: fs@
* Merge from tbemd, with minor tweaks:imp2010-06-131-1/+5
| | | | | | Search from most specific ($MACHINE) to least specific ($MACHINE_CPUARCH) when looking for the tty file to use. Also add an .error case if none exist.
* Hook clang into the build on i386/amd64/powerpc.rdivacky2010-06-091-0/+4
| | | | Approved by: ed (mentor)
* Add a new build option, MAN_UTILS. This option lets you control buildingjkim2010-05-192-2/+2
| | | | | | | | | utilities and related support files for manual pages, which were previously controlled by MAN. For POLA, the default depends on MAN, i.e., WITHOUT_MAN implies WITHOUT_MAN_UTILS and WITH_MAN implies WITH_MAN_UTILS. This patch is slightly improved by me from: PR: misc/145212
* This change does the following for the scripts that run up throughdougb2010-05-1911-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Prevent unloading a kld for a driver that has subinterfaces (vlan and/orjhb2010-05-171-9/+3
| | | | | | | | | | | | | | | | | wlan interfaces) from being automatically reloaded via devd shutdown event handlers. - Revert part of my previous changes to call ifn_stop on subinterfaces when an interface is detached. It is better to destroy the interfaces first so that an 'ifconfig foo0.blah down' doesn't result in ifconfig auto-loading if_foo.ko. The ifconfig command will not be invoked if foo0.blah is gone when ifn_stop() is called. Furthermore, it is not necessary to explicitly invoke ifn_stop() after the subinterface is destroyed as devd will already do that. - Pass -n to ifconfig when destroying interfaces so that destroying a cloned interface does not kldload any drivers. Reviewed by: dougb MFC after: 4 days
* Change the commented msgs examples in profile/csh.login from -f to -q.jilles2010-05-152-4/+4
| | | | | | | | | | | Starting something that wants input on login seems strange and can be dangerous. In some configurations, causing output can be bad, but it is not as dangerous. I do not expect this msgs invocation to be uncommented often. PR: conf/96015 MFC after: 4 days
* Remove trailing white space. No functional changes.dougb2010-05-1424-62/+62
|
* Non-GCC gcc compatible compilers may provide the same multimedia intrinsicobrien2010-05-121-0/+4
| | | | | | | headers as GCC, but of their own implementation. So put the GCC ones into their own header "namespace". Requested by: ed
* Import of liblzma, xz, xzdec, lzmainfo from vendor branchmm2010-05-101-0/+2
| | | | | | | | Add support for xz and lzma to lesspipe.sh (xzless, lzless) Bump __FreeBSD_version Approved by: delphij (mentor) MFC after: 2 weeks
* Make address assignment via ipv6_prefix_IF work againdougb2010-05-041-0/+2
|
* In the case where named_chroot_autoupdate is NOT set, butdougb2010-04-281-4/+10
| | | | | | | | | | | | | | | | named_chrootdir IS set, named-checkconf fails because it cannot find the conf file. Fix this by making checkconf a variable that includes "-t $named_chrootdir" as needed. Notice of the bug and suggested direction for the fix from [1]. Using required_files for named.conf is overkill ever since I added the named-checkconf call, so rather than update the logic to handle the case described above, remove it. This also handles the case where named_chroot_autoupdate IS set but the symlink doesn't exist yet. PR: conf/145904 Submitted by: J R Matthews
* Better handling of ipv6_default_interface usingume2010-04-262-23/+13
| | | | | | | net.inet6.ip6.use_defaultzone=1. Now, it works IPv6 link-local unicast addresses as well as IPv6 link-local multicast addresses. MFC after: 1 week
OpenPOWER on IntegriCloud