#!/bin/sh #BLURB="Enable/disable rspamd 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 rspamd Daemon AT BOOT?" --yesno \ "Rspamd is a rapid, modular and lightweight spam filter. \ It is designed to work with big amounts of mail and can be \ easily extended with it's own filters written in lua." 9 70 if [ $? = 0 ]; then mkdir -p /etc/rc.d/rc{0,1,3,4,6}.d ln -s /etc/rc.d/init.d/rspamd /etc/rc.d/rc{0,1,6}.d/K93rspamd ln -s /etc/rc.d/init.d/rspamd /etc/rc.d/rc{3,4}.d/S07rspamd else rm -f /etc/rc.d/rc{0,1,6}.d/K93rspamd /etc/rc.d/rc{3,4}.d/S07rspamd fi fi