Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions chkboot-bootcheck
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ if [ ! $(echo "${CHKBOOT_STYLES}" | grep -c "issue") = 0 ]; then
CHKBOOT_CHECK=$(chkboot-check)
if [ "$?" = 1 ]; then echo "${CHKBOOT_CHECK}" >> /etc/issue; fi
fi

# run the alert script, if executable
if [ -x "${CHKBOOT_ALERT_SCRIPT}" ]; then
CHKBOOT_CHECK=$(chkboot-check)
if [ "$?" = 1 ]; then "${CHKBOOT_ALERT_SCRIPT}"; fi
fi
3 changes: 3 additions & 0 deletions chkboot.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ CHANGES_LOG="boot-differences-log"
# profile: executes as a user's terminal session begins
CHKBOOT_STYLES="issue,profile"

#Alert script to run, leave as empty to disable
CHKBOOT_ALERT_SCRIPT=""

#Highlight colour
HIGHLIGHT_COLOUR="31"