Commit Graph

173 Commits

Author SHA1 Message Date
jmmv d90ac76afc Fix path to atf-run.hooks after import of atf-0.19.
Problem found by martin@.  Not spotted by me, I think, because I always use
postinstall on an etc.tgz file and forgot about this code path.
2014-02-15 01:54:17 +00:00
skrll 69d52dbe21 Remove harmful whitespace. Now the /var/shm check can succeed quietly. 2014-01-29 12:56:28 +00:00
martin 319a65afc2 Add a check to remove the temporarily (eroneously) created /@RUNDIR@
(PR bin/48529)
2014-01-17 19:06:57 +00:00
njoly b0550d75f0 Skip varshm check if there is no fstab (like in chroots). 2013-12-17 12:51:26 +00:00
martin fe15878cd5 Cosmetics: use "msg" instead of "echo" 2013-12-13 07:37:50 +00:00
martin 0c88e27e4c Add a "varshm" check/fix to make sure /var/shm is mentioned in /etc/fstab
(and add a default of tmpfs with 25% of available ram limit if not).
To avoid the warning but not mount the tmpfs, just comment out the line
for /var/shm.

Also move "obsolete" to the end of the list again, as it should be run
last.
2013-12-05 15:41:23 +00:00
prlw1 4b5976925c Add pkgpath.conf to /etc/defaults check. 2013-09-09 15:04:12 +00:00
htodd 5fcfb3153d And add a skip for the deleted _gpio in uid. 2013-07-14 15:44:00 +00:00
htodd aebf69ca0d Add _rtadvd to uid check as well. 2013-07-14 15:27:12 +00:00
htodd 173d865eac Adding _rtadvd to group check. 2013-07-14 15:17:22 +00:00
christos ba70cbfcf3 don't echo the make command in the output file. 2013-06-17 17:40:17 +00:00
christos 0ebdad6fe7 - missing semicolon
- missing SKIPS
- assignment instead of comparison
2013-06-15 22:53:18 +00:00
christos 56ff42629e more thorough passwd/group checks. 2013-06-11 14:39:07 +00:00
mrg b3bc0e936f implement SOURCEMODE version of "fontconfig". 2013-06-10 20:33:31 +00:00
mrg 63b935973f update do_fontconfig() to update all the conf.avail files. fixes
errors that xkbcomp spews when the X server starts since fontconfig
was updated.
2013-06-06 07:06:42 +00:00
prlw1 281d156eac add _gpio to gid check 2013-05-21 12:07:03 +00:00
yamt 8782935dec try to sync lists of rc.d scripts 2013-05-16 07:37:05 +00:00
ast 0b98a54c44 Make sure that the "to fix, run: ..." instructions actually work cut-and-paste
By default postinstall has mode 644 so /bin/sh or similar needs to be prepended
2012-09-22 09:20:06 +00:00
apb 1de7d5f1b7 Remove the ability to specify multiple colon-separated fiel names with
a single "-s" option.  Multiple "-s" options must now be used instead.
We have been printing a warning about this since 2008-09-14.
2012-08-15 16:21:41 +00:00
apb 74a992e866 Don't rely on stat(1) with format "%SHr" to print the correct names.
That uses devname(3) internally, which doesn't work at all in a cross
build environment, and doesn't do what I thought even in a native
environment.

Instead, parse the device major numbers for the pty master and slave
devices from the output of "MAKEDEV -s pty0" and check those against the
actual device node that we are thinking of removing.
2012-08-15 12:48:19 +00:00
apb 508b448a57 Change do_ptyfsoldnodes to use stat(1) to check whether a file is
a device node of the correct type.  We no longer need to get the
major number from searching the MAKEDEV script, because the output
from stat(1) will contain the strings "tty" or "pty" instead of
the numeric major numbers.  We also no longer rely on "find -ls".
2012-08-14 13:11:24 +00:00
apb 0c31a5f126 Use grep -E and grep -F instead of egrep and fgrep. This reduces the
number of tools that may need to be passed in the environment.
2012-08-14 12:07:57 +00:00
apb beaffa0794 Remove the "stat" shell function (stat op format target value).
It has been unused since revision 1.14 dated 2006-05-30.
2012-08-14 10:38:40 +00:00
martin ff5fcf4714 Cleanup temporary file 2012-08-13 18:22:25 +00:00
martin 1d5deaee0c Make "fix ptyfsoldnodes" more verbose 2012-08-13 15:17:16 +00:00
martin d08b85050c Add a ptyfsoldnodes item that checks/removes old /dev/{p,t}ty* nodes
if ptyfs is used.
2012-08-13 10:20:52 +00:00
kefren 690d3837f6 add ldpd rc.d script here too 2012-06-28 16:34:06 +00:00
jnemeth 220a7d2bb0 add _tss to uid and gid checks 2012-06-01 21:59:06 +00:00
jmmv cfa157d760 Properly find atf configuration files in the source tree. My previous
change dealt properly with etc.tgz only.  Addresses PR bin/45870.
2012-02-29 02:40:28 +00:00
jmmv 7e5c66f341 Populate /etc/atf with any missing files. Fixes PR bin/45870. 2012-02-27 17:56:14 +00:00
apb 90e1171c17 quote SRC_DIR and DEST_DIR everywhere. Also wrap some long lines. 2012-02-22 16:42:07 +00:00
apb 0196d40adb Fix a call to pwd_mkdb in the case that DEST_DIR is the empty string. 2012-02-22 16:27:38 +00:00
nakayama 9e8270494c Pass -d option to pwd_mkdb(8) in order to make databases at proper location. 2012-02-21 12:31:18 +00:00
njoly 91f381dd41 Use msg for indentation. 2012-02-18 17:49:28 +00:00
apb 44652a5537 Add "pwd_mkdb" item, which checks whether /etc/pwd.db is in the
new format, and runs "pwd_mkdb -V 1 /etc/master.passwd" to fix it.
2012-02-17 07:51:20 +00:00
joerg d99b3bd499 Clean up cat pages that are older than the corresponding man pages.
Remove cat page directories that are empty.
2012-02-15 13:01:00 +00:00
tsutsui a7f5216f76 Add an rc.d(8) script for isibootd(8). Taken from ndbootd(8). 2011-12-17 13:37:49 +00:00
tls aae64c95c0 Make the rndsave structure public -- the kernel will learn to read it
and sysinst may learn to write it (since, on some systems, most of
the keyboard input they ever get happens to be during install).  Fix a
couple of minor problems with the random_seed rc script addition.
2011-11-26 01:17:17 +00:00
mrg bffbba31b4 fix the sendmail, mailerconf and atf checks to use ${DEST_DIR}.
add a note about this to the top of the file.
2011-10-07 02:07:56 +00:00
jym a0e5aa6d82 /etc/defaults/rc.conf can be modified at build time by getting additional
arch-specific hooks appended to its end (currently: i386 and amd64).

Handle this case in postinstall(8) by checking whether we are in
$SOURCEMODE or not, and generate the correct rc.conf file on the fly in
case we have to. Otherwise, postinstall(8) may install the default one
obtained from a source directory that does not have the MD hooks
appended to it.

Problem reported by wiz@. Thanks!
2011-09-06 21:39:30 +00:00
jym f618b3bb0d Set $SRC_DIR to its default value at the beginning of main() so that
usage() can print the correct value even when called early.
2011-09-06 14:13:46 +00:00
jym ec521efc45 Check that $TGZMODE is true to deduce that the set is extracted
from a .tgz instead of checking that $SRC_DIR != $SRC_ARG. These variables
can be modified in different places, so it's less error prone.
2011-09-06 14:08:05 +00:00
jmmv dcba4bad03 Check (and fix) that unprivileged-user has been changed from _atf to _tests
in /etc/atf/common.conf.  Requested by martin@.
2011-08-09 18:24:46 +00:00
jmmv bbf950e188 Rename the _atf user to _tests. The _atf name will get obsoleted if/when
we migrate to Kyua (atf v2), so it's better to use a generic name that does
not depend on the specific implementation.  Also, this user has not gone
out yet into any stable release, so we can easily rename it.

Suggested by jruoho@.
2011-08-05 14:43:41 +00:00
plunky ee76f29c49 rcconf_is_set takes a tuple of <script> <variable>, so add
in a couple of missing script names

	network ip6forwarding
	sysctl defcorename

and remove the trailing "sysctl"
2011-07-14 09:35:24 +00:00
plunky 0067012e91 introduce rcvar_is_enabled to test if a rcvar is enabled
use this instead of rcconf_is_set to warn about superseded
rc.d scripts, to silence spurious warnings produced before
/etc/defaults/rc.conf script was updated.

(spurious warnings noted by Martin Husemann)
2011-07-14 09:31:19 +00:00
plunky b52bb12959 provide a new 'bluetooth' rc.d script, to handle Bluetooth configuration
in a simpler manner. This replaces btattach, btconfig, bthcid, btdevctl
and sdpd scripts, and also should not require any configuration settings
other than "bluetooth=YES", though the full range of configurations is
still possible.
2011-05-27 09:28:41 +00:00
martin 4b3298a1fe Invert the chroot/tcpdump/etc test and make it remove the (not needed
anymore) directory.
2011-04-17 13:16:59 +00:00
martin c98db97906 Add a new check to populate /var/chroot/tcpdump/etc 2011-04-11 20:29:50 +00:00
erh b0e49f7e0c Fix the usage of the -s option to mention using it multiple times, rather
than the deprecated colon separated syntax.
2011-03-12 23:04:16 +00:00