diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-10-02 14:44:17 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-10-02 14:44:17 +0000 |
commit | 897541c6a941c5e90b33c3ffaebc76d44fb85593 (patch) | |
tree | 2331ac89e9beaf46b1558a3a5342fa3b34cb03ad /msec.init | |
parent | d20bd316b1406447fada77a3e0457d81c8b11584 (diff) | |
download | msec-897541c6a941c5e90b33c3ffaebc76d44fb85593.tar msec-897541c6a941c5e90b33c3ffaebc76d44fb85593.tar.gz msec-897541c6a941c5e90b33c3ffaebc76d44fb85593.tar.bz2 msec-897541c6a941c5e90b33c3ffaebc76d44fb85593.tar.xz msec-897541c6a941c5e90b33c3ffaebc76d44fb85593.zip |
Showing correct status messages when starting msec on boot
Diffstat (limited to 'msec.init')
-rw-r--r-- | msec.init | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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 ;; |