summarylogtreecommitdiffstats
path: root/sunshine.install
blob: 942441b062fa41b83078852a7d46c3480b2d5f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
do_setcap() {
  setcap cap_sys_admin+p $(readlink -f $(which sunshine))
  echo
  echo "WARNING: sunshine has full root access"
  echo
}

do_udev_reload() {
  udevadm control --reload-rules
  udevadm trigger --property-match=DEVNAME=/dev/uinput
  modprobe uinput || true
}

post_install() {
  do_setcap
  do_udev_reload
}

post_upgrade() {
  do_setcap
  do_udev_reload
}