gluon-config-mode-core: serve config mode in normal mode
This commit starts a second uhttpd instance bound to localhost:81 which serves the config mode during normal runtime. This is useful to change settings via ssh port forwarding: ssh routername -L 12345:127.0.0.1:81 Then you can access the config mode on your computer using http://localhost:12345/.
This commit is contained in:
parent
430c0ecc60
commit
343b98d08d
14
package/gluon-config-mode-core/files/etc/init.d/gluon-config-mode
Executable file
14
package/gluon-config-mode-core/files/etc/init.d/gluon-config-mode
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=50
|
||||
|
||||
USE_PROCD=1
|
||||
|
||||
UHTTPD_BIN="/usr/sbin/uhttpd"
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param respawn
|
||||
procd_set_param command "$UHTTPD_BIN" -f -h /lib/gluon/config-mode/www -x /cgi-bin -A 1 -R -p 127.0.0.1:81
|
||||
procd_close_instance
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/gluon/autoupdater/lib.sh
|
||||
|
||||
|
||||
start_enabled gluon-config-mode
|
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/gluon/autoupdater/lib.sh
|
||||
|
||||
|
||||
stop gluon-config-mode
|
Loading…
Reference in New Issue
Block a user