gluon/package/gluon-config-mode-core/files/etc/init.d/gluon-config-mode
lemoer 343b98d08d 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/.
2021-01-04 07:17:07 +01:00

15 lines
276 B
Bash
Executable File

#!/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
}