Disable debugging from kbd backlight script
This commit is contained in:
parent
b3e2e00961
commit
c7cecdab75
|
@ -15,7 +15,6 @@ if (open(my $m, '<', $maxfile)) {
|
||||||
print "Failed to read $maxfile\n";
|
print "Failed to read $maxfile\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
print STDERR "max = $max\n";
|
|
||||||
|
|
||||||
if (open(my $c, '<', $current)) {
|
if (open(my $c, '<', $current)) {
|
||||||
$now = readline($c);
|
$now = readline($c);
|
||||||
|
@ -25,7 +24,6 @@ if (open(my $c, '<', $current)) {
|
||||||
print "Failed to read $current\n";
|
print "Failed to read $current\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
print STDERR "now = $now\n";
|
|
||||||
|
|
||||||
if (open(my $fh, '>', $current)) {
|
if (open(my $fh, '>', $current)) {
|
||||||
$new = (($now+1) % ($max+1));
|
$new = (($now+1) % ($max+1));
|
||||||
|
@ -36,4 +34,4 @@ if (open(my $fh, '>', $current)) {
|
||||||
print "Failed to write $current\n";
|
print "Failed to write $current\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
print STDERR "new = $new\n";
|
#print STDERR "$new\n";
|
||||||
|
|
Loading…
Reference in New Issue