#!/bin/sh #BLURB="Enable/disable ossec at boot" # # System setup script for Slackware # # T_PX=$1 TMP=/var/log/setup/tmp if [ "$COLOR" = "on" -o -r $TMP/SeTcolor ]; then dialog --title "ENABLE ossec DAEMON AT BOOT?" --yesno \ "OSSEC is an Open Source Host-based Intrusion Detection System. \ It performs log analysis, integrity checking, Windows registry \ monitoring, rootkit detection, real-time alerting and active \ response." 10 70 if [ $? = 0 ]; then mkdir -p /etc/rc.d/rc{0,1,3,4,6}.d ln -s /etc/rc.d/init.d/ossec /etc/rc.d/rc0.d/K05ossec ln -s /etc/rc.d/init.d/ossec /etc/rc.d/rc1.d/K05ossec ln -s /etc/rc.d/init.d/ossec /etc/rc.d/rc3.d/S95ossec ln -s /etc/rc.d/init.d/ossec /etc/rc.d/rc4.d/S95ossec ln -s /etc/rc.d/init.d/ossec /etc/rc.d/rc6.d/K05ossec else rm -f /etc/rc.d/rc{0,1,6}.d/K05ossec /etc/rc.d/rc{3,4}.d/S95ossec fi fi