From a6cb81e7d8e1c050de67178532c938c3e5c11ffe Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 22 Feb 2009 15:27:55 +0100 Subject: [PATCH 1/1] Fallback to clear if clear_console is not found in logout. --- shell/logout | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/shell/logout b/shell/logout index 069603d..1a87b04 100644 --- a/shell/logout +++ b/shell/logout @@ -2,9 +2,13 @@ # When leaving the console clear the screen to increase privacy. Taken from -# Debian default bash files. Thanks. +# Debian default bash files and modified. Thanks. if [ "$SHLVL" = 1 ]; then - [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q + if [ -x /usr/bin/clear_console ]; then + /usr/bin/clear_console -q + else + clear + fi fi # vim: ft=sh -- 2.44.2