1
0
Fork 0
forked from mirrors/openup

Fix output when no binpatch is installed.

This commit is contained in:
Antoine Jacoutot 2013-11-02 11:57:52 +01:00
commit 2eea8f06cb

2
openup
View file

@ -235,7 +235,7 @@ check_vuxml() {
do_i_need_to_reboot() {
# 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)
if [ "${wake_up}" -lt "${kern_bp_time}" ]; then