X-Git-Url: https://git.rvb.name/openhab-process.git/blobdiff_plain/5b22968fed23a6b2f4438fbe344c52bea5143be7..dd22f2616ea394af68b81ce1872e9c00db50bbbb:/mqtt-bt/scan-beacons?ds=inline diff --git a/mqtt-bt/scan-beacons b/mqtt-bt/scan-beacons index 1709e93..34de7dc 100644 --- a/mqtt-bt/scan-beacons +++ b/mqtt-bt/scan-beacons @@ -72,11 +72,12 @@ end function open_dump() - f = assert(io.popen ("hcidump --raw")) - run_command("kill `pgrep hcitool`") - run_command("hciconfig hci0 down") - run_command("hciconfig hci0 up") - f_null = assert(io.popen ("hcitool lescan --duplicates")) + run_command("/bin/kill `/usr/bin/pgrep hcidump`") + run_command("/bin/kill `/usr/bin/pgrep hcitool`") + f = assert(io.popen ("/usr/bin/hcidump --raw")) + run_command("/usr/bin/hciconfig hci0 down") + run_command("/usr/bin/hciconfig hci0 up") + f_null = assert(io.popen ("/usr/bin/hcitool lescan --duplicates")) return f