svf file to send as argument
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 17 Jun 2016 05:45:58 +0000 (07:45 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 17 Jun 2016 05:46:41 +0000 (07:46 +0200)
svf.sh
xsvf.sh

diff --git a/svf.sh b/svf.sh
index 3472ea3..9a89138 100755 (executable)
--- a/svf.sh
+++ b/svf.sh
@@ -1,2 +1,4 @@
 svf=/nuc/altera-squeeze/root/epm3128/epm3128.svf
+test ! -z "$1" && svf=$1
 ls -al $svf && ( echo svf $svf | nc -w 1 picam 4444 )
+
diff --git a/xsvf.sh b/xsvf.sh
index aa1e74e..0ffd2d8 100755 (executable)
--- a/xsvf.sh
+++ b/xsvf.sh
@@ -1,8 +1,10 @@
 svf=/nuc/altera-squeeze/root/epm3064/3064at44.svf
+test ! -z "$1" && svf=$1
 
 ls -al $svf && (
 
        python3 svf2xsvf.py $svf $svf.xsvf
        svf=$svf.xsvf
-       echo xsvf x300.tap $svf virt2 | nc -w 1 picam 4444
+       echo xsvf x300.tap $svf | nc -w 1 picam 4444
+       ls -al $svf
 )