blob: 73b9801f196283f5a9d25433b9d5bc68e17e0905 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
post_install() {
systemctl stop key-mapper || true
systemctl disable key-mapper || true
systemctl enable input-remapper
systemctl start input-remapper
}
post_upgrade() {
if [ -d "/run/systemd/system/" ] && systemctl is-active --quiet key-mapper
then
systemctl stop key-mapper || true
systemctl disable key-mapper || true
systemctl restart input-remapper
fi
}
|