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 (); }