Add the feature check logic in launching bt-service
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / bt-service-main.c
index 3f846da..54c6dd3 100644 (file)
@@ -295,6 +295,11 @@ int main(void)
        struct sigaction sa;
        BT_INFO_C("### Starting the bt-service daemon");
 
+       if (!TIZEN_FEATURE_BT_SUPPORTED) {
+               BT_INFO_C("BT feature is not supported, terminate bt-service");
+               return 0;
+       }
+
        memset(&sa, 0, sizeof(sa));
        sa.sa_sigaction = __bt_sigterm_handler;
        sa.sa_flags = SA_SIGINFO;