Changeset 4131

Show
Ignore:
Timestamp:
09/01/06 23:03:41 (7 years ago)
Author:
khali
Message:

Update the init script part:
* Fix project homepage.
* Init scripts are in /etc/init.d on modern systems, rather than

/etc/rc.d/init.d. That way it works on Fedora, Suse and Gentoo, at
least.

* Don't tell the user to copy the init script if it's already there.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r4130 r4131  
    54855485      or die "Sorry, can't create /etc/sysconfig/lm_sensors ($!)"; 
    54865486    print SYSCONFIG <<'EOT'; 
    5487 #    /etc/sysconfig/sensors - Defines modules loaded by /etc/rc.d/init.d/lm_sensors 
     5487#    /etc/sysconfig/lm_sensors - Defines modules loaded by 
     5488#                                /etc/init.d/lm_sensors 
    54885489#    Copyright (c) 1998 - 2001  Frodo Looijaard <frodol@dds.nl> 
    54895490# 
     
    55045505# 
    55055506# See also the lm_sensors homepage at: 
    5506 #     http://www2.lm-sensors.nu/~lm78/index.html 
     5507#     http://www.lm-sensors.org/ 
    55075508# 
    5508 # This file is used by /etc/rc.d/init.d/lm_sensors and defines the modules to 
    5509 # be loaded/unloaded. This file is sourced into /etc/rc.d/init.d/lm_sensors. 
     5509# This file is used by /etc/init.d/lm_sensors and defines the modules to 
     5510# be loaded/unloaded. This file is sourced into /etc/init.d/lm_sensors. 
    55105511# 
    55115512# The format of this file is a shell script that simply defines the modules 
     
    55275528    } 
    55285529    print SYSCONFIG $sysconfig; 
    5529     print "Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors\n"; 
    5530     print "for initialization at boot time.\n"; 
     5530 
     5531    print "Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors\n". 
     5532          "for initialization at boot time.\n" 
     5533      unless -f "/etc/init.d/lm_sensors"; 
    55315534  } 
    55325535}