summaryrefslogtreecommitdiffstats
path: root/client/shared/lib
diff options
context:
space:
mode:
authoradv <adv@uma.es>2012-02-14 12:22:39 +0000
committeradv <adv@uma.es>2012-02-14 12:22:39 +0000
commit5b26871fdecb8fdf937b1dac7ba421557eea5d06 (patch)
tree04353f27e2e79f6680046b9789f446791b8a222a /client/shared/lib
parente031dd387b288cc7bf372387f9488d2081f6c5a7 (diff)
#477 #483 httpdlog: internacionalizacion; scripts httpd_runengine.sh -ejecutor de engine y variables OG-
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2560 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/lib')
-rw-r--r--client/shared/lib/httpd/httpd-log.sh3
-rwxr-xr-xclient/shared/lib/httpd/httpd-runengine.sh9
2 files changed, 11 insertions, 1 deletions
diff --git a/client/shared/lib/httpd/httpd-log.sh b/client/shared/lib/httpd/httpd-log.sh
index 12e6823c..ae76b5fe 100644
--- a/client/shared/lib/httpd/httpd-log.sh
+++ b/client/shared/lib/httpd/httpd-log.sh
@@ -5,7 +5,8 @@ echo ""
#echo "<html><head><meta http-equiv='Refresh' content='2,URL=./example3.sh'><title>Bash as CGI"
echo "<html><head><title>OpenGnsys Client</title></head><body>"
-echo "<h1> NO APAGAR POR FAVOR. host $(hostname -s)</h1> "
+echo "<h1> $(./httpd-runengine.sh 'ogEcho $MSG_HTTPLOG_NOUSE' ) . host $(hostname -s)</h1> "
+
echo "<IFRAME SRC='bandwidth.sh' WIDTH=250 HEIGHT=80> <A HREF="bandwidth.sh">link</A> </IFRAME> "
diff --git a/client/shared/lib/httpd/httpd-runengine.sh b/client/shared/lib/httpd/httpd-runengine.sh
new file mode 100755
index 00000000..aa145078
--- /dev/null
+++ b/client/shared/lib/httpd/httpd-runengine.sh
@@ -0,0 +1,9 @@
+# Exportar parĂ¡metros del kernel.
+
+for i in $(cat /proc/cmdline); do
+ echo $i | grep -q "=" && export $i
+done
+
+
+. /opt/opengnsys/etc/preinit/loadenviron.sh > /dev/null
+eval $1