From 896f3e1dac75778c61048937b322aca1e4d38c79 Mon Sep 17 00:00:00 2001 From: devdatt Date: Thu, 19 Feb 2026 08:05:43 +0530 Subject: [PATCH] update --- encoder/static.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/encoder/static.php b/encoder/static.php index 1e016d0..7ee99b4 100755 --- a/encoder/static.php +++ b/encoder/static.php @@ -300,6 +300,11 @@ function netplan_yaml(array $data, int $indent = 0): string 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_source = ""; $input_rtmp_mount = ""; @@ -706,7 +711,6 @@ function update_service($which_service) } exec("sudo systemctl enable encoder-main"); exec("sudo systemctl restart encoder-main"); - exec("sudo reboot"); } break; case 'display';