diff --git a/lm_sensors-2.10.4-service-default-off.patch b/lm_sensors-2.10.4-service-default-off.patch new file mode 100644 index 0000000..081b085 --- /dev/null +++ b/lm_sensors-2.10.4-service-default-off.patch @@ -0,0 +1,25 @@ +--- lm_sensors-2.10.4/prog/detect/sensors-detect~ 2007-07-19 13:53:58.000000000 -0400 ++++ lm_sensors-2.10.4/prog/detect/sensors-detect 2007-08-21 14:29:25.000000000 -0400 +@@ -5785,10 +5785,8 @@ + $i++; + } + print SYSCONFIG $sysconfig; +- +- print "Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors\n". +- "for initialization at boot time.\n" +- unless -f "/etc/init.d/lm_sensors"; ++ ++ system("/sbin/chkconfig", "lm_sensors", "on"); + } + } +diff -up lm_sensors-2.10.4/prog/init/lm_sensors.init~ lm_sensors-2.10.4/prog/init/lm_sensors.init +--- lm_sensors-2.10.4/prog/init/lm_sensors.init~ 2007-08-22 16:43:50.000000000 +0200 ++++ lm_sensors-2.10.4/prog/init/lm_sensors.init 2007-08-22 16:43:50.000000000 +0200 +@@ -1,6 +1,6 @@ + #!/bin/sh + # +-# chkconfig: 2345 26 74 ++# chkconfig: - 26 74 + # description: sensors is used for monitoring motherboard sensor values. + # config: /etc/sysconfig/lm_sensors + # diff --git a/lm_sensors.spec b/lm_sensors.spec index 5016cd8..cef242b 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -7,6 +7,7 @@ Source1: lm_sensors.sysconfig # these 2 were taken from PLD-linux, Thanks! Source2: sensord.sysconfig Source3: sensord.init +Patch0: lm_sensors-2.10.4-service-default-off.patch Summary: Hardware monitoring tools Group: Applications/System License: GPLv2+ @@ -59,6 +60,7 @@ what you are doing. %prep %setup -q +%patch0 -p1 mv prog/init/README prog/init/README.initscripts chmod -x prog/init/fancontrol.init