From 01009c12d06c0e5ad941f92417311afb60c93999 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 27 Dec 2018 18:36:50 +0000 Subject: [PATCH] clunk.service: Support for some configuration through EnvironmentFile. The default is still to use ClunkPi. --- clunk.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clunk.service b/clunk.service index 6b3c85c..499eb19 100644 --- a/clunk.service +++ b/clunk.service @@ -7,7 +7,9 @@ Documentation=man:clunk(8) DynamicUser=true SupplementaryGroups=gpio StateDirectory=clunk -ExecStart=clunk -f %S/clunk/clunk.state -C pinctrl-bcm2835 -L 17 +Environment="CLUNK_OPTIONS=-C pinctrl-bcm2835 -L 17" +EnvironmentFile=/etc/default/clunk +ExecStart=clunk -f %S/clunk/clunk.state $CLUNK_OPTIONS [Install] WantedBy=multi-user.target -- 2.30.2