Skip to content

Commit

Permalink
opendingux: add -q to killall -USR1 gmenu2x
Browse files Browse the repository at this point in the history
Avoids polluting udev log when the cable is (un)plugged while something
other than gmenu2x is running.

Signed-off-by: Gleb Mazovetskiy <[email protected]>
  • Loading branch information
glebm authored and pcercuei committed Nov 11, 2022
1 parent 64abeae commit 6d6a09b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SUBSYSTEM!="power_supply", GOTO="usb_end"
ENV{POWER_SUPPLY_NAME}!="usb-charger", GOTO="usb_end"

ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="/usr/sbin/usb start", RUN+="/usr/bin/killall -USR1 /usr/libexec/gmenu2x"
ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="/usr/sbin/usb stop", RUN+="/usr/bin/killall -USR1 /usr/libexec/gmenu2x"
ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="/usr/sbin/usb start", RUN+="/usr/bin/killall -q -USR1 /usr/libexec/gmenu2x"
ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="/usr/sbin/usb stop", RUN+="/usr/bin/killall -q -USR1 /usr/libexec/gmenu2x"

LABEL="usb_end"

0 comments on commit 6d6a09b

Please sign in to comment.