mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
firmware: refactor for clarity
This commit is contained in:
parent
5f60391b63
commit
72cae559d7
@ -39,14 +39,14 @@ echo "Currently running $(opnsense-version) at $(date)" >> ${LOCKFILE}
|
||||
${TEE} ${LOCKFILE} < ${PIPEFILE} &
|
||||
if opnsense-update -u > ${PIPEFILE} 2>&1; then
|
||||
${TEE} ${LOCKFILE} < ${PIPEFILE} &
|
||||
if ! /usr/local/etc/rc.syshook upgrade > ${PIPEFILE} 2>&1; then
|
||||
# aboort pending upgrades
|
||||
opnsense-update -e >> ${LOCKFILE} 2>&1
|
||||
else
|
||||
if /usr/local/etc/rc.syshook upgrade > ${PIPEFILE} 2>&1; then
|
||||
echo '***REBOOT***' >> ${LOCKFILE}
|
||||
sleep 5
|
||||
/usr/local/etc/rc.reboot
|
||||
fi
|
||||
|
||||
# aboort pending upgrades
|
||||
opnsense-update -e >> ${LOCKFILE} 2>&1
|
||||
fi
|
||||
|
||||
echo '***DONE***' >> ${LOCKFILE}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user