diff --git a/chkboot-bootcheck b/chkboot-bootcheck index 5766925..be105b9 100755 --- a/chkboot-bootcheck +++ b/chkboot-bootcheck @@ -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 diff --git a/chkboot.conf b/chkboot.conf index 7df19e4..320a48d 100644 --- a/chkboot.conf +++ b/chkboot.conf @@ -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"