aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/e1_input_vty.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-02-05 15:57:42 +0100
committerHarald Welte <laforge@gnumonks.org>2011-02-05 15:57:42 +0100
commit07bb0daaff8d10aad4da264621e25b0986007fc5 (patch)
tree359b1c7e736d985cb75a2d74df5cea9f4bd2469b /openbsc/src/e1_input_vty.c
parent889f16eac3e856318ba88587a0c9e2c72cd4db89 (diff)
[E1 input] make sure config file with new E1 input config saves correctly
Diffstat (limited to 'openbsc/src/e1_input_vty.c')
-rw-r--r--openbsc/src/e1_input_vty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/e1_input_vty.c b/openbsc/src/e1_input_vty.c
index 6d44a95ba..b8050a87f 100644
--- a/openbsc/src/e1_input_vty.c
+++ b/openbsc/src/e1_input_vty.c
@@ -38,7 +38,7 @@
#include "../bscconfig.h"
-#define E1_DRIVER_NAMES "(misdn)"
+#define E1_DRIVER_NAMES "(misdn|misdn)"
#define E1_DRIVER_HELP "mISDN supported E1 Card\n"
DEFUN(cfg_e1line_driver, cfg_e1_line_driver_cmd,
@@ -76,6 +76,8 @@ static int e1inp_config_write(struct vty *vty)
{
struct e1inp_line *line;
+ vty_out(vty, "e1_input%s", VTY_NEWLINE);
+
llist_for_each_entry(line, &e1inp_line_list, list) {
vty_out(vty, " e1_line %u driver %s%s", line->num,
line->driver->name, VTY_NEWLINE);