blob: 8d874b3a8c5f6d4711423b52c76ab016f4c90c90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
post_install() {
ldconfig
udevadm control --reload-rules
systemctl daemon-reload
echo "Enabling razerd.service"
systemctl enable razerd.service
echo "Starting razerd.service"
systemctl start razerd.service
}
post_upgrade() {
ldconfig
udevadm control --reload-rules
systemctl daemon-reload
systemctl restart razerd.service
echo "Restarting razerd.service"
}
pre_remove() {
systemctl stop razerd.service
}
post_remove() {
udevadm control --reload-rules
systemctl daemon-reload
}
|