light.postinst 376B

123456789101112
  1. #!/bin/sh
  2. set -e
  3. #DEBHELPER#
  4. udevadm control --reload
  5. udevadm trigger --subsystem-match=backlight --subsystem-match=leds --action=change --settle
  6. # Reset udev rule action back to 'add', it was set to 'change' during
  7. # dh_auto_configure to make sure they are effective right away.
  8. sed -i 's/^ACTION=="change"/ACTION=="add"/g' /usr/lib/udev/rules.d/90-light-backlight.rules