mirror of
https://github.com/MatMoul/g810-led.git
synced 2024-12-23 09:16:11 +00:00
Update udev and remove systemd start service
This commit is contained in:
parent
c986c7e2a9
commit
cb24ce8909
4
makefile
4
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:
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user