Ver código fonte

Add support for the RAVE file

Zachary Kotlarek 13 anos atrás
pai
commit
57cea97f29
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      dmx/state.pl

+ 3 - 2
dmx/state.pl

@@ -28,6 +28,7 @@ my %MON_FILES = (
 	'PLAY_STATUS' => 'STATUS',
 	'PLAY_STATUS' => 'STATUS',
 	'LIGHTS'      => 'EXISTS',
 	'LIGHTS'      => 'EXISTS',
 	'FAN_CMD'     => 'EXISTS',
 	'FAN_CMD'     => 'EXISTS',
+	'RAVE'        => 'EXISTS_OFF',
 );
 );
 
 
 
 
@@ -166,7 +167,7 @@ while (1) {
 		}
 		}
 
 
 		# Check for the presence of a file
 		# Check for the presence of a file
-		if ($file->{'type'} eq 'EXISTS') {
+		if ($file->{'type'} =~ /^EXISTS/) {
 			if (-e $file->{'path'}) {
 			if (-e $file->{'path'}) {
 				$file->{'status'} = 1;
 				$file->{'status'} = 1;
 			}
 			}
@@ -223,7 +224,7 @@ while (1) {
 	{
 	{
 		my @exists = ();
 		my @exists = ();
 		foreach my $file (values(%files)) {
 		foreach my $file (values(%files)) {
-			if ($file->{'type'} eq 'EXISTS') {
+			if ($file->{'type'} =~ /^EXISTS/) {
 				push(@exists, $file->{'name'} . ':' . $file->{'status'});
 				push(@exists, $file->{'name'} . ':' . $file->{'status'});
 			}
 			}
 		}
 		}