blob: 5245648d859db7e75e68464dd36148a1a072be83 (
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
27
|
asus-nb-wmi-reload_enabled() {
systemctl is-enabled asus-nb-wmi-reload.service &> /dev/null
if [ $? -eq 0 ]; then
echo 'Service asus-nb-wmi-reload is enabled already'
else
echo 'Enabling asus-nb-wmi-reload service...'
systemctl enable asus-nb-wmi-reload.service &> /dev/null
fi
}
post_upgrade() {
asus-nb-wmi-reload_enabled
systemctl daemon-reload
}
post_install() {
post_upgrade
}
pre_remove() {
echo 'Disabling asus-nb-wmi-reload service...'
systemctl is-enabled asus-nb-wmi-reload.service &> /dev/null
if [ $? -eq 0 ]; then
systemctl disable asus-nb-wmi-reload.service &> /dev/null
fi
systemctl daemon-reload
}
|