diff options
author | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-11 15:42:01 (GMT) |
---|---|---|
committer | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-11 15:42:01 (GMT) |
commit | 9809a97ce4ac8f5b374c7b1d91b5d4571dbf6392 (patch) | |
tree | b30dbdb81a1b1f446f440a22037b2fc4192bda4e /files/common/www/service/cgi-bin/splash | |
parent | ed254615ad04befe9f847879b3d78567c51f673b (diff) |
split /www into subdirs for several services; adapt uhttpd config
This patch splits the single uhttpd instance into two uhttpd instances
with www root /www/<servicename> for the following purposes:
- service :: self-service / debugging / status.xml
- redirection :: use for splash/robinson redirection
The uhttpd uci config is adapted: by default all instances declared
there are disabled; They shall be enabled by the FSM inetable. To this
end a listen_http directive will be added and the config type will be
changed from 'disabled' to 'uhttpd' by state transition scripts.
Diffstat (limited to 'files/common/www/service/cgi-bin/splash')
-rwxr-xr-x | files/common/www/service/cgi-bin/splash | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/files/common/www/service/cgi-bin/splash b/files/common/www/service/cgi-bin/splash new file mode 100755 index 0000000..ee907d6 --- /dev/null +++ b/files/common/www/service/cgi-bin/splash @@ -0,0 +1,8 @@ +#!/bin/sh +echo -en "Status: 200 OK\r\n" +echo -en "Content-Type: text/html\r\n" +echo -en "\r\n" +#targeturl=$(echo $QUERY_STRING) +#targeturl=$(echo $QUERY_STRING | sed -f /etc/urlencode.sed) +targeturl=`echo $QUERY_STRING` +sed "s/targeturl/"$targeturl"/g" /www/splash.html |