gluon-status-page: show model

This commit is contained in:
Nils Schneider 2014-02-13 12:55:34 +01:00
parent de2c9ceefa
commit 601fd3f3ea

View File

@ -1,5 +1,7 @@
#!/bin/sh
. /lib/gluon/functions/model.sh
escape_html() {
sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g'
}
@ -25,6 +27,7 @@ echo "<h1>$(cat /proc/sys/kernel/hostname)</h1>"
echo "<pre>"
echo "Model: $(get_model | escape_html)"
echo "Firmware release: $(cat /lib/gluon/release | escape_html)"
echo