git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
5ef1485
)
applications/splash: remove set -x from splash.sh
author
Manuel Munz
<redacted>
Sat, 30 May 2015 23:13:30 +0000
(
01:13
+0200)
committer
Manuel Munz
<redacted>
Sat, 30 May 2015 23:13:30 +0000
(
01:13
+0200)
applications/luci-app-splash/htdocs/cgi-bin/splash/splash.sh
patch
|
blob
|
history
diff --git
a/applications/luci-app-splash/htdocs/cgi-bin/splash/splash.sh
b/applications/luci-app-splash/htdocs/cgi-bin/splash/splash.sh
index 76f6d4d3e41e240b4b9bb4df8cc05e3790c839f0..da8370dafa9eb726ee8b1a466ab9a99f4d03f986 100755
(executable)
--- a/
applications/luci-app-splash/htdocs/cgi-bin/splash/splash.sh
+++ b/
applications/luci-app-splash/htdocs/cgi-bin/splash/splash.sh
@@
-1,13
+1,11
@@
#!/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"
git clone https://git.99rst.org/PROJECT