From 10e8b998511c61e7dd2129f6c6815433cb7679ca Mon Sep 17 00:00:00 2001 From: Alban Vidal Date: Wed, 30 May 2018 12:19:15 +0200 Subject: [PATCH] Add note if reboot is required Signed-off-by: Alban Vidal --- root/.profile.d/01_stats_connexion.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/root/.profile.d/01_stats_connexion.conf b/root/.profile.d/01_stats_connexion.conf index 2da15dc..8907744 100644 --- a/root/.profile.d/01_stats_connexion.conf +++ b/root/.profile.d/01_stats_connexion.conf @@ -47,3 +47,8 @@ echo -e "Swap usage\t:\t$swap_usage" echo -e "Process number\t:\t$processes" echo +# If reboot is required +if [ -f /run/reboot-required ] ; then + echo -e "$(tput setaf 1)\tReboot is required$(tput sgr0)" +fi +