Skip to content

Commit

Permalink
applications/splash: remove set -x from splash.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mmunz committed May 30, 2015
1 parent 5ef1485 commit 0fe4e46
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions applications/luci-app-splash/htdocs/cgi-bin/splash/splash.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 0fe4e46

Please sign in to comment.