EvilPortal: Disable nginx uci config on install so it uses the proper config
filedev-apiservice-update
parent
172e71859e
commit
34f719e724
|
@ -3,7 +3,7 @@
|
||||||
"title": "Evil Portal",
|
"title": "Evil Portal",
|
||||||
"description": "An evil captive portal for the WiFi Pineapple.",
|
"description": "An evil captive portal for the WiFi Pineapple.",
|
||||||
"author": "newbi3",
|
"author": "newbi3",
|
||||||
"version": "1.4",
|
"version": "1.5",
|
||||||
"firmware_required": "1.0.0",
|
"firmware_required": "1.0.0",
|
||||||
"devices": ["wifipineapplemk7"]
|
"devices": ["wifipineapplemk7"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,9 @@ def _post_install(job: OpkgJob):
|
||||||
os.system(f'cp {_ASSETS_PATH}/evilportal.sh /etc/init.d/evilportal')
|
os.system(f'cp {_ASSETS_PATH}/evilportal.sh /etc/init.d/evilportal')
|
||||||
os.system('chmod +x /etc/init.d/evilportal')
|
os.system('chmod +x /etc/init.d/evilportal')
|
||||||
|
|
||||||
|
os.system('uci set nginx.global.uci_enable=false')
|
||||||
|
os.system('uci commit')
|
||||||
|
|
||||||
|
|
||||||
def _deactivate_portal(name: str) -> bool:
|
def _deactivate_portal(name: str) -> bool:
|
||||||
# return false if the portal is not active
|
# return false if the portal is not active
|
||||||
|
|
Loading…
Reference in New Issue