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() {
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
echo "===> Updating binpatch(es)"
pkg_add ${pkg_opt} ${_BP}
_CMD="pkg_add ${pkg_opt} ${_BP}"
echo "==> ${_CMD}"
${_CMD}
fi
}
update_pkg() {
local _CMD
echo "===> Updating package(s)"
pkg_add -u ${pkg_opt}
_CMD="pkg_add -u ${pkg_opt}"
echo "==> ${_CMD}"
${_CMD}
}
update_fw() {
local _CMD
echo "===> Updating firmware(s)"
fw_update ${fw_opt}
_CMD="fw_update ${fw_opt}"
echo "==> ${_CMD}"
${_CMD}
}
while getopts 'SUn' arg; do