Skip to content
Snippets Groups Projects
Commit 601fd3f3 authored by Nils Schneider's avatar Nils Schneider
Browse files

gluon-status-page: show model

parent de2c9cee
No related branches found
No related tags found
No related merge requests found
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment