aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-06-15 14:59:17 +0200
committerSven Gothel <[email protected]>2021-06-15 14:59:17 +0200
commit7b350761cfe9b83e66757f9e75301126ff3322b6 (patch)
treeea35eb534e858c9dd285f40a70835d169e90db95
parent8fd5e62090df664f2519293b21ccc99b7e495af8 (diff)
scripts/run-java-scanner10.sh: Add 'JAVA_PROPS' var to allow passing Java properties.v2.2.7
-rwxr-xr-xscripts/run-java-scanner10.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/run-java-scanner10.sh b/scripts/run-java-scanner10.sh
index 5bfb1215..78ee8711 100755
--- a/scripts/run-java-scanner10.sh
+++ b/scripts/run-java-scanner10.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+# JAVA_PROPS="-Dorg.direct_bt.debug=true -Dorg.direct_bt.verbose=true"
+
# export direct_bt_debug=true
# export direct_bt_debug=adapter.event=false,gatt.data=false,hci.event=false,mgmt.event=false
# export direct_bt_debug=adapter.event,gatt.data,hci.event,mgmt.event
@@ -86,7 +88,7 @@ runit() {
sudo /sbin/capsh --caps="cap_net_raw,cap_net_admin+eip cap_setpcap,cap_setuid,cap_setgid+ep" \
--keep=1 --user=$username --addamb=cap_net_raw,cap_net_admin+eip \
- -- -c "ulimit -c unlimited; $VALGRIND $JAVA_CMD -cp lib/java/direct_bt.jar:bin/java/DBTScanner10.jar -Djava.library.path=`pwd`/lib DBTScanner10 $*"
+ -- -c "ulimit -c unlimited; $VALGRIND $JAVA_CMD $JAVA_PROPS -cp lib/java/direct_bt.jar:bin/java/DBTScanner10.jar -Djava.library.path=`pwd`/lib DBTScanner10 $*"
}