From 897541c6a941c5e90b33c3ffaebc76d44fb85593 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Fri, 2 Oct 2009 14:44:17 +0000 Subject: Showing correct status messages when starting msec on boot --- msec.init | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/msec.init b/msec.init index 24c2602..f65e5db 100644 --- a/msec.init +++ b/msec.init @@ -30,18 +30,30 @@ case "$1" in if [ "$ENABLE_STARTUP_MSEC" = "yes" ]; then gprintf "Enabling MSEC security policy" /usr/sbin/msec -q - echo_success + if [ $? == 0 ]; then + echo_success + else + echo_failure + fi echo fi if [ "$ENABLE_STARTUP_PERMS" = "yes" ]; then gprintf "Setting and checking MSEC permissions" /usr/sbin/msecperms -q - echo_success + if [ $? == 0 ]; then + echo_success + else + echo_failure + fi echo elif [ "$ENABLE_STARTUP_PERMS" = "enforce" ]; then gprintf "Setting and enforcing MSEC permissions" /usr/sbin/msecperms -e -q - echo_success + if [ $? == 0 ]; then + echo_success + else + echo_failure + fi echo fi ;; -- cgit v1.2.1