2010-10-28 16:58:05 +00:00
|
|
|
#!/bin/sh
|
2010-12-11 03:38:35 +00:00
|
|
|
echo -en "Cache-Control: no-cache, max-age=0, no-store, must-revalidate\r\n"
|
|
|
|
echo -en "Pragma: no-cache\r\n"
|
2010-12-11 03:41:08 +00:00
|
|
|
echo -en "Expires: -1\r\n"
|
2011-07-01 13:49:45 +00:00
|
|
|
echo -en "Status: 307 Temporary Redirect\r\n"
|
|
|
|
echo -en "Location: http://$SERVER_ADDR/cgi-bin/luci/splash\r\n"
|
|
|
|
echo -en "\r\n"
|
2011-06-16 23:00:57 +00:00
|
|
|
|
|
|
|
cat <<EOT
|
2011-07-01 13:49:45 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<WISPAccessGatewayParam xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.wballiance.net/wispr_2_0.xsd">
|
|
|
|
<Redirect>
|
|
|
|
<MessageType>100</MessageType>
|
|
|
|
<ResponseCode>0</ResponseCode>
|
|
|
|
<AccessProcedure>1.0</AccessProcedure>
|
|
|
|
<AccessLocation>12</AccessLocation>
|
|
|
|
<LocationName>$SERVER_ADDR</LocationName>
|
|
|
|
<LoginURL>http://$SERVER_ADDR/cgi-bin/luci/splash?wispr=1</LoginURL>
|
|
|
|
<AbortLoginURL>http://$SERVER_ADDR/</AbortLoginURL>
|
|
|
|
</Redirect>
|
|
|
|
</WISPAccessGatewayParam>
|
2011-06-16 23:00:57 +00:00
|
|
|
EOT
|
|
|
|
|