File->New in main menu.
Also prevent vimageCleanup from being called unnecessarily from within
filemgmt.tcl when in edit mode.
Bug found by: miljenko
Submitted by:
Requested by:
Reviewed by:
Approved by:
Obtained from:
proc vimageCleanup {} {
+ global .c
+
set t_start [clock seconds]
set vimages [join [nexec vimage -l | fgrep -v " " | cut -d: -f 1]]
set defindex [lsearch $vimages default]
catch { nexec rm -f /usr/local/xorp/config.boot }
catch { nexec mv /etc/resolv.conf.bak /etc/resolv.conf }
statline "Cleanup completed in [expr [clock seconds] - $t_start] seconds."
+ .c config -cursor left_ptr
}
proc newFile {} {
- global currentFile
+ global currentFile oper_mode
- vimageCleanup
+ if { $oper_mode == "exec" } {
+ vimageCleanup
+ }
loadCfg ""
redrawAll
set currentFile ""