don't run --remove if daemon is not present

This commit is contained in:
Adnan Hodzic 2020-09-11 21:57:17 +02:00
parent 28cd1e7cd9
commit 557b0f956c
1 changed files with 6 additions and 0 deletions

View File

@ -220,6 +220,12 @@ def deploy_daemon():
# remove auto-cpufreq daemon
def remove():
# check if auto-cpufreq is installed
if not os.path.exists("/usr/bin/auto-cpufreq-remove"):
print("\nauto-cpufreq daemon is not installed.\n")
sys.exit(1)
print("\n" + "-" * 21 + " Removing auto-cpufreq daemon " + "-" * 22 + "\n")
print("* Turn on bluetooth on boot")