#! /bin/sh # # /etc/init.d/i8k # # Source SuSE config . /etc/rc.config . /etc/rc.status # First reset status of this service rc_reset # # Determine the base and follow a runlevel link name. # base=${0##*/} link=${base#*[SK][0-9][0-9]} # cause direct call in /etc/init.d/ alsways to be executed test $link = $base && START_I8K="yes" test "$START_I8K" = yes || exit 0 PATH=/sbin:/bin:/usr/sbin:/usr/bin NAME=$base DESC="Dell Inspiron fan/cpu-temperature monitor" test -x $I8K_DAEMON || exit 0 CONFIG_DAEMON=$( # Config file /etc/i8kmon is optional cat /etc/i8kmon 2>/dev/null \ | awk '{gsub("#.*","")} /config\(daemon\)/ {print $3}' ) case "$1" in start)