From fcb5c87ef055b67516686fc706f0c386ed05b9ca Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Fri, 8 Nov 2019 13:36:27 +0100 Subject: [PATCH] fix: enabling fstrim.timer from setup.py for updating users --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 906dcfd..547bfa0 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,13 @@ def install_system_files(): os.system("systemctl daemon-reload") -install_system_files() +def installer(): + install_system_files() + # for people updating https://github.com/evilsocket/pwnagotchi/pull/551/files + os.system("systemctl enable fstrim.timer") + + +installer() required = [] with open('requirements.txt') as fp: