firmware: reroot is buggy, revert and rename while at it

This commit is contained in:
Franco Fichtner 2021-02-03 08:58:36 +01:00
parent 97d9feb6d8
commit efd880b9db
3 changed files with 10 additions and 10 deletions

2
plist
View File

@ -125,7 +125,7 @@
/usr/local/etc/rc.syshook.d/backup/20-netflow
/usr/local/etc/rc.syshook.d/backup/20-rrd
/usr/local/etc/rc.syshook.d/carp/20-openvpn
/usr/local/etc/rc.syshook.d/early/05-update
/usr/local/etc/rc.syshook.d/early/05-upgrade
/usr/local/etc/rc.syshook.d/early/10-configd
/usr/local/etc/rc.syshook.d/early/15-templates
/usr/local/etc/rc.syshook.d/early/20-backup

View File

@ -1,9 +0,0 @@
#!/bin/sh
# Perform major updates
# reroot only when we swapped the base files
if opnsense-update -B; then reboot -r; fi
# reboot fully to start up including boot screen
if opnsense-update -P; then reboot; fi

View File

@ -0,0 +1,9 @@
#!/bin/sh
# Perform major updates
for STAGE in B P; do
if opnsense-update -${STAGE}; then
reboot
fi
done