} else {
# quagga i drugi mogu imati svoje custom skripte za bootanje koja se prepoznaje po
# bootcmdu (interpreteru) koji nije obican shell
- set command "$bootcmd boot.conf"
- puts " will now execute $command in $node_id"
+ puts " placing $bootcmd in $node_dir"
+ set bootfile [file tail $bootcmd]
+ file copy $bootcmd "$node_dir/$bootfile"
+ set command "/$bootfile boot.conf"
+ puts " will now execute $command in $node_id"
# catch nexec vimage $node_id $bootcmd $node_dir/boot.conf >& $node_dir/out.log &"
catch { nexec vzctl exec $node_id $command } ret
if { $ret != "TCL_OK" && $ret != ""} {