From cb24ce890909ac525097e2a14c0f371e8c876c28 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Fri, 14 Apr 2017 03:05:50 +0200 Subject: [PATCH] Update udev and remove systemd start service --- makefile | 4 +--- makerelease | 2 +- udev/g810-led.rules | 14 +++++++------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/makefile b/makefile index cdb117e..f170d74 100644 --- a/makefile +++ b/makefile @@ -62,7 +62,6 @@ setup: @cp udev/$(PROGN).rules $(DESTDIR)/etc/udev/rules.d @test -s /usr/bin/systemd-run && \ install -m 755 -d $(DESTDIR)$(SYSTEMDDIR)/system && \ - cp systemd/$(PROGN).service $(DESTDIR)$(SYSTEMDDIR)/system && \ cp systemd/$(PROGN)-reboot.service $(DESTDIR)$(SYSTEMDDIR)/system install-lib: lib @@ -80,10 +79,9 @@ install: setup @test -s /etc/$(PROGN)/reboot || \ cp /etc/$(PROGN)/samples/all_off /etc/$(PROGN)/reboot @udevadm control --reload-rules + @$(PROGN) -p /etc/$(PROGN)/profile @test -s /usr/bin/systemd-run && \ systemctl daemon-reload && \ - systemctl start $(PROGN) && \ - systemctl enable $(PROGN) && \ systemctl enable $(PROGN)-reboot uninstall-lib: diff --git a/makerelease b/makerelease index 631ca16..9053726 100755 --- a/makerelease +++ b/makerelease @@ -39,7 +39,7 @@ sed -i "/MAJOR=/cMAJOR=\"${VPART[0]}\"" makefile sed -i "/MINOR=/cMINOR=\"${VPART[1]}\"" makefile sed -i "/MICRO=/cMICRO=\"${VPART[2]}\"" makefile -git commit -m "Version $version" src/* +git commit -m "Version $version" makefile src/* git push git checkout master diff --git a/udev/g810-led.rules b/udev/g810-led.rules index 8cb72ec..68ead9d 100644 --- a/udev/g810-led.rules +++ b/udev/g810-led.rules @@ -1,7 +1,7 @@ -ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c331", MODE="666" -ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c337", MODE="666" -ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c330", MODE="666" -ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c333", MODE="666" -ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c338", MODE="666" -ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c32b", MODE="666" -ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c335", MODE="666" +ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c330", MODE="666" RUN+="/usr/bin/g410-led -p /etc/g810-led/profile" +ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c333", MODE="666" RUN+="/usr/bin/g610-led -p /etc/g810-led/profile" +ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c338", MODE="666" RUN+="/usr/bin/g610-led -p /etc/g810-led/profile" +ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c331", MODE="666" RUN+="/usr/bin/g810-led -p /etc/g810-led/profile" +ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c337", MODE="666" RUN+="/usr/bin/g810-led -p /etc/g810-led/profile" +ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c32b", MODE="666" RUN+="/usr/bin/g910-led -p /etc/g810-led/profile" +ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c335", MODE="666" RUN+="/usr/bin/g910-led -p /etc/g810-led/profile"