From 5f976809a133af0ff38deb93afd7080cfbe41a0e Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Mon, 13 Jan 2014 12:45:55 +0100 Subject: [PATCH] gluon-autoupdater: strip trailing - from model --- package/gluon-autoupdater/files/usr/sbin/autoupdater | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-autoupdater/files/usr/sbin/autoupdater b/package/gluon-autoupdater/files/usr/sbin/autoupdater index a012bbce..6a543fad 100755 --- a/package/gluon-autoupdater/files/usr/sbin/autoupdater +++ b/package/gluon-autoupdater/files/usr/sbin/autoupdater @@ -38,7 +38,7 @@ cleanup() { trap cleanup INT TERM EXIT PIPE . /lib/gluon/functions/model.sh -my_model="$(get_model | tr '[A-Z]' '[a-z]' | sed -r 's/[^a-z0-9]+/-/g')" +my_model="$(get_model | tr '[A-Z]' '[a-z]' | sed -r 's/[^a-z0-9]+/-/g;s/-$//')" if [ ! -f "$VERSION_FILE" ]; then echo "Couldn't determine firmware version!" >&2