File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / coova-chilli / www / chillijs.chi.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 22:48:25 2012 UTC (12 years, 8 months ago) by misho
Branches: coova-chilli, MAIN
CVS tags: v1_0_12, HEAD
coova-chilli

#!/bin/sh
# copyright (c) David Bird <david@coova.com>
# this is the pure shell version...

cat <<EOF
HTTP/1.0 200 OK
Content-Type: text/javascript
Cache: none

EOF

. ./config.sh

cat ChilliLibrary.js
echo "chilliController.host = '$hs_uamlisten';"
echo "chilliController.port = $hs_uamport;"
[ -n "$hs_uamservice" ] && echo "chilliController.uamService = '$hs_uamservice';"
[ "$hs_openidauth" = "on" ] && echo "chilliController.openid = true;"

cat chilliController.js

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>