1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 09:16:11 +00:00

Update install, uninstall in makefile

This commit is contained in:
MatMoul 2017-01-05 00:46:30 +01:00
parent b12946759d
commit b85fa22ac2

View File

@ -30,6 +30,7 @@ install:
@sudo test -s /etc/$(PROGN)/reboot || sudo cp /etc/$(PROGN)/samples/all_off /etc/$(PROGN)/reboot
@sudo cp systemd/$(PROGN).service /lib/systemd/system
@sudo cp systemd/$(PROGN)-reboot.service /lib/systemd/system
@sudo systemctl daemon-reload
@sudo systemctl start $(PROGN)
@sudo systemctl enable $(PROGN)
@sudo systemctl enable $(PROGN)-reboot
@ -39,6 +40,7 @@ uninstall:
@sudo systemctl disable $(PROGN)-reboot
@sudo rm /lib/systemd/system/$(PROGN).service
@sudo rm /lib/systemd/system/$(PROGN)-reboot.service
@sudo systemctl daemon-reload
@sudo rm /etc/udev/rules.d/$(PROGN).rules
@sudo rm /usr/bin/g410-led
@sudo rm /usr/bin/g610-led