forked from mirrors/openup
Fix output when no binpatch is installed.
This commit is contained in:
parent
18645a958b
commit
2eea8f06cb
1 changed files with 1 additions and 1 deletions
2
openup
2
openup
|
|
@ -235,7 +235,7 @@ check_vuxml() {
|
||||||
|
|
||||||
do_i_need_to_reboot() {
|
do_i_need_to_reboot() {
|
||||||
# XXX hardcoded PKG_DBDIR
|
# XXX hardcoded PKG_DBDIR
|
||||||
local kern_bp_time=$(stat -f "%Um" /var/db/pkg/binpatch${_REL_INT}-${_ARCH}-kernel-*)
|
local kern_bp_time=$(stat -qf "%Um" /var/db/pkg/binpatch${_REL_INT}-${_ARCH}-kernel-*)
|
||||||
local wake_up=$(sysctl -n kern.boottime)
|
local wake_up=$(sysctl -n kern.boottime)
|
||||||
|
|
||||||
if [ "${wake_up}" -lt "${kern_bp_time}" ]; then
|
if [ "${wake_up}" -lt "${kern_bp_time}" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue