From: nahoj Date: Sun, 10 Sep 2017 15:52:24 +0000 (+0200) Subject: add Makefile for init script and Munin plugin X-Git-Tag: v1.0.0~1 X-Git-Url: https://git.cweiske.de/usb-wde1-tools.git/commitdiff_plain/038e93dc9b251888e88e8bd577811a13559a3118 add Makefile for init script and Munin plugin --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4cba154 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +PLUGINS = /etc/munin/plugins + +install: lninstall + +lninstall: + ln -sf $(abspath init.d/usb-wde-log) /etc/init.d + insserv usb-wde-log + + ln -sf $(abspath munin/usb-wde1_) $(PLUGINS)/usb-wde1_temperature + ln -sf $(abspath munin/usb-wde1_) $(PLUGINS)/usb-wde1_humidity + +uninstall: + service usb-wde-log stop + insserv -r usb-wde-log + rm -f /etc/init.d/usb-wde-log + + rm -f $(PLUGINS)/usb-wde1_temperature + rm -f $(PLUGINS)/usb-wde1_humidity + +.PHONY: install lninstall uninstall