diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-31 21:42:53 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-31 21:42:53 +0800 |
commit | 0c8aa73db77d33fcfc8172fe1647b884177b573a (patch) | |
tree | ce5389a5602ed1e530115a5bd0db7e5607cb1e5e /openbsc/src/bsc_hack.c | |
parent | 4b4dd100f8ca079134b780e0ca0879c1ab3e5ebb (diff) |
[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.
Diffstat (limited to 'openbsc/src/bsc_hack.c')
-rw-r--r-- | openbsc/src/bsc_hack.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c index a107fcb23..3710440e0 100644 --- a/openbsc/src/bsc_hack.c +++ b/openbsc/src/bsc_hack.c @@ -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)); |