applications/luci-splash: make it work with uhttpd
This commit is contained in:
parent
6a48025d68
commit
28b5b2b637
2 changed files with 24 additions and 25 deletions
3
applications/luci-splash/htdocs/cgi-bin/splash/splash.sh
Executable file
3
applications/luci-splash/htdocs/cgi-bin/splash/splash.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
echo -en "Status: 302 Moved\r\n"
|
||||
echo -en "Location: http://$SERVER_ADDR/cgi-bin/luci/splash\r\n\r\n"
|
|
@ -147,20 +147,16 @@ qos_iface_del() {
|
|||
|
||||
boot() {
|
||||
### Setup splash-relay
|
||||
uci get lucid.splashr 2>/dev/null || {
|
||||
uci get uhttpd.splash 2>/dev/null || {
|
||||
uci batch <<EOF
|
||||
set lucid.splashr=daemon
|
||||
set lucid.splashr.slave=httpd
|
||||
add_list lucid.splashr.address=8082
|
||||
add_list lucid.splashr.publisher=splashredir
|
||||
set lucid.splashr.enabled=1
|
||||
set uhttpd.splash=uhttpd
|
||||
set uhttpd.splash.home="/www/cgi-bin/splash/"
|
||||
set uhttpd.splash.interpreter=".sh=/bin/ash"
|
||||
set uhttpd.splash.listen_http="8082"
|
||||
set uhttpd.splash.index_page="splash.sh"
|
||||
set uhttpd.splash.error_page="/splash.sh"
|
||||
|
||||
set lucid.splashredir=Redirector
|
||||
set lucid.splashredir.name=Splashd
|
||||
set lucid.splashredir.virtual='/'
|
||||
set lucid.splashredir.physical=':80/luci/splash'
|
||||
|
||||
commit lucid
|
||||
commit uhttpd
|
||||
EOF
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue