From 6380fe51faa72014fd8ded11c38c0616ae32643b Mon Sep 17 00:00:00 2001 From: herrfrei Date: Sun, 13 Aug 2023 18:07:40 +0200 Subject: [PATCH] install overlay file only if it doesn't exist (already pushed to Victron's venus repository) --- setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup b/setup index f6219ad..4d7bb20 100644 --- a/setup +++ b/setup @@ -108,7 +108,8 @@ fi if [ $scriptAction == 'UNINSTALL' ] ; then restoreActiveFile "$gpioListFile" restoreActiveFile "$rulesFile" - restoreActiveFile "$overlayFile" + # install overlay only if it doesn't exist + [ -f "$overlayFile" ] || restoreActiveFile "$overlayFile" # remove mods from configFile - do not use restore in case other mods were made manually if [ -f "$configFile" ]; then