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:
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
|
@ -1,7 +1,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= firstboot-pkgs
|
||||
PORTVERSION= 1.3
|
||||
PORTVERSION= 1.4
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
|
|
@ -32,12 +32,14 @@ firstboot_pkgs_run()
|
|||
|
||||
# Bootstrap if necessary
|
||||
if ! pkg -N 2>/dev/null; then
|
||||
env ASSUME_ALWAYS_YES=YES pkg bootstrap
|
||||
env ASSUME_ALWAYS_YES=YES pkg bootstrap |
|
||||
cat
|
||||
fi
|
||||
|
||||
# Install requested packages, if any
|
||||
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
|
||||
|
||||
# Count rc.d scripts again
|
||||
|
|
Loading…
Reference in a new issue