From 1bb4822dca6113f73e3bc89e2acf15935e6f8e92 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 3 Dec 2014 15:17:05 +0100 Subject: Rework LuCI build system * Rename subdirectories to their repective OpenWrt package names * Make each LuCI module its own standalone package * Deploy a shared luci.mk which is used by each module Makefile Signed-off-by: Jo-Philipp Wich --- .../htdocs/cgi-bin/splash/splash.sh | 35 ++++++++++++++++++++++ .../luci-app-splash/htdocs/luci/splash/index.html | 10 +++++++ 2 files changed, 45 insertions(+) create mode 100755 applications/luci-app-splash/htdocs/cgi-bin/splash/splash.sh create mode 100644 applications/luci-app-splash/htdocs/luci/splash/index.html (limited to 'applications/luci-app-splash/htdocs') diff --git a/applications/luci-app-splash/htdocs/cgi-bin/splash/splash.sh b/applications/luci-app-splash/htdocs/cgi-bin/splash/splash.sh new file mode 100755 index 000000000..76f6d4d3e --- /dev/null +++ b/applications/luci-app-splash/htdocs/cgi-bin/splash/splash.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +$(uci -q get luci_splash.general.redirect_url) || { + set -x + touch /var/state/luci_splash_locations + touch /etc/config/luci_splash_locations + MAC=$(grep "$REMOTE_HOST" /proc/net/arp | awk '{print $4}') + uci -P /var/state set luci_splash_locations.${MAC//:/}=redirect + uci -P /var/state set luci_splash_locations.${MAC//:/}.location="http://${HTTP_HOST}${REQUEST_URI}" + set +x +} + +echo -en "Cache-Control: no-cache, max-age=0, no-store, must-revalidate\r\n" +echo -en "Pragma: no-cache\r\n" +echo -en "Expires: -1\r\n" +echo -en "Status: 307 Temporary Redirect\r\n" +echo -en "Location: http://$SERVER_ADDR/cgi-bin/luci/splash\r\n" +echo -en "\r\n" + +cat < + + + 100 + 0 + 1.0 + 12 + $SERVER_ADDR + http://$SERVER_ADDR/cgi-bin/luci/splash?wispr=1 + http://$SERVER_ADDR/ + + +EOT + + diff --git a/applications/luci-app-splash/htdocs/luci/splash/index.html b/applications/luci-app-splash/htdocs/luci/splash/index.html new file mode 100644 index 000000000..486409a2e --- /dev/null +++ b/applications/luci-app-splash/htdocs/luci/splash/index.html @@ -0,0 +1,10 @@ + + + + + + + +LuCI - Lua Configuration Interface + + -- cgit v1.2.3