armbian-build/scripts/check_first_login_reboot.sh

10 lines
262 B
Bash

#!/bin/bash
# only do this for interactive shells
if [ "$-" != "${-#*i}" ]; then
if [ -f "/tmp/.reboot_required" ]; then
echo ""
echo -e "[\e[0;91m Kernel was updated, please reboot!\x1B[0m ]"
echo ""
rm "/tmp/.reboot_required"
fi
fi