]> git.entuzijast.net Git - imunes.git/commitdiff
Remote boot.conf file creation modified.
authormiljenko <miljenko>
Mon, 2 Jan 2006 16:12:40 +0000 (16:12 +0000)
committermiljenko <miljenko>
Mon, 2 Jan 2006 16:12:40 +0000 (16:12 +0000)
Bug found by:
Submitted by:
Requested by:
Reviewed by:
Approved by:
Obtained from:

exec.tcl

index 930d2ecca9bbceddd995810183cd5fc0dee7d681..b2549379f45c8c1130759ba179b83b0789e9ca35 100755 (executable)
--- a/exec.tcl
+++ b/exec.tcl
@@ -521,32 +521,13 @@ proc deployCfg {} {
                }
                close $fileId
             } else {
-               nexec nc -l -p 1235 > /tmp/$node_id/boot.conf &
-                ;# set s [socket $exec_host 1235]
-                catch {set s [socket -async $exec_host 1235]}
-                set fail true
-                for { set i 1 } { $i <= 4 } { incr i } {
-                    if {[catch {fconfigure $s -peername} a] == 0 } {
-                        set fail false
-                        break
-                    } else { 
-                        after 250 ;# Max 2 sec for socket creation
-                    }
-                }
-                if { $fail } {
-                    tk_messageBox -title "Boot file creation" \
-                        -message "Cannot open socket: $exec_host:1235 for boot file creation. \nPlease report this problem." -type ok
-                    exit 5
-                }
-                fconfigure $s -buffering line -translation lf
+               nexec create_conf_file /tmp/$node_id/boot.conf
                 foreach line $bootcfg {
-                   puts $s $line
+                   nexec $line
                 }
-               flush $s
-                close $s
+               nexec close_conf_file
             }
-            ;# removed backgroud invocation
-            catch "nexec vimage $node_id $bootcmd /tmp/$node_id/boot.conf"
+            catch "nexec vimage $node_id $bootcmd /tmp/$node_id/boot.conf &"
        }
     }