units: fix to check speaker correctly 04/267504/1 accepted/tizen/6.5/unified/20211207.212516 submit/tizen_6.5/20211206.095450
authorSung-Jin Park <sj76.park@samsung.com>
Mon, 6 Dec 2021 08:54:25 +0000 (17:54 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 6 Dec 2021 08:54:25 +0000 (17:54 +0900)
Change-Id: I739344684d568de8980f37b0e7ed821a2cc660fc
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
data/units/headless_server_start.sh

index 6ea7157..7f43ff5 100644 (file)
@@ -2,8 +2,8 @@
 
 if [ -e ${RUN_WITH_SPEAKER} ]
 then
-    _tizen_project_target=`grep TZ_BUILD_PROJECT /etc/tizen-build.conf | awk -F '[=]' '{ print $2 }' | awk -F '[-]' '{ print $NF }'`
-    if [ ${_tizen_project_target} = "Speaker" ]
+    _tizen_project_target=`vconftool get 'db/setting/device_name' | awk '{ print $4}'`
+    if [ ${_tizen_project_target} = "Tizen_Speaker" ]
     then
         export RUN_WITH_SPEAKER=1
     fi