Commit Graph

199 Commits

Author SHA1 Message Date
apb f4970596ba rc_obsolete_vars is a list of pairs, so format it with one pair per line. 2014-12-30 07:02:29 +00:00
wiz 2eb17e07ec Use Nx. 2014-12-21 21:10:13 +00:00
christos e32b8a4e6c PR/49428: Travis Paul: Document x option. 2014-12-21 20:14:33 +00:00
jnemeth a0380aebe4 add powerpc variants to the list of potentially obsolete modules to check 2014-12-16 05:30:40 +00:00
uebayasi e8f227f2a9 Fix previous; obsolete vars are pairs. 2014-12-13 02:35:02 +00:00
uebayasi 2ae7b0d687 postinstall(8): Define long item lists as variables to improve future diff-ability. 2014-12-13 02:30:39 +00:00
uebayasi a7d5e3a9dc Handle obsolete xen/pae-xen kernel modules; reported by John D. Baker. 2014-12-01 02:08:34 +00:00
apb 48c555dba9 Fix tab/space inconsistency in comment. 2014-11-12 19:41:24 +00:00
apb 87504aab72 Change the order of arguments to check_ids, placing the two file names
adjacent to each other.  Also add a comment explaining the "start"
argument and the "SKIP" special value.
2014-11-12 19:31:05 +00:00
martin 146a7e98a7 Make check_ids take an additional argument (the corresponding source
file) and grep that on error for the missing information, so the user
gets all the info needed how to "FIX MANUALLY".
2014-11-11 19:41:38 +00:00
roy c6314d6139 Remove rtsol(8) and rtsold(8) as their functionality is in dhcpcd(8).
Remove rtsol(8) from rc.d/network.
Add -w seconds command to ifconfig to wait for N seconds for until DAD
has finished on all addresses.
Use ifconfig -w in rc.d/network instead of a forced sleep.

As discussed on tech-net@
2014-09-11 13:10:03 +00:00
apb 94b079ef04 In get_makevar, ask make to recursively expand the variable,
not just print the unexpanded value.  This is done by
using make -V '${VAR}' instead of make -V 'VAR'.
2014-08-12 09:12:18 +00:00
apb 02561653c9 Quoting fixes in several eval commands. 2014-08-12 08:32:43 +00:00
apb 1bbb38d5f6 Check for and delete ${DEST_DIR}/@RUNDIR@, not /@RUNDIR@.
Also remove an unnecessary eval in do_dhcpcdrundir and
fix a typo in the description.
2014-08-12 08:28:04 +00:00
roy f356508f3e FONTCONFIG_DIR not existing does not need to be fixed. 2014-08-11 12:49:01 +00:00
apb f80058aa23 Synchronise several shell_quote implementations, and:
* Elide some unnecessary pairs of quotation marks, to improve readability.
  For example, shell_quote "''" is now \'\' instead of ''\'''\'''.
* Don't add quotes around words that contain only safe characters,
  to improve readability.
* LC_COLLATE=C to prevent [a-zA-Z] from matching non-ASCII characters.
* Use ${SED} if defined.
2014-08-04 21:56:30 +00:00
apb 52a5651c02 Use extra="${2-/,}" to use $2 if defined, else default to "/,". 2014-06-16 22:12:30 +00:00
apb 9b3ba6dbb0 Delete trailing slash with "${1%/}", not "${1#/}". 2014-06-16 22:04:39 +00:00
apb 0f5a92d284 Add a new obsolete_stand target, disabled by default,
to delete old files and subdirectories under /stand/${MACHINE}.
2014-06-16 08:59:13 +00:00
apb 7fc31c82f1 Remove stray quotation mark 2014-06-16 08:39:56 +00:00
apb 080bff1a9f In do_sendmail, use unprefix to fix up paths that will be
processed by obsolete_paths.
2014-06-16 08:29:18 +00:00
apb 4478f1a2eb Clarify wording in a comment for obsolete_paths. 2014-06-16 08:28:08 +00:00
apb dc6efbc769 Add bre_quote (copied from etcupdate), and unprefix functions. 2014-06-16 08:21:20 +00:00
apb d7be6cf067 Add SORT and SED variables, in case a host environment needs them. 2014-06-16 07:08:06 +00:00
mrg 4460048395 don't apply "ptyfsoldnodes" if /dev/pts does not exist, even if ptyfs
is listed in /etc/fstab.  without this, postinstall happily removes
all your ptys leaving you with none at all.  return an error if we
have ptyfs in /etc/fstab, but no /dev/pts.
2014-04-25 00:23:26 +00:00
martin 4765e08d28 Fix wrong variable name, PR bin/48647 from Jim Bernard. 2014-03-08 16:36:24 +00:00
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