#!/bin/sh #BLURB="Enable/disable hddtemp 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 hddtemp DAEMON AT BOOT?" --yesno \ "hddtemp will show you the hard drive temperature if the hard drive \ can (modern drives support this feature)." 8 70 if [ $? = 0 ]; then mkdir -p /etc/rc.d/rc3.d /etc/rc.d/rc4.d ln -s /etc/rc.d/init.d/hddtemp /etc/rc.d/rc3.d/K34hddtemp ln -s /etc/rc.d/init.d/hddtemp /etc/rc.d/rc3.d/S66hddtemp ln -s /etc/rc.d/init.d/hddtemp /etc/rc.d/rc4.d/K34hddtemp ln -s /etc/rc.d/init.d/hddtemp /etc/rc.d/rc4.d/S66hddtemp else rm -f /etc/rc.d/rc3.d/K34hddtemp /etc/rc.d/rc3.d/S66hddtemp /etc/rc.d/rc4.d/K34hddtemp /etc/rc.d/rc4.d/S66hddtemp fi fi