mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-03 13:33:29 +00:00
[bsc_hack] Call handle_options before bootstrapping the network
Otherwise we can not specify which config file to use and -h will not work when there is no openbsc.cfg in the cwd.
This commit is contained in:
@@ -232,13 +232,13 @@ int main(int argc, char **argv)
|
|||||||
vty_init(&vty_info);
|
vty_init(&vty_info);
|
||||||
bsc_vty_init();
|
bsc_vty_init();
|
||||||
|
|
||||||
|
/* parse options */
|
||||||
|
handle_options(argc, argv);
|
||||||
|
|
||||||
rc = bsc_bootstrap_network(mncc_recv, config_file);
|
rc = bsc_bootstrap_network(mncc_recv, config_file);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
/* parse options */
|
|
||||||
handle_options(argc, argv);
|
|
||||||
|
|
||||||
/* seed the PRNG */
|
/* seed the PRNG */
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user