Browse Source

Because for some FUCKING reason it reverted to an older version -____-

Wazakindjes 1 year ago
parent
commit
2754924c04
1 changed files with 3 additions and 6 deletions
  1. 3 6
      serbur/rem0t0.pl

+ 3 - 6
serbur/rem0t0.pl

@@ -35,10 +35,6 @@ my @checkem_main = (
 	'addy', 'port', 'backlog', 'accept_timeout', 'auth_timeout', 'client_timeout', 'cert',
 	'key', 'auth', 'debug', 'verbose', 'irsend', 'lircd', 'timezone', 'weekend', 'holidays',
 );
-my @checkem_supported = (
-	'ledstrip',
-	'hdmiswitch',
-);
 my @checkem_remote = (
 	'remotename', 'schedulem', 'once_burst',
 );
@@ -142,7 +138,7 @@ sub irsendem {
 	}
 
 	printem(">> $irtype $remotename $cmd", $tabs);
-	my $irout = trimmem(`$irsend -# $once_burst -d $lircd $irtype $remotename $ircmd 2>&1`);
+	my $irout = trimmem(`$irsend -d $lircd $irtype $remotename $ircmd 2>&1`);
 	if(length($irout)) {
 		printem("Got an error from irsend", $tabs);
 		printem($irout, $tabs);
@@ -260,6 +256,7 @@ foreach my $ckey(@checkem_main) {
 }
 
 $CONF{remotes} = {};
+my @checkem_supported = keys(%mappem);
 foreach my $cfgsect($cfg->Sections) {
 	my $lcsect = lc(trimmem($cfgsect));
 	next if($lcsect =~ /^main$/); # Top kek
@@ -403,7 +400,7 @@ foreach my $remote(keys(%{$CONF{remotes}})) {
 				$gtfo = 1;
 			}
 		}
-		elsif($k eq 'schedulem') {
+		elsif($k =~ /^(schedulem|once_burst)$/) {
 			$vhash->{$k} = ((defined($v) && $v) ? 1 : 0);
 		}
 		elsif($k =~ /^(schedule|mappem)$/) {