X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=trc6500-master-file%2Fscript%2Fconfigure_matrix.tcl;fp=trc6500-master-file%2Fscript%2Fconfigure_matrix.tcl;h=0000000000000000000000000000000000000000;hb=84523910649b50272f5a8693bf7c5cdb73ad1353;hp=540c3d104a8a8592c7a5534314dca4f859754d94;hpb=f81c83b65ada3bc612e87705f15860934f2f5a6d;p=debian6500.git diff --git a/trc6500-master-file/script/configure_matrix.tcl b/trc6500-master-file/script/configure_matrix.tcl deleted file mode 100755 index 540c3d1..0000000 --- a/trc6500-master-file/script/configure_matrix.tcl +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/expect - -# ============================================================================ -# -# Copyright (C) THALES. All rights reserved -# -# * V1.0 Laurent Mazet 29/04/2013 -# creation script de configuration de la matrice par ligne de commande -# ============================================================================ - -spawn /opt/trc6500/tools/matrix_tool - -set timeout 3 - -exec ifconfig eth1:0 192.168.1.1 netmask 255.255.255.0 - -proc cleanexit {rc} { - exec ifconfig eth1:0 down - exit $rc -} - -expect { - "taper la commande choisie" { send "0\r" } - timeout { send_user "connection to $host timed out\n"; cleanexit 1 } - eof { send_user "connection to host failed\n"; cleanexit 1 } -} -expect { - "timeout detected" { send_user "can't connect on defaut ip\n"; cleanexit 1 } - "taper la commande choisie" { send "10\r" } -} - -expect "nouvelle adresse" { send "010.133.026.253\r" } - -expect "taper la commande choisie" { send "12\r" } - -expect "taper la commande choisie" { send "14\r" } - -cleanexit 0 -# vim:set tabstop=4 expandtab shiftwidth=4: