Check if /var/run/reboot-required exist.
cat /var/run/reboot-required*** System restart required ***You can also check reboot-required.pkgs.
cat /var/run/reboot-required.pkgslinux-base
dbusYou can edit you startup script to perform the check.
if [ -f /var/run/reboot-required ]; then
cat /var/run/reboot-required
fi