gluon-status-page: show model

This commit is contained in:
Nils Schneider 2014-02-13 12:55:34 +01:00
parent c7bdc0ee6e
commit 4589fa6595
1 changed files with 3 additions and 0 deletions

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