From db8475bb4e619b2be1073a17ccf58268336e51cf Mon Sep 17 00:00:00 2001
From: Luigi Rizzo <rizzo@icir.org>
Date: Mon, 19 May 2008 13:33:08 +0000
Subject: [PATCH] Allow users to specify 'startgui=1' in oss.conf so that the
 graphic screen for the video console is activated at startup.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/console_video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/channels/console_video.c b/channels/console_video.c
index 554d03c39e..dbd881482f 100644
--- a/channels/console_video.c
+++ b/channels/console_video.c
@@ -1020,6 +1020,7 @@ int console_video_config(struct video_desc **penv,
 	CV_F("remote_size", video_geom(&env->rem_dpy, val));
 	CV_STR("keypad", env->keypad_file);
 	CV_F("region", keypad_cfg_read(env->gui, val));
+	CV_F("startgui", console_video_start(env, NULL));	// support enabling gui at startup
 	CV_STR("keypad_font", env->keypad_font);
 	CV_STR("sdl_videodriver", env->sdl_videodriver);
 	CV_UINT("fps", env->out.fps);
-- 
GitLab