Commit 9f315cec authored by Franco Fichtner's avatar Franco Fichtner

rc: update glue for upcoming major updates

parent a52ec237
...@@ -227,16 +227,25 @@ fi ...@@ -227,16 +227,25 @@ fi
echo "done." echo "done."
# regenerate groups and users for packages # Regenerate groups and users for packages
/usr/local/etc/rc.recover pkg > /dev/null /usr/local/etc/rc.recover pkg > /dev/null
# Recreate capabilities DB # Recreate capabilities DB
/usr/bin/cap_mkdb /etc/login.conf /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 # Set up the correct php.ini content
/usr/local/etc/rc.php_ini_setup /usr/local/etc/rc.php_ini_setup
# startup configd # Startup configd
/usr/local/etc/rc.d/configd start /usr/local/etc/rc.d/configd start
# Restore backups from previous shutdown (if any) # Restore backups from previous shutdown (if any)
...@@ -247,7 +256,7 @@ echo "done." ...@@ -247,7 +256,7 @@ echo "done."
# Execute the early syshook / plugin commands # Execute the early syshook / plugin commands
/usr/local/etc/rc.syshook early /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..." echo -n "Launching the init system..."
touch /var/run/booting touch /var/run/booting
/usr/local/etc/rc.bootup || exit 1 /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