#!/bin/sh #BLURB="Enable/disable domoticz 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 Domoticz Daemon AT BOOT?" --yesno \ "Domoticz is a software for integrating different home automation \ systems and technologies into one single solution that allows \ over-arching automation rules and that offers uniform user interfaces." 9 70 if [ $? = 0 ]; then mkdir -p /etc/rc.d/rc{0,1,3,4,6}.d ln -s /etc/rc.d/init.d/domoticz /etc/rc.d/rc0.d/K23domoticz ln -s /etc/rc.d/init.d/domoticz /etc/rc.d/rc1.d/K23domoticz ln -s /etc/rc.d/init.d/domoticz /etc/rc.d/rc3.d/S77domoticz ln -s /etc/rc.d/init.d/domoticz /etc/rc.d/rc4.d/S77domoticz ln -s /etc/rc.d/init.d/domoticz /etc/rc.d/rc6.d/K23domoticz else rm -f /etc/rc.d/rc{0,1,6}.d/K23domoticz /etc/rc.d/rc{3,4}.d/S77domoticz fi fi