summaryrefslogtreecommitdiffstats
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Change usb devd events from fake attach to a notify. The ugen device is not athompsa2010-04-212-71/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | proper device_t so it faked the devctl event to appear like one, this is now a notify which allows more information to be passed. We notify for both the device attach/detach and for each usb interface. A devd rule can now match on the interface properties, including composite devices which may have a uvideo interface and also usound and possibly uhid too. An example to match a umass device with a scsi subclass and BBB protocol would be notify 100 { match "system" "USB"; match "subsystem" "INTERFACE"; match "type" "ATTACH"; match "intclass" "0x08"; match "intsubclass" "0x06"; match "intprotocol" "0x50"; action ... }; The old attach devctl event has been retained for the moment to make merging to 8.1 easier. This was never compatible with 7.x or earlier due to the ugen regex change needed. Reviewed by: warner MFC after: 1 week
* indent.pro example: actually install the sample fileavg2010-04-211-0/+2
|
* Use ubthidhci_enable="NO" to avoid the bootup warning.rpaulo2010-04-171-1/+1
| | | | | Submitted by: Jilles Tjoelker <jilles@stack.nl> MFC after: 3 days
* In case a user wants to configure only an IPv6 link-local addressdougb2010-04-171-0/+1
| | | | add an example that shows how to do it.
* Add ubthidhci.rpaulo2010-04-161-0/+4
| | | | MFC after: 2 days
* If a service is running, make 'stop' work even if ${name}_enabledougb2010-04-151-3/+3
| | | | | | | | is not set. PR: conf/130414 Submitted by: Dominic Fandrey <kamikaze@bsdforen.de> Reviewed by: freebsd-rc@
* Use spaces instead of tab for indent here.pjd2010-04-151-2/+2
|
* Fix grammar in comment.ume2010-04-111-3/+3
| | | | | Submitted by: "b. f." <bf1783__at__googlemail.com> MFC after: 3 days
* Add rc.d/ubthidhci. This small script calls usbconfig(1) to change a USBrpaulo2010-04-092-0/+45
| | | | | | Bluetooth controller from HID mode to HCI mode. MFC after: 1 week
* Improve the handling of IPv6 configuration in rc.d. The ipv6_enabledougb2010-04-095-127/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and ipv6_ifconfig_<interface> options have already been deprecated, these changes do not alter that. With these changes any value set for ipv6_enable will emit a warning. In order to avoid a POLA violation for the deprecation of the option ipv6_enable=NO will still disable configuration for all interfaces other than lo0. ipv6_enable=YES will not have any effect, but will emit an additional warning. Support and warnings for this option will be removed in FreeBSD 10.x. Consistent with the current code, in order for IPv6 to be configured on an interface (other than lo0) an ifconfig_<interface>_ipv6 option will have to be added to /etc/rc.conf[.local]. 1. Clean up and minor optimizations for the following functions: ifconfig_up (the ipv6 elements) ipv6if ipv6_autoconfif get_if_var _ifconfig_getargs The cleanups generally were to move the "easy" tests earlier in the functions, and consolidate duplicate code. 2. Stop overloading ipv6_prefer with the ability to disable IPv6 configuration. 3. Remove noafif() which was only ever called from ipv6_autoconfif. Instead, simplify and integrate the tests into that function, and convert the test to use is_wired_interface() instead of listing wireless interfaces explicitly. 4. Integrate backwards compatibility for ipv6_ifconfig_<interface> into _ifconfig_getargs. This dramatically simplifies the code in all of the callers, and avoids a lot of other code duplication. 5. In rc.d/netoptions, add code for an ipv6_privacy option to use RFC 4193 style pseudo-random addresses (this is what windows does by default, FYI). 6. Add support for the [NO]RTADV options in ifconfig_getargs() and ipv6_autoconfif(). In the latter, include support for the explicit addition of [-]accept_rtadv in ifconfig_<interface>_ipv6 as is done in the current code. 7. In rc.d/netif add a warning if $ipv6_enable is set, and remove the set_rcvar_obsolete for it. Also remove the latter from rc.d/ip6addrctl. 8. In /etc/defaults/rc.conf: Add an example for RTADV configuration. Set ipv6_network_interfaces to AUTO. Switch ipv6_prefer to YES. If ipv6_enable is not set this will have no effect. Add a default for ipv6_privacy (NO). 9. Document all of this in rc.conf.5.
* Disambiguate `IPs' to a more specific term.ume2010-04-081-6/+8
| | | | | Submitted by: Garrett Cooper <yanefbsd__at__gmail.com> MFC after: 3 days
* firewall_trusted_ipv6 was gone by r202460. Remove stale comment aboutume2010-04-071-6/+1
| | | | it as well.
* In wait_for_pids(), pwait(1) can return when the process exits, butdougb2010-04-061-1/+4
| | | | | | | | | | | | | | | | still exists as a zombie. The 'kill -0' test in this function can therefore return true even if the process isn't actually running. This could lead to wait_for_pids() printing an endless string of the pid number until the zombie finally exits. Solve this problem by moving the sleep up to after the 'kill -0' test, but only after we've run through the function once already. In the common case (only one pid in the list) this will always do the right thing. On the rare occasion that there is more than one pid in the list this will sleep 1 second per zombie process which will allow that process, and any other in the list a chance to exit. While I'm here, local'ize the variables that this function uses.
* Add -k to the recommended fingerd(8) command line.des2010-04-011-2/+2
| | | | MFC after: 2 weeks
* Add .snap to daily_clean_tmps_ignore; /tmp/.snap ist not supposed tojoerg2010-03-231-1/+1
| | | | | | be auto-removed (and /tmp is a filesystem of its own now by default). MFC after: 3 days
* Slightly improve my previous commit.ed2010-03-191-1/+1
| | | | | | Just comment out the atrun line instead of completely removing it. It is not a bad idea to leave it as a reference in case someone decides to install atrun by hand afterwards.
* Don't add the atrun-line to the crontab when MK_AT is set.ed2010-03-191-0/+3
| | | | | | This prevents spurious calls to sendmail every 5 minutes. MFC after: 1 week
* Use an unique directory name instead of hardcoded /tmp/.diskless.jh2010-03-131-2/+2
| | | | | | | | | A malicious user could create a file named /tmp/.diskless and cause the script to misbehave. PR: conf/141258 Reported by: Jon Passki MFC after: 1 week
* Improve the contents of termcap.small.ed2010-03-071-86/+74
| | | | | | | | | - Remove dosansi, pc and pc3. I suspect nobody ever needs these. - Add vt100, screen and xterm-color. This file is now probably more than sufficient in most cases, even for common use outside single user mode, where people just use the console driver, a graphical terminal emulator and a terminal multiplexer.
* Install termcap.small.ed2010-03-071-1/+1
| | | | | | | | | | | | | | | Right now we have a termcap.small in the tree, but we don't install it. If we do install this file by default, it is more likely for applications to work in single user mode. I am not entirely happy with the contents of this file. In my opinion we should remove the `dosansi', `pc' and `pc3' entries and replace them with `vt100' in case someone uses a serial console. The file does already have entries for `cons25' and `xterm', which is used most often. Requested by: brucec
* Implement the idea of parallel-only-at-start-time in a cleaner, moredougb2010-03-071-15/+10
| | | | | | rc.d'ish way. Not objected to by: netchild
* Redirect stdin from /dev/null when starting a jail:netchild2010-03-052-2/+19
| | | | | | | | | | | | | | | | | | | | At least in RELENG_7 this fixes some start problems for some programs from the ports. It is also more correct, as a jail shall not expect input (interactivity) from the jail-host. Revert the current behavior of starting jails in the background and make it optional only for the start of jails (jail_parallell_start=YES in rc.conf): - The stop can not be done in the background, the system needs to wait until everything is stopped correctly before it can reboot or power down. - The start should not be done in parallel by default, this not only breaks POLA for people comming from RELENG_x, it may also break a dependency chain with other scripts in the jail-host, which need to do some stuff after the jails are up and running (e.g. hardlinking a mysql socket from one jail into another one). Discussed on: freebsd-jails@
* Add the shutdown KEYWORD.ume2010-02-271-1/+1
| | | | | Pointed out by: dougb MFC after: 3 days
* usr/share/examples/bc no longer exists.antoine2010-02-271-2/+0
|
* Add missing KEYWORD line.pjd2010-02-191-0/+1
| | | | Pointed out by: dougb
* Create a directory for hast's examples.delphij2010-02-191-0/+2
|
* Remove some lines left over by accident.pjd2010-02-181-4/+0
|
* Please welcome HAST - Highly Avalable Storage.pjd2010-02-183-1/+35
| | | | | | | | | | | | | | | | | | | | | | HAST allows to transparently store data on two physically separated machines connected over the TCP/IP network. HAST works in Primary-Secondary (Master-Backup, Master-Slave) configuration, which means that only one of the cluster nodes can be active at any given time. Only Primary node is able to handle I/O requests to HAST-managed devices. Currently HAST is limited to two cluster nodes in total. HAST operates on block level - it provides disk-like devices in /dev/hast/ directory for use by file systems and/or applications. Working on block level makes it transparent for file systems and applications. There in no difference between using HAST-provided device and raw disk, partition, etc. All of them are just regular GEOM providers in FreeBSD. For more information please consult hastd(8), hastctl(8) and hast.conf(5) manual pages, as well as http://wiki.FreeBSD.org/HAST. Sponsored by: FreeBSD Foundation Sponsored by: OMCnet Internet Service GmbH Sponsored by: TransIP BV
OpenPOWER on IntegriCloud