gluon-autoupdater: use the new get_model function

This commit is contained in:
Matthias Schiffer 2014-01-12 21:40:19 +01:00
parent 37c0716b9b
commit 2f9b06e825
1 changed files with 2 additions and 1 deletions

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