Welcome! Log In Create A New Profile


Run script before cgi

September 02, 2021 04:53AM
Hi all,

We are working on OpenWrt 17.07.8 project with our own developing device.
Since device only have 128MB RAM, it is not enough to do sysupgrade from WebUI.

So, we would like to stop some services before upload firmware.bin.
The url is /cgi-bin/cgi-upload and it has following rules definitions(we use nginx+uwsgi).

location ~ /cgi-bin/cgi-(backup|download|upload|exec) {
include uwsgi_params;
uwsgi_param SERVER_ADDR $server_addr;
uwsgi_modifier1 9;
uwsgi_pass unix:////var/run/luci-cgi_io.socket;

We would like to know if it is possible to
1. stop services before pass upload data to be luci-cgi_io.socket?
2. filiter url(cgi-upload) and stop services?

Please share anything if you know something. Thanks.
Subject Author Posted

Run script before cgi

psychesnet September 02, 2021 04:53AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 281
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready