From ff6597b83297b91cfe25d383e4e86ac0f643c8fa Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Mon, 21 Oct 2019 21:29:51 -0600 Subject: [PATCH] Update packages when run in maint mode --- README.md | 6 ++++-- boxctl.sh | 2 ++ man/boxctl.8 | 6 ++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 319bc22..6372030 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,10 @@ The options are as follows: > Run maintenance tasks. > This includes deleting unused dependencies using > pkg\_delete(1). -> And installing / updating firmware using -> fw\_update(1). +> And installing / updating packages and firmware using +> fw\_update(1) +> and +> pkg\_add(1). **-n** diff --git a/boxctl.sh b/boxctl.sh index c2f8cd8..b30a7d9 100755 --- a/boxctl.sh +++ b/boxctl.sh @@ -289,6 +289,8 @@ fi if [ $MAINTENANCE == 1 ]; then msg 0 "cleaning up unused packages" _ssh ${RUN_USER}@${SERVER} "/usr/sbin/pkg_delete $V -a" + msg 0 "updating installed packages" + _ssh ${RUN_USER}@${SERVER} "/usr/sbin/pkg_add $V -u" msg 0 "installing firmware updates" _ssh ${RUN_USER}@${SERVER} "/usr/sbin/fw_update $V -a" fi diff --git a/man/boxctl.8 b/man/boxctl.8 index b564bd3..68e6b1c 100644 --- a/man/boxctl.8 +++ b/man/boxctl.8 @@ -55,8 +55,10 @@ This skips the 'intelligent' diff and service restart mode. Run maintenance tasks. This includes deleting unused dependencies using .Xr pkg_delete 1 . -And installing / updating firmware using -.Xr fw_update 1 . +And installing / updating packages and firmware using +.Xr fw_update 1 +and +.Xr pkg_add 1 . .It Fl n Dry run. This will only print the commands that will be run.