[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.
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c
index a107fcb..3710440 100644
--- a/openbsc/src/bsc_hack.c
+++ b/openbsc/src/bsc_hack.c
@@ -232,13 +232,13 @@
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));