Commit 6b1adad4 authored by Franco Fichtner's avatar Franco Fichtner

rc: update glue for upcoming major updates

(cherry picked from commit 9f315cec)
parent 23d1e0ff
......@@ -227,16 +227,25 @@ fi
echo "done."
# regenerate groups and users for packages
# Regenerate groups and users for packages
/usr/local/etc/rc.recover pkg > /dev/null
# Recreate capabilities DB
/usr/bin/cap_mkdb /etc/login.conf
# Perform major updates
for STAGE in B P; do
if opnsense-update -${STAGE}; then
echo "Performed deferred update, rebooting now"
# ideally reroot with `-r', but panics on ZFS
shutdown -or now
fi
done
# Set up the correct php.ini content
/usr/local/etc/rc.php_ini_setup
# startup configd
# Startup configd
/usr/local/etc/rc.d/configd start
# Restore backups from previous shutdown (if any)
......@@ -247,7 +256,7 @@ echo "done."
# Execute the early syshook / plugin commands
/usr/local/etc/rc.syshook early
# let the PHP-based configuration subsystem set up the system now
# Let the PHP-based configuration subsystem set up the system now
echo -n "Launching the init system..."
touch /var/run/booting
/usr/local/etc/rc.bootup || exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment