summaryrefslogtreecommitdiffstats
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* Be robust to a bogus script specification or contentsyar2007-06-041-11/+24
| | | | | | | when figuring out what the real interpreter is for an interpreted command. That is, check whether we can read the script file in the first place and, if so, make sure we got a valid shebang line from it.
* Finish making resolv ordering deterministic by REQUIRE'ing it here.dougb2007-06-021-1/+1
|
* Add REQUIRE netif to make ordering more deterministic, and to make suredougb2007-06-021-5/+6
| | | | | | we have a fighting chance of having useful stuff from DHCP. Tighten up the code a little, and fix whitespace issues.
* s/tabs/spaces/ru2007-06-011-53/+53
|
* Remove more vestiges of /usr/X11R6, but leave mtree for portmgr.dougb2007-05-298-9/+9
|
* Remove X11R6 from the default PATH to join the new world order.dougb2007-05-291-1/+1
| | | | | While I'm here, make the default PATH match that in the csh profile, and login.conf.
* Now that a separate /usr/X11R6 directory is no longer in fashion,dougb2007-05-292-6/+6
| | | | | | | | | | | stop looking there for things like rc.d and periodic. This avoids duplicating effort when /usr/X11R6 is a symlink to /usr/local, which it is by default now. It is not anticipated at this time that we will MFC this change, since we'd like to avoid breaking legacy systems. However, there is a fix for /etc/rc.subr in the works to avoid running any rc.d scripts twice which we should be able to MFC.
* Fix indentation.rse2007-05-241-1/+1
|
* Remove two superfluous trailing semicolons.rse2007-05-242-2/+2
|
* Remove two unnecessary and useless sub-shell constructs.rse2007-05-242-2/+2
|
* Do not attempt to load the kernel module when checking if an interface exists.thompsa2007-05-231-1/+1
| | | | | | | This would cause pseudo network modules to be reloaded again when trying to unload the first time if any cloned interfaces exist. MFC after: 2 weeks
* backout filter of Nil UUID as the boot loader code already filters out Nil ↵rse2007-05-221-4/+0
| | | | UUIDs (see src/sys/boot/i386/libi386/smbios.c:smbios_setuuid for details)
* Remove the ugly csh(1) based UUID lower-case translation hack fromrse2007-05-221-1/+0
| | | | | | /etc/rc.d/hostid now that we switched the origin of the UUID (variable smbios.system.uuid as provided by the i386 BIOS code) to already provide a standard conforming lower-case UUID text representation.
* Cleanup style by consistently using braces around variable expansion andrse2007-05-211-1/+5
| | | | | apply an addition from Andrew Thompson <thompsa> for filtering out the special "Nil" UUID (all zeros) which would be a useless host UUID.
* Adjust UUID lower-case translation from straight-forward tr(1)rse2007-05-211-1/+2
| | | | | | | | | | usage to an equivalent csh(1) usage as tr(1) stays in /usr/bin and /etc/rc.d/hostid has just the root filesystem (and this way mainly the tools in /bin) available. I've chosen csh(1) here as the string manipulation tools available in /bin is extremely limited and the (only) alternative ed(1) usage would have been a lot more complicated or even might require a temporary file.
* The standardized textual representation of UUIDs according to RFC 4122rse2007-05-211-2/+2
| | | | | | | | and ISO/IEC-9834-8:2005 is with LOWER-CASE hexadecimal characters only, so translate the (usually upper-case and this way not conforming) representation of the BIOS UUID when reading it. Also be more strict about the valid characters in the textual representation by checking for just the hexadecimal characters.
* Update /etc/protocols with IANA list updated 2007-02-12grog2007-05-201-15/+19
| | | | | | | | Gotcha: Number 48 (mhrp) is replaced with dsr. Submitted by: edwin PR: config/112732 MFC after: 2 weeks
* White space fixes only: replace spaces with tabs.grog2007-05-201-10/+10
|
* Bring the well known ports of /etc/services into sync with the IANAgrog2007-05-201-24/+284
| | | | | | | | | | | | | | | | | list. This is only for the well known known ports (port 1-1023) for tcp and udp only. Changes: - Removed "problems" comments around port 57, 77 and 87 - Removed audionews (port 114) - Added imap3 (port 220) - Removed yak-chat (port 258) - Removed concert (port 786) - Added a lot of new allocations Submitted by: edwin
* Add templates for new GCC 4.2 C++ include files hierarchy.kan2007-05-191-3/+57
|
* o Implement the stop_boot subroutine [1]. This subroutine can be used bymtm2007-05-186-23/+26
| | | | | | | | | | | | | | | | | scripts in rc.d to stop rc(8) from booting into multi-user mode when a critical or severe error condition is encountered. o Modify scripts in etc/rc.d that already implemented this functionality independently. o Document it. [1] - This subroutine was implemented in FreeBSD in rc.d/fsck. I moved it to rc.subr(8). Our version differs slightly in that it takes an optional argument to stop the boot even if "autoboot" is not set. Obtained from: NetBSD MFC after: 2 weeks
* o Use the --detach option to kdc(8) instead of using the shellmtm2007-05-171-3/+3
| | | | | | | | | background operator '&'. PR: conf/102722 o No need to include $kerberos5_server_flags in $command_args as rc.subr(8) will take care of this.
* The precmd routine does not need to check whether the command should bemtm2007-05-173-24/+30
| | | | | | | | | | "forced". If some pre-condition is not met, it should fail as it normally does and rc.subr(8) will make the appropriate decision. Incidentally, the previous behaviour had a bug where the "force" flag was respected only when checking rc.conf(5) knobs. The flag was ignored when verifying the rpcbind(8) dependency. MFC after: 2 weeks
* Add SIP-related ports.grog2007-05-161-0/+6
| | | | | Obtained from: IANA list of reserved ports. Reviewed by: edwin@
* White space tidy-up.grog2007-05-161-4/+4
|
* o Install 480.status-ntpd.maxim2007-05-141-0/+1
| | | | Pointed out by: Henrik Brix Anders
* o Add a script to check ntpd(8) state. Default is off.maxim2007-05-132-0/+31
| | | | | | PR: conf/112604 Submitted by: Oliver Fromme MFC after: 1 month
* Move options that do not have anything to do with routing out ofmtm2007-05-022-42/+43
| | | | | rc.d/routing and in to rc.d/netoptions. Also instead of saying "TCP options" say "IP options".
* When rc.d/NETWORKING included this script in its REQUIRE line, a circularmtm2007-05-021-1/+1
| | | | | | | | dependency was introduced because this script had rc.d/localpkg (which is *after* rc.d/NETWORKING) in its REQUIRE line. From an examination of its contents it seems that only the availability of a local filesystem is necessary for this script to function properly.
* When zfs dataset has jailed=on property, it won't be mounted withpjd2007-04-221-3/+34
| | | | | | | 'zfs mount -a' from the main system - this is by design, as mountpoint may be set to dangerous value. This all means, that such file system has to be mounted from within a jail. To make it easier, reorganize rc.d/zfs script so it can be used from within a jail.
* Quick kill posix4 directory.trhodes2007-04-181-2/+0
| | | | Submitted by: rodrigc (BSD.include.dist).
* When org.freebsd:swap property is set to 'on' on a ZVOL, use is as a swappjd2007-04-151-0/+18
| | | | | | device. Discussed with: des
* Remove the shutdown keyword. It just adds noise to the shutdown process.des2007-04-131-1/+1
|
* - Create an empty /etc/zfs/exports file when zfs_enable="YES" and we don'tpjd2007-04-131-2/+5
| | | | | | | | | | NFS-share anything. This way we can safely start mountd with /etc/zfs/exports and mountd won't complain. Pointed out by: ceri - Move 'zfs volinit' before 'zfs mount -a' and 'zfs volfini' after 'zfs unmount -a'.
* mountd(8) was changed to only abort when all given exports files cannot bepjd2007-04-131-1/+1
| | | | open, so we not longer has to check if /etc/zfs/exports exists.
* o Look for a zfs(1) exports file only if it exists and is readable. Ifmtm2007-04-131-1/+2
| | | | | we don't do this and the file doesn't exist mountd(8) will abort. o The mountd(8) daemon creates a pidfile, so use it.
* - Add IANA-assigned ports for HP status & services daemon and I/O backendstas2007-04-111-0/+4
| | | | | | | | | daemon. The FreeBSD port print/hplip currently provides these services. PR: conf/99593 Submitted by: Anish Mistry <amistry@am-productions.biz> Approved by: maxim MFC after: 1 week
* - Add IANA assigned port for amanda server control over tcp. Thestas2007-04-111-0/+1
| | | | | | | | | current misc/amanda-server code uses it. PR: conf/111050 Submitted by: Charles Sprickman<spork@bway.net> Approved by: maxim MFC after: 1 week
* - Sync service names with IANA (http://www.iana.org/assignments/port-numbers).stas2007-04-111-4/+4
| | | | | | | | | | | | | The registration names for 5222(tcp,udp) and 5269(tcp,udp) was changed to xmpp-client and xmpp-server correspondingly. This inconsistency causes problems to applications developed on other systems, as they tries to use port numbers from /etc/services as fallback. PR: conf/100606 Submitted by: Ralph Meijer <freebsd-gnats2@ralphm.ik.nu> Approved by: maxim MFC after: 1 week
* If available, take UUID from smbios.system.uuid, if not fall back topjd2007-04-111-1/+18
| | | | | | | | | software-generated UUID. Store the result in /etc/hostid and use it in the future. Perform simple UUID format check, as there is a lot of hardware with broken UUIDs. The check should be improved to also eliminate fake UUIDs like 00000000-0000-0000-0000-000000000000. Requested by: many
* Add a pfsync_syncpeer option to /etc/defaults/rc.conf and rc.conf(5),keramida2007-04-102-1/+7
| | | | | | | | | | | which can be used to turn off multicast pfsync support, and enable the transmission of directed PFSYNC (IP protocol: 240) packets to a specific "sync peer" host. PR: conf/111225 Submitted by: Bas van Beek <bas@tobin.nl> Approved by: mtm, mlaier MFC after: 2 weeks
* Add rc.d/hostid script (turned on by default) which on first boot generatespjd2007-04-093-1/+83
| | | | | | | | | | | | UUID and stores it in /etc/hostid ($hostid_file) as well as sets kern.hostuuid and kern.hostid sysctls on every boot. Hostid can be reset using '/etc/rc.d/hostid reset' command. Hostid generation and setting can be turned off by setting variable hostid_enable to "NO" in /etc/rc.conf. Reviewed by: mlaier, rink, brooks, rwatson
* Apply "additional TCP options" earlier.des2007-04-092-2/+1
| | | | | Requested by: andre@ MFC after: 1 week
* FILESYSTEMS requires root, so requiring both of them is redundant.des2007-04-097-7/+7
|
* Add zfs to REQUIRE.des2007-04-091-1/+1
|
* Move zpool.cache from /etc/zfs/ to /boot/zfs/, so we can keep it onpjd2007-04-081-0/+2
| | | | dedicated /boot/ file system and use ZFS for the root file system.
* There can be many reasons of VDEV failures, so log type as well.pjd2007-04-081-1/+1
|
* Provide sample entries to handle ZFS problem reports.pjd2007-04-081-0/+31
| | | | It'd be nice to send them via e-mail...
* Add ZFS periodic scripts that monitors status of ZFS pools.pjd2007-04-063-0/+40
| | | | Submitted by: des
* - Add ZFS startup script.pjd2007-04-064-1/+43
| | | | | | | Submitted by: des - When starting mountd(8) and ZFS is enabled, add /etc/zfs/exports file. - Update rc.conf(5).
OpenPOWER on IntegriCloud