freebsd-dev/etc
Ed Schouten 4c2c7b2c94 Make init(8) slightly more robust when /dev/console is missing.
If the environment doesn't offer a working /dev/console, the existing
version of init(8) will simply refuse running rc(8) scripts. This means
you'll only have a system running init(8) and nothing else.

Change the code to do the following:

- Open /dev/console like we used to do, but make it more robust to use
  O_NONBLOCK to prevent blocking on a carrier.
- If this fails, use /dev/null as stdin and /var/log/init.log as stdout
  and stderr.
- If even this fails, use /dev/null as stdin, stdout and stderr.

So why us this useful? Well, if you remove the `getpid() == 1' check in
main(), you can now use init(8) inside jails to properly execute rc(8).
It still requires some polishing, as existing tools assume init(8) has
PID 1.

Also it is now possible to use use init(8) on `headless' devices that
don't even have a serial boot console.
2012-03-14 16:22:09 +00:00
..
bluetooth
defaults Increase the default shutdown timer to 90 seconds. This will allow 2012-02-17 07:59:37 +00:00
devd Add backlight control to ATI-graphics PowerBooks and iBooks. 2012-02-26 13:45:25 +00:00
etc.amd64
etc.arm
etc.i386
etc.ia64
etc.mips
etc.pc98
etc.powerpc
etc.sparc64
gss
mail
mtree Reapply 227753 (xlocale cleanup), plus some fixes so that it passes build 2012-03-04 15:31:13 +00:00
namedb Spelling fixes for etc/ 2012-01-07 16:10:32 +00:00
pam.d
periodic Add an option to 404.status-zfs (enabled by default) to list all 2012-02-08 00:08:21 +00:00
ppp
rc.d Rather than printing the output from route add for all FIBs just print them 2012-03-04 18:53:35 +00:00
root
sendmail
amd.map
apmd.conf
auth.conf
crontab
csh.cshrc
csh.login
csh.logout
ddb.conf
devd.conf - Add support for a "!" character in regex matching in devd(8). It inverts 2011-10-26 02:11:28 +00:00
devfs.conf Remove example for linking /dev/vga to /dev/ttyv0, this hasn't been 2011-10-27 20:39:20 +00:00
dhclient.conf
disktab
fbtab
freebsd-update.conf
ftpusers
gettytab
group
hosts
hosts.allow
hosts.equiv
hosts.lpd
inetd.conf
libalias.conf
login.access
login.conf
mac.conf Spelling fixes for etc/ 2012-01-07 16:10:32 +00:00
Makefile Style: prefer the use of line continuations to += 2012-02-17 01:21:08 +00:00
man.alias
master.passwd
minfree
motd
netconfig
netstart /etc/netstart: remove invocation of dhclient 2012-01-20 17:25:15 +00:00
network.subr Fix several glitches in IPv6-related knobs: 2012-01-22 10:57:32 +00:00
networks
newsyslog.conf Make init(8) slightly more robust when /dev/console is missing. 2012-03-14 16:22:09 +00:00
nls.alias
nscd.conf
nsmb.conf
nsswitch.conf
ntp.conf
opieaccess
pccard_ether
pf.os
phones
portsnap.conf Now that the portsnap buildbox is generating the raw bits for INDEX-9, 2011-10-12 03:29:12 +00:00
printcap
profile
protocols
rc Hide stty(1) errors. 2012-03-14 16:10:39 +00:00
rc.bsdextended
rc.firewall Spelling fixes for etc/ 2012-01-07 16:10:32 +00:00
rc.initdiskless Spelling fixes for etc/ 2012-01-07 16:10:32 +00:00
rc.resume Revert r211288 and move the logic to the acpi_timer itself. 2012-02-08 20:31:42 +00:00
rc.sendmail
rc.shutdown Hide stty(1) errors. 2012-03-14 16:10:39 +00:00
rc.subr Put the signal trap output to standard error instead of standard output. 2012-02-18 00:46:18 +00:00
rc.suspend Revert r211288 and move the logic to the acpi_timer itself. 2012-02-08 20:31:42 +00:00
regdomain.xml
remote
rpc
services Spelling fixes for etc/ 2012-01-07 16:10:32 +00:00
shells
snmpd.config
sysctl.conf
syslog.conf
termcap.small