From 293c64e723818e9f4afd6c57e498a31b565ce221 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Sun, 12 Jan 2014 21:40:19 +0100
Subject: [PATCH] gluon-autoupdater: use the new get_model function

---
 package/gluon-autoupdater/files/usr/sbin/autoupdater | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/gluon-autoupdater/files/usr/sbin/autoupdater b/package/gluon-autoupdater/files/usr/sbin/autoupdater
index c473f271b..a012bbce2 100755
--- a/package/gluon-autoupdater/files/usr/sbin/autoupdater
+++ b/package/gluon-autoupdater/files/usr/sbin/autoupdater
@@ -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
-- 
GitLab