File: tiny-dfr.postinst

package info (click to toggle)
rust-tiny-dfr 0.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 408 kB
  • sloc: sh: 8; makefile: 4
file content (15 lines) | stat: -rwxr-xr-x 393 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e

if [ "$1" = "configure" ]; then
  if [ -z "$2" ]; then
    # debhelper does not start static units. use udevadm to start
    # tiny-dfr on install if/when the hardware allows it
    if command -v udevadm >/dev/null 2>&1; then
      udevadm trigger --action=change --subsystem-match=backlight --subsystem-match=drm --subsystem-match=input || true
    fi
  fi
fi


#DEBHELPER#