From: Simon Ruderich Date: Sun, 22 Feb 2009 14:27:55 +0000 (+0100) Subject: Fallback to clear if clear_console is not found in logout. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=a6cb81e7d8e1c050de67178532c938c3e5c11ffe;p=config%2Fdotfiles.git Fallback to clear if clear_console is not found in logout. --- 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