From 570ce24debddbba8efca8567b70a805f80d18ecc Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 17 Aug 2012 13:16:10 +0200 Subject: VTY: improve VTY prompt and make sure exit/end works everywhere Some nodes below 'config' didn't have ournode_exit / ournode_end, and thus were not able to properly perform this function. exit should always only go back one level, while end drops us back to ENABLE_NODE. The prompt now represents the nesting level, and there's one consistent space after the final prompt character (typically #). --- openbsc/src/gprs/sgsn_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/gprs/sgsn_vty.c') diff --git a/openbsc/src/gprs/sgsn_vty.c b/openbsc/src/gprs/sgsn_vty.c index f4a8083a3..1fc0b4110 100644 --- a/openbsc/src/gprs/sgsn_vty.c +++ b/openbsc/src/gprs/sgsn_vty.c @@ -106,7 +106,7 @@ static char *gprs_pdpaddr2str(uint8_t *pdpa, uint8_t len) static struct cmd_node sgsn_node = { SGSN_NODE, - "%s(sgsn)#", + "%s(config-sgsn)# ", 1, }; -- cgit v1.2.3