From 7d428137e6baaf06058f3f38b7276c6c0dfc578d Mon Sep 17 00:00:00 2001 From: Alfonso Sanchez-Beato Date: Thu, 15 Oct 2015 16:12:26 +0200 Subject: [PATCH] rildev: Do not create modems if no env var set Do not create rilmodem instances if the environment variable OFONO_RIL_DEVICE is not set. --- plugins/rildev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/rildev.c b/plugins/rildev.c index 461324df..f4cea6f7 100644 --- a/plugins/rildev.c +++ b/plugins/rildev.c @@ -93,7 +93,7 @@ static int detect_init(void) ril_type = getenv("OFONO_RIL_DEVICE"); if (ril_type == NULL) - ril_type = "ril"; + return 0; /* Check for multi-SIM support */ multi_sim = getenv("OFONO_RIL_NUM_SIM_SLOTS");