From 4c6c603798adc8412d0be8ad46e05a2553b6b9c7 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Tue, 4 Dec 2007 14:00:36 -0800 Subject: set default restricted mode based on group (in "vyattacfg" => "output", otherwise => "full"). --- shell.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shell.c') diff --git a/shell.c b/shell.c index b8dcf32..36a9c66 100644 --- a/shell.c +++ b/shell.c @@ -528,6 +528,9 @@ main (argc, argv, env) if (shopt_alist) run_shopt_alist (); + /* check and set the default vyatta restricted mode */ + set_vyatta_restricted_mode (); + /* From here on in, the shell must be a normal functioning shell. Variables from the environment are expected to be set, etc. */ shell_initialize (); -- cgit v1.2.3