#!/bin/sh

# Perform major updates

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