1
0
Fork 0
forked from mirrors/openup

More output.

This commit is contained in:
Antoine Jacoutot 2013-08-08 11:17:00 +02:00
commit 59f4095432

20
openup
View file

@ -121,22 +121,34 @@ update_self() {
} }
update_binpatches() { update_binpatches() {
local _BP=$(pkg_info -Q binpatch${REL_INT}-$(arch -s) | sed 's/.[^-]*$//' | sort -u) local _BP _CMD
_BP=$(pkg_info -Q binpatch${REL_INT}-$(arch -s) | sed 's/.[^-]*$//' | sort -u)
if [ -n "$_BP" ]; then if [ -n "$_BP" ]; then
echo "===> Updating binpatch(es)" echo "===> Updating binpatch(es)"
pkg_add ${pkg_opt} ${_BP} _CMD="pkg_add ${pkg_opt} ${_BP}"
echo "==> ${_CMD}"
${_CMD}
fi fi
} }
update_pkg() { update_pkg() {
local _CMD
echo "===> Updating package(s)" echo "===> Updating package(s)"
pkg_add -u ${pkg_opt} _CMD="pkg_add -u ${pkg_opt}"
echo "==> ${_CMD}"
${_CMD}
} }
update_fw() { update_fw() {
local _CMD
echo "===> Updating firmware(s)" echo "===> Updating firmware(s)"
fw_update ${fw_opt} _CMD="fw_update ${fw_opt}"
echo "==> ${_CMD}"
${_CMD}
} }
while getopts 'SUn' arg; do while getopts 'SUn' arg; do