From dd7857bb9458713038436d8c07640307836850f4 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 16 Nov 2011 13:37:39 +0100 Subject: [PATCH] shell/logout: Always clear the console, independent of $SHLVL. --- shell/logout | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/shell/logout b/shell/logout index 10affa1..491f594 100644 --- a/shell/logout +++ b/shell/logout @@ -3,12 +3,11 @@ # When leaving the console clear the screen to increase privacy. Taken from # Debian default bash files and modified. Thanks. -if [ "$SHLVL" = 1 ]; then - if [ -x /usr/bin/clear_console ]; then - /usr/bin/clear_console -q - else - clear - fi + +if [ -x /usr/bin/clear_console ]; then + /usr/bin/clear_console -q +else + clear fi # Make sure sudo rights are removed. -- 2.45.2