blob: 1a3b8247cc79e65f11517541cd9358cda2a8873c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
post_install() {
systemctl daemon-reload
echo "Enabling Services..."
systemctl enable --now open-fprintd python3-validity python3-validity-suspend-hotfix
echo "Reloading Udev Rules..."
udevadm control --reload-rules
udevadm trigger
}
post_upgrade() {
if (( $(vercmp $2 0.14-4) < 0)); then
echo "Enabling Services..."
systemctl enable --now python3-validity-suspend-hotfix
fi
systemctl daemon-reload
}
pre_remove() {
echo "Disabling Services..."
systemctl stop python3-validity python3-validity-suspend-hotfix
systemctl disable --now python3-validity python3-validity-suspend-hotfix
}
|