From 038e93dc9b251888e88e8bd577811a13559a3118 Mon Sep 17 00:00:00 2001 From: nahoj Date: Sun, 10 Sep 2017 17:52:24 +0200 Subject: [PATCH] add Makefile for init script and Munin plugin --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile 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 -- 2.30.2