]> rtime.felk.cvut.cz Git - frescor/frsh-forb.git/blobdiff - src/frsh/resources/fpga/frm_fpga
forb: script invocation of shlibs fixec
[frescor/frsh-forb.git] / src / frsh / resources / fpga / frm_fpga
index c8628bc7cf53ae7f380ce97fdee503c6acbe105f..e79b1a1f57b932ea5bd518c8a0960dbaf72d35d8 100755 (executable)
@@ -1,3 +1,16 @@
 #!/bin/sh
 
-forbrun -i "org.frescor.frm.fpga" -- libfrm_fpga.so "$@"
+while [ $# -gt 0 ]; do
+    case "$1" in
+        -d*|--daemon=)
+            FORBRUN_ARGS="$FORBRUN_ARGS $1";;
+        --daemon)
+            FORBRUN_ARGS="$FORBRUN_ARGS $1 $2"; shift;;
+        *)
+            FRM_ARGS="$FRM_ARGS $1"
+    esac
+    shift
+done
+
+forbrun -i "org.frescor.frm.fpga" $FORBRUN_ARGS -- libfrm_fpga.so $FRM_ARGS 
+