applications/splash: remove set -x from splash.sh
This commit is contained in:
parent
2be6c91416
commit
9eb813979e
1 changed files with 0 additions and 2 deletions
|
@ -1,13 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
$(uci -q get luci_splash.general.redirect_url) || {
|
$(uci -q get luci_splash.general.redirect_url) || {
|
||||||
set -x
|
|
||||||
touch /var/state/luci_splash_locations
|
touch /var/state/luci_splash_locations
|
||||||
touch /etc/config/luci_splash_locations
|
touch /etc/config/luci_splash_locations
|
||||||
MAC=$(grep "$REMOTE_HOST" /proc/net/arp | awk '{print $4}')
|
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//:/}=redirect
|
||||||
uci -P /var/state set luci_splash_locations.${MAC//:/}.location="http://${HTTP_HOST}${REQUEST_URI}"
|
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 "Cache-Control: no-cache, max-age=0, no-store, must-revalidate\r\n"
|
||||||
|
|
Loading…
Reference in a new issue