From 47b1a376bd3c8af4c791248e56274d27a2b92bc5 Mon Sep 17 00:00:00 2001 From: MrDave Date: Fri, 26 Sep 2025 10:56:44 -0700 Subject: [PATCH] Create a camera file if nothing is specified --- src/conf.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/conf.cpp b/src/conf.cpp index 6ad96819..081677fb 100644 --- a/src/conf.cpp +++ b/src/conf.cpp @@ -4457,6 +4457,14 @@ void cls_config::init() app->conf_src->process(); + if ((app->cam_cnt == 0) && (app->snd_cnt == 0)) { + MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO + , _("No camera or sound configuration files specified.")); + MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO + , _("Adding a camera configuration file.")); + app->conf_src->camera_add("", false); + } + cmdline(); for (indx=0; indxcam_cnt; indx++) {