1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-12 19:01:55 +00:00
miraclecast/res/uibc-viewer
2016-07-16 15:29:13 +02:00

19 lines
249 B
Bash
Executable file

#!/bin/bash
function kill_child() {
CHILDREN="$(ps -o pid= --ppid $$)"
echo killing $CHILDREN
kill $CHILDREN
}
IP=$1
shift
UIBC_PORT=$1
shift
echo $$
trap 'kill_child' SIGTERM
gstplayer $@ | miracle-uibcctl $IP $UIBC_PORT --daemon &
wait