gluon-autoupdater: use the new get_model function

This commit is contained in:
Matthias Schiffer 2014-01-12 21:40:19 +01:00
parent 13e3d7ff79
commit 293c64e723

View File

@ -37,7 +37,8 @@ cleanup() {
trap cleanup INT TERM EXIT PIPE
my_model="$(cat /tmp/sysinfo/model | sed 's/ /-/g' | tr '[A-Z]' '[a-z]')"
. /lib/gluon/functions/model.sh
my_model="$(get_model | tr '[A-Z]' '[a-z]' | sed -r 's/[^a-z0-9]+/-/g')"
if [ ! -f "$VERSION_FILE" ]; then
echo "Couldn't determine firmware version!" >&2