gluon-status-page: show model
This commit is contained in:
parent
de2c9ceefa
commit
601fd3f3ea
@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/gluon/functions/model.sh
|
||||
|
||||
escape_html() {
|
||||
sed 's/&/\&/g; s/</\</g; s/>/\>/g; s/"/\"/g; s/'"'"'/\'/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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user