Nominate myself for the useful-use-of-cat award.

pkg detects if its stdout is a terminal and prints many 'done%' lines,
which are useful for interactive use on modern terminals, but not so
useful on a serial console; piping through cat silences these.
This commit is contained in:
Colin Percival 2014-09-19 19:02:33 +00:00
parent 5f3d4a8b59
commit 6f5a8e737f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368591
2 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= firstboot-pkgs PORTNAME= firstboot-pkgs
PORTVERSION= 1.3 PORTVERSION= 1.4
CATEGORIES= sysutils CATEGORIES= sysutils
MASTER_SITES= # none MASTER_SITES= # none
DISTFILES= # none DISTFILES= # none

View file

@ -32,12 +32,14 @@ firstboot_pkgs_run()
# Bootstrap if necessary # Bootstrap if necessary
if ! pkg -N 2>/dev/null; then if ! pkg -N 2>/dev/null; then
env ASSUME_ALWAYS_YES=YES pkg bootstrap env ASSUME_ALWAYS_YES=YES pkg bootstrap |
cat
fi fi
# Install requested packages, if any # Install requested packages, if any
if ! [ -z "$firstboot_pkgs_list" ]; then if ! [ -z "$firstboot_pkgs_list" ]; then
env ASSUME_ALWAYS_YES=YES pkg install $firstboot_pkgs_list </dev/null env ASSUME_ALWAYS_YES=YES pkg install $firstboot_pkgs_list </dev/null |
cat
fi fi
# Count rc.d scripts again # Count rc.d scripts again