#!/bin/sh #BLURB="Enable/disable munin-node 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 munin-node DAEMON AT BOOT?" --yesno \ "Munin is a networked resource monitoring tool that can help analyze \ resource trends and \"what just happened to kill our performance?\" \ problems. It is designed to be very plug and play." 8 70 if [ $? = 0 ]; then mkdir -p /etc/rc.d/rc{0,1,3,4,6}.d ln -s /etc/rc.d/init.d/munin-node /etc/rc.d/rc0.d/K04munin-node ln -s /etc/rc.d/init.d/munin-node /etc/rc.d/rc1.d/K04munin-node ln -s /etc/rc.d/init.d/munin-node /etc/rc.d/rc3.d/S96munin-node ln -s /etc/rc.d/init.d/munin-node /etc/rc.d/rc4.d/S96munin-node ln -s /etc/rc.d/init.d/munin-node /etc/rc.d/rc6.d/K04munin-node else rm -f /etc/rc.d/rc{0,1,6}.d/K04munin-node /etc/rc.d/rc{3,4}.d/S96munin-node fi fi