mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-30 03:32:43 +00:00
21 lines
309 B
Plaintext
21 lines
309 B
Plaintext
do_setcap() {
|
|
setcap cap_sys_admin+p $(readlink -f $(which sunshine))
|
|
}
|
|
|
|
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
|
|
}
|
|
|