nixos-config/packages/tools/system/surface-control/0000-nixos-chmod.patch

10 lines
829 B
Diff
Raw Normal View History

2021-09-04 17:26:38 +00:00
diff --git a/etc/udev/40-surface-control.rules b/etc/udev/40-surface-control.rules
index db90d63..f5857c8 100644
--- a/etc/udev/40-surface-control.rules
+++ b/etc/udev/40-surface-control.rules
@@ -1,2 +1,2 @@
-KERNEL=="01:03:01:00:01", SUBSYSTEM=="surface_aggregator", RUN+="/usr/bin/chmod 664 /sys/bus/surface_aggregator/devices/01:03:01:00:01/perf_mode"
-KERNEL=="01:03:01:00:01", SUBSYSTEM=="surface_aggregator", RUN+="/usr/bin/chown root:surface-control /sys/bus/surface_aggregator/devices/01:03:01:00:01/perf_mode"
+KERNEL=="01:03:01:00:01", SUBSYSTEM=="surface_aggregator", RUN+="@CHMODBINARY@ 664 /sys/bus/surface_aggregator/devices/01:03:01:00:01/perf_mode"
+KERNEL=="01:03:01:00:01", SUBSYSTEM=="surface_aggregator", RUN+="@CHMODBINARY@ root:surface-control /sys/bus/surface_aggregator/devices/01:03:01:00:01/perf_mode"