mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
firmware: fix previous
This commit is contained in:
parent
7e7af55d02
commit
386ea4f4ee
@ -48,13 +48,13 @@ if [ "$PACKAGE" == "all" ]; then
|
||||
elif [ "$PACKAGE" == "maj" ]; then
|
||||
# extract info for major upgrade
|
||||
UPGRADE="/usr/local/opnsense/firmware-upgrade"
|
||||
NAME="does.not.exist"
|
||||
NAME=unknown
|
||||
if [ -f ${UPGRADE} ]; then
|
||||
NAME=$(cat ${UPGRADE})
|
||||
fi
|
||||
# perform first half of major upgrade
|
||||
# (download all + kernel install)
|
||||
if opnsense-update -ur "${NAME}" >> ${PKG_PROGRESS_FILE} 2>&1; then
|
||||
if opnsense-update -ur "${NAME}" >> ${PKG_PROGRESS_FILE} 2>&1; then
|
||||
REBOOT=1
|
||||
fi
|
||||
# second half reboots multiple times,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user