r3476 use basename, omit nc delay
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 27 Apr 2010 05:53:23 +0000 (05:53 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 27 Apr 2010 05:53:23 +0000 (05:53 +0000)
gateways/deviceconfig/vrp53.connector

index b1e7935ed197756ed93fc993b1bb6d6ee9c2f62b..fd4e19d9da9d7e4fd3228fe716362b1f03e0e2f3 100755 (executable)
@@ -42,7 +42,8 @@ prepare_connect_commands()
        exit 3
 }
 
-SESSION=`mktemp /tmp/fdry5.connector.XXXX`
+MYNAME=`basename $0`
+SESSION=`mktemp /tmp/$MYNAME.XXXX`
 [ -f "$SESSION" ] || exit 5
 prepare_connect_commands $ENDPOINT
 case $COMMAND in
@@ -58,6 +59,6 @@ deploy)
        outfile=/dev/null
 esac
 printf 'quit\n' >> "$SESSION"
-nc -i 1 $ENDPOINT 23 < "$SESSION" > "$outfile"
+nc $ENDPOINT 23 < "$SESSION" > "$outfile"
 rm -f "$SESSION"
 exit 0