#!/bin/bash white="\e[39m" green="\e[1;32m" red="\e[1;31m" dim="\e[2m" undim="\e[0m" if [ -f /var/run/reboot-required ]; then echo echo -e "${red}<<================= ${green}REBOOT REQUIRED${red} =====================>" echo echo -e "${white}Packages causing reboot:${dim}" cat -n /var/run/reboot-required.pkgs echo -e "${red}<<=======================================================>${undim}" fi