#!/bin/sh # # Harry Hoffman # # **************************************************************************** # Service definition section. # **************************************************************************** service="Disable serial break" servfil="disable-serial-break.vfy" KBD="${JASS_ROOT_DIR}/etc/default/kbd" #----------------------------------------------------------------------------- servhdr_txt=" Description of Service or Function: The serial break should be disabled by default to keep someone from accidently sending the system to the ok prompt. Rationale for Verification Check: The serial break can cause major problems if invoked improperly. Imagine a term-server environment that sends a ctrl-break to all of your Sun systems while rebooting itself! Determination of Compliance: This script check /etc/default/kbd to ensure the KEYBOARD_ABORT variable is set to alternate. " # **************************************************************************** # Check processing section. # **************************************************************************** start_verify "${servfil}" "${service}" "${servhdr_txt}" if check_fileExists ${KBD} 1 LOG ; then if check_fileContentsExist ${KBD} "^KEYBOARD_ABORT=alternate" 1; then logSuccess "Serial Break is set to alternate in ${KBD}." else logFailure "Serial Break is not set to alternate in ${KBD}." fi else logFileNotFound ${KBD} 1 fi finish_verify