Changeset 4134

Show
Ignore:
Timestamp:
09/02/06 16:00:36 (8 years ago)
Author:
khali
Message:

Tell the user if we are going to overwrite an existing
/etc/sysconfig/lm_sensors configuration file.

Files:
1 modified

Legend:

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

    r4131 r4134  
    54745474   
    54755475  my $have_sysconfig = -d '/etc/sysconfig'; 
    5476   print "Do you want to generate /etc/sysconfig/lm_sensors? (". 
    5477     ($have_sysconfig?"YES/no":"yes/NO")."): "; 
     5476  printf "Do you want to \%s /etc/sysconfig/lm_sensors? (\%s): ", 
     5477         (-e '/etc/sysconfig/lm_sensors' ? 'overwrite' : 'generate'), 
     5478         ($have_sysconfig ? 'YES/no' : 'yes/NO'); 
    54785479  $_ = <STDIN>; 
    54795480  if (($have_sysconfig and not m/^\s*n/i) or m/^\s*y/i) {