mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-12 18:51:56 +00:00
19 lines
249 B
Bash
Executable file
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
|