# Shut down all vimages
foreach vimage $vimages {
- statline "Shutting down vimage $vimage"
+ set stattxt "Shutting down vimage $vimage"
+ statline $stattxt
catch {nexec vimage $vimage kill -9 -1 2> /dev/null}
+ while { [catch {nexec vimage -d $vimage}] } {
+ set stattxt $stattxt.
+ statline $stattxt
+ catch {nexec vimage $vimage kill -9 -1 2> /dev/null}
+ }
nexec rm -fr /tmp/$vimage
- nexec vimage -d $vimage
}
catch { nexec rm -f /usr/local/etc/quagga/Quagga.conf }
- 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."
}