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/.
15 lines
276 B
Bash
Executable File
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
|
|
}
|