forked from mirrors/openup
More output.
This commit is contained in:
parent
47bd274ab7
commit
59f4095432
1 changed files with 16 additions and 4 deletions
20
openup
20
openup
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue