]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
freebsd-update: Add `updatesready' and `showconfig' commands
authorgrembo <grembo@FreeBSD.org>
Tue, 24 Sep 2019 20:49:33 +0000 (20:49 +0000)
committergrembo <grembo@FreeBSD.org>
Tue, 24 Sep 2019 20:49:33 +0000 (20:49 +0000)
commitae9baa94993454b63744dc89fbc3f748bdc89b86
treef2ad6418561181bd00d7b101bdf6dbeba5962619
parent804541b4e4ba8603e184f8de4aff234d864cca5e
freebsd-update: Add `updatesready' and `showconfig' commands

`freebsd-update updatesready' can be used to check if there are any pending
fetched updates that can be installed.

`freebsd-update showconfig' writes freebsd-update's configuration to
stdout.

This also changes the exit code of `freebsd-update install' to 2 in case
there are no updates pending to be installed and there wasn't a fetch phase
in the same invocation. This allows scripts to tell apart these error
conditions without breaking existing jail managers.

See freebsd-update(8) for details.

PR: 240757, 240177, 229346
Reviewed by: manpages (bcr), sectam (emaste), yuripv
Differential Revision: https://reviews.freebsd.org/D21473
usr.sbin/freebsd-update/freebsd-update.8
usr.sbin/freebsd-update/freebsd-update.sh