aboutsummaryrefslogtreecommitdiffstats
path: root/community/brightnessctl/brightnessctl.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'community/brightnessctl/brightnessctl.post-install')
-rw-r--r--community/brightnessctl/brightnessctl.post-install10
1 files changed, 10 insertions, 0 deletions
diff --git a/community/brightnessctl/brightnessctl.post-install b/community/brightnessctl/brightnessctl.post-install
new file mode 100644
index 00000000000..fc16251e6b2
--- /dev/null
+++ b/community/brightnessctl/brightnessctl.post-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# If we have udev running then reload the rules and add the
+# proper subsystems so people can use it
+if [ -S /run/udev/control ]; then
+ udevadm control --reload-rules
+ udevadm trigger -s leds -s backlight -c add
+fi
+
+exit 0