summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vtysh/vtysh_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c
index d9c0e3fbfd..999d90ab22 100644
--- a/vtysh/vtysh_main.c
+++ b/vtysh/vtysh_main.c
@@ -419,6 +419,7 @@ main (int argc, char **argv, char **env)
if (writeconfig)
{
+ vtysh_execute ("enable");
return vtysh_write_config_integrated ();
}