Ubuntu Pastebin

Paste from BlackFate at Fri, 25 Dec 2015 00:30:11 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/bin/bash
case $2 in
     left|right|up|down|select|back|stop|osd|close|number[0-9]|playpause|contextmenu|enter)
          if [ "$1" == "Input.ExecuteAction" ];then
                curl --data-binary "{ 'jsonrpc': '2.0', 'method': 'Input.ExecuteAction', 'params': { 'action': '$2' }, 'id': 1 }" -H 'content-type: application/json;' http://xbmc:xbmc@192.168.178.23:8080/jsonrpc     
          fi
          if [ "$1" == "Input.home" ];then
                curl --data-binary "{ 'jsonrpc': '2.0', 'method': 'Input.home', 'id': 1 }' -H 'content-type: application/json;" http://xbmc:xbmc@192.168.178.23:8080/jsonrpc ;
          fi
          ;;
     *)
          exit
          ;;
esac
Download as text