lm_sensors/lm_sensors-2.10.4-service-default-off.patch
Hans de Goede f10f1790a1 - Update License tag for new Licensing Guidelines compliance
- Disable service by default (no use without any sensors being configured),
    enable it automatically on a successfull sensors-detect run (bz 253750)
2007-08-22 19:57:12 +00:00

26 lines
849 B
Diff

--- 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");
}
}
--- 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
#