[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:
Holger Hans Peter Freyther
2010-05-31 21:42:53 +08:00
parent 4b4dd100f8
commit 0c8aa73db7

View File

@@ -232,13 +232,13 @@ int main(int argc, char **argv)
vty_init(&vty_info);
bsc_vty_init();
/* parse options */
handle_options(argc, argv);
rc = bsc_bootstrap_network(mncc_recv, config_file);
if (rc < 0)
exit(1);
/* parse options */
handle_options(argc, argv);
/* seed the PRNG */
srand(time(NULL));