disable service by default WIP
This commit is contained in:
parent
e33e8842d3
commit
17f3d2350e
25
lm_sensors-2.10.4-service-default-off.patch
Normal file
25
lm_sensors-2.10.4-service-default-off.patch
Normal 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
|
||||
#
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user