check-audisp.sh 264B

123456789
  1. #!/bin/bash
  2. if dpkg -s audispd-plugins > /dev/null 2>&1;then
  3. if ! sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' /etc/audisp/plugins.d/syslog.conf | grep -i "active.*yes";then
  4. exit 1
  5. fi
  6. else
  7. exit 1
  8. fi