You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
584 B

  1. # vim: set ft=sh sw=2 et :
  2. # when leaving the console clear the screen to increase privacy
  3. if [ "$SHLVL" = 1 ]; then
  4. [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
  5. fi
  6. # When leaving the console clear the screen to increase privacy. Also clear the
  7. # scroll-back buffer by switching to tty63 and back.
  8. case "$(tty)" in
  9. /dev/tty[0-9])
  10. t=$(v=`tty` ; echo ${v##*ty})
  11. clear
  12. chvt 63; chvt "$t"
  13. ;;
  14. /dev/tty[0-9][0-9])
  15. t=$(v=`tty` ; echo ${v##*ty})
  16. clear
  17. chvt 63; chvt "$t"
  18. ;;
  19. *)
  20. ;;
  21. esac