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:
parent
b12946759d
commit
b85fa22ac2
2
makefile
2
makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user