applications/luci-splash: make it work with uhttpd

This commit is contained in:
Jo-Philipp Wich 2010-10-28 16:58:05 +00:00
parent 6a48025d68
commit 28b5b2b637
2 changed files with 24 additions and 25 deletions

View 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"

View file

@ -147,20 +147,16 @@ qos_iface_del() {
boot() { boot() {
### Setup splash-relay ### Setup splash-relay
uci get lucid.splashr 2>/dev/null || { uci get uhttpd.splash 2>/dev/null || {
uci batch <<EOF uci batch <<EOF
set lucid.splashr=daemon set uhttpd.splash=uhttpd
set lucid.splashr.slave=httpd set uhttpd.splash.home="/www/cgi-bin/splash/"
add_list lucid.splashr.address=8082 set uhttpd.splash.interpreter=".sh=/bin/ash"
add_list lucid.splashr.publisher=splashredir set uhttpd.splash.listen_http="8082"
set lucid.splashr.enabled=1 set uhttpd.splash.index_page="splash.sh"
set uhttpd.splash.error_page="/splash.sh"
set lucid.splashredir=Redirector commit uhttpd
set lucid.splashredir.name=Splashd
set lucid.splashredir.virtual='/'
set lucid.splashredir.physical=':80/luci/splash'
commit lucid
EOF EOF
} }