mirror of git://git.sysmocom.de/ofono
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:
parent
c69a2c17f2
commit
7d428137e6
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue