Subversion Repositories camp_sysinfo_client_3

Rev

Rev 53 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 53 Rev 55
Line 267... Line 267...
267
sub findConf {
267
sub findConf {
268
   my $confName = shift;
268
   my $confName = shift;
269
   my @confDirs =    ( '/etc/camp/sysinfo-client', '/usr/local/etc/camp/sysinfo-client' );
269
   my @confDirs =    ( '/etc/camp/sysinfo-client', '/usr/local/etc/camp/sysinfo-client' );
270
   for ( my $i = 0; $i < @confDirs; $i++ ) {
270
   for ( my $i = 0; $i < @confDirs; $i++ ) {
271
      if ( -d $confDirs[ $i ] ) {
271
      if ( -d $confDirs[ $i ] ) {
272
         return $confDirs[$i] . '/' . $confName;
272
         return ( $confDirs[$i],  $confName );
273
      }
273
      }
274
   }
274
   }
275
}
275
}
276
   
276
   
277
 
277