Commit f4731e9d authored by Suhas Kunnath's avatar Suhas Kunnath
Browse files

[recipes-extended] Modified WiFi interface mode check in webserver

parent 60eed653
diff --git a/server.js b/server.js
index a33301c..8fed779 100755
--- a/server.js
+++ b/server.js
@@ -325,7 +325,7 @@ function inWhiteList(path) {
// if shell command succeeds and in host AP mode
var result = shell.exec(BIN_DIR+'/configure_gateway --showWiFiMode', {silent:true});
console.log(BIN_DIR+'/configure_gateway --showWiFiMode');
- if ((result.code != 0) || ((typeof result.stdout !== 'undefined') && (result.stdout.trim() === "Master"))) {
+ if ((result.code != 0) || ((typeof result.stdout !== 'undefined') && (result.stdout.trim() !== "Managed"))) {
return true;
}
......@@ -13,7 +13,8 @@ SRCBRANCH = "master"
SRC_URI = "git://git.rigado.com/vesta/iot-gateway-setup.git;protocol=https;branch=${SRCBRANCH} \
file://iot-gateway-setup-server \
file://hostapd.conf \
file://dnsmasq.conf"
file://dnsmasq.conf \
file://0001-Modify-WiFi-Interface-Mode-Check.patch"
inherit npm-install-global
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment