From f64c596d2376b65a48cc564dc180a2e4417abe03 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Sun, 25 Mar 2018 19:48:33 +0200 Subject: [PATCH] cleanup firmware images --- update_script | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update_script b/update_script index 198a7cf..d993de2 100755 --- a/update_script +++ b/update_script @@ -60,6 +60,9 @@ touch "${CONFIG_DIR}/hm_addons.cfg" chmod 755 ${ADDON_DIR}/update_addon ${ADDON_DIR}/update_addon ${ADDON_NAME} "${ADDON_DIR}/etc/${ADDON_NAME}-addon.cfg" +echo "cleanup" >>$LOG_FILE +[ -e "${ADDON_DIR}/var/img/RaspberryMatic-unknown.img" ] && rm "${ADDON_DIR}/var/img/RaspberryMatic-unknown.img" + sync if [ "$1" = "" ]; then