Test for GitHub issue #1: removed absolute path for iwlist
This commit is contained in:
parent
b33de0ce94
commit
834dc4210e
@ -4,7 +4,9 @@
|
||||
*/
|
||||
|
||||
const _ = require('lodash');
|
||||
const tool = '/usr/bin/iwlist';
|
||||
// usually located in /usr/bin/ but as it could be at another location, allow all found in PATH (but we're in trouble
|
||||
// when the default location, /usr/bin/ is not in the PATH!). GitHub issue #1
|
||||
const tool = 'iwlist';
|
||||
const cmdLine = tool + ' scan';
|
||||
|
||||
const macRegex = /([0-9a-zA-Z]{1}[0-9a-zA-Z]{1}[:]{1}){5}[0-9a-zA-Z]{1}[0-9a-zA-Z]{1}/;
|
||||
|
Loading…
x
Reference in New Issue
Block a user