update
This commit is contained in:
parent
d21816c93e
commit
896f3e1dac
|
|
@ -300,6 +300,11 @@ function netplan_yaml(array $data, int $indent = 0): string
|
||||||
function update_service($which_service)
|
function update_service($which_service)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if ($which_service == 'input') {
|
||||||
|
exec("sudo systemctl stop encoder-main");
|
||||||
|
exec("sudo systemctl disable encoder-main");
|
||||||
|
exec("sudo modprobe -r uvcvideo && sudo modprobe uvcvideo");
|
||||||
|
}
|
||||||
$input = "";
|
$input = "";
|
||||||
$input_source = "";
|
$input_source = "";
|
||||||
$input_rtmp_mount = "";
|
$input_rtmp_mount = "";
|
||||||
|
|
@ -706,7 +711,6 @@ function update_service($which_service)
|
||||||
}
|
}
|
||||||
exec("sudo systemctl enable encoder-main");
|
exec("sudo systemctl enable encoder-main");
|
||||||
exec("sudo systemctl restart encoder-main");
|
exec("sudo systemctl restart encoder-main");
|
||||||
exec("sudo reboot");
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'display';
|
case 'display';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue