#!/usr/bin/env sh # # pbrisbin 2013 - trigger an XBMC library update on htpc.local. # ### htpc='htpc.local' if ping -c 1 $htpc &>/dev/null; then curl \ -H 'Content-type: application/json' \ -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":"blue"}' \ "http://$htpc:8080/jsonrpc" fi