enable sol on powerup
authorMichael Gernoth <michael@gernoth.net>
Mon, 12 May 2008 13:35:01 +0000 (15:35 +0200)
committerMichael Gernoth <michael@gernoth.net>
Mon, 12 May 2008 13:35:01 +0000 (15:35 +0200)
amttool

diff --git a/amttool b/amttool
index d1b0f48..3aaab53 100755 (executable)
--- a/amttool
+++ b/amttool
@@ -277,7 +277,12 @@ sub remote_control($) {
        if ($reply =~ m/^(y|yes)$/i) {
                printf "execute: %s\n", $command;
                push (@args, SOAP::Data->name('Command' => $rcc{$command}));
-               push (@args, SOAP::Data->name('IanaOemNumber' => 4542));
+               push (@args, SOAP::Data->name('IanaOemNumber' => 343));
+               if ($command ne 'powerdown') {
+                       push (@args, SOAP::Data->name('OEMparameters' => 1 ));
+                       push (@args, SOAP::Data->name('SpecialCommand' => 0xC1 ));
+                       push (@args, SOAP::Data->name('SpecialCommandParameter' => 0));
+               }
                do_soap($rcs, "RemoteControl", @args);
        } else {
                printf "canceled\n";
Impressum, Datenschutz