udevadm
[usb-wde1-tools.git] / Makefile
1 PLUGINS = /etc/munin/plugins
2
3 install: lninstall
4
5 lninstall:
6         ln -sf $(abspath systemd/usb-wde1-log.service) /etc/systemd/system/
7         systemctl daemon-reload
8         systemctl start usb-wde1-log
9         systemctl enable usb-wde1-log
10
11         ln -sf $(abspath munin/usb-wde1_) $(PLUGINS)/usb-wde1_temperature
12         ln -sf $(abspath munin/usb-wde1_) $(PLUGINS)/usb-wde1_humidity
13
14 uninstall:
15         systemctl stop usb-wde1-log
16         systemctl disable usb-wde1-log
17         rm /etc/systemd/system/usb-wde1-log.service
18         systemctl daemon-reload
19
20         rm -f $(PLUGINS)/usb-wde1_temperature
21         rm -f $(PLUGINS)/usb-wde1_humidity
22
23 .PHONY: install lninstall uninstall