blob: 8ed276e53ffae217a17aaa8314b88b8a0f354efe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
post_install() {
python3 -m compileall /opt/keyboard-center
# force load uinput kernel module
modprobe uinput
# force reload udev rules
udevadm control --reload-rules
udevadm trigger
}
post_upgrade() {
udevadm control --reload-rules
}
pre_remove() {
find /opt/keyboard-center -type f -iname \*.pyc -delete
find /opt/keyboard-center -type d -iname __pycache__ -delete
}
post_remove() {
udevadm control --reload-rules
}
|