disable service by default WIP

This commit is contained in:
Hans de Goede 2007-08-22 15:07:08 +00:00
parent e33e8842d3
commit 17f3d2350e
2 changed files with 27 additions and 0 deletions

View File

@ -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
#

View File

@ -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