diff options
-rwxr-xr-x | scripts/vsp-lib.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index c0eb1ca..304cc54 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -902,6 +902,7 @@ vsp_runner() { local count=10 local pause= local skip=7 + local force_file for option in $* ; do case $option in @@ -913,6 +914,11 @@ vsp_runner() { count=${option/--count=/} ;; + + --file=*) + force_file=${option/--file=/} + ;; + --pause=*) pause=${option/--pause=/} ;; @@ -961,6 +967,10 @@ vsp_runner() { ;; esac + if [ x$force_file != x ] ; then + file=$force_file + fi + $yavta -c$count -n $buffers ${format:+-f $format} ${size:+-s $size} \ ${skip:+--skip $skip} ${file:+--file=$file} ${pause:+-p$pause} \ $videodev | ./logger.sh $entity >> $logfile |