mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
firmware: only reroot on base upgrade #4500
This commit is contained in:
parent
c5521fecac
commit
74efc777fc
@ -1,9 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Perform major updates
|
||||
for STAGE in B P; do
|
||||
if opnsense-update -${STAGE}; then
|
||||
# ideally reroot with `-r', but panics on ZFS
|
||||
reboot
|
||||
fi
|
||||
done
|
||||
|
||||
if opnsense-update -B; then
|
||||
reboot -r
|
||||
fi
|
||||
|
||||
if opnsense-update -P; then
|
||||
# XXX omit eventually?
|
||||
reboot
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user