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.
This commit is contained in:
Alfonso Sanchez-Beato 2015-10-15 16:12:26 +02:00 committed by Denis Kenzior
parent c69a2c17f2
commit 7d428137e6
1 changed files with 1 additions and 1 deletions

View File

@ -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");