#!/bin/sh

# Perform major updates

for STAGE in K B P; do
	if opnsense-update -${STAGE}; then
		echo "Rebooting now."

		# continues to the next stage if the reboot was refused
		/usr/local/etc/rc.reboot
	fi
done
