summarylogtreecommitdiffstats
path: root/catalyst-test.install
diff options
context:
space:
mode:
authorVi0L02019-01-20 21:46:18 +0100
committerVi0L02019-01-20 21:46:18 +0100
commit540858796b369122432b51c2ba61e39c68cc9bfc (patch)
treef85b56d0103eb86b68bd61982edac1f6cf31e16a /catalyst-test.install
parent01d8873ad50819b5625c55e8b75d0f69e63f142e (diff)
downloadaur-540858796b369122432b51c2ba61e39c68cc9bfc.tar.gz
4.20 kernel support
Diffstat (limited to 'catalyst-test.install')
-rw-r--r--catalyst-test.install12
1 files changed, 9 insertions, 3 deletions
diff --git a/catalyst-test.install b/catalyst-test.install
index 68598bc842aa..3ed8251de095 100644
--- a/catalyst-test.install
+++ b/catalyst-test.install
@@ -57,10 +57,16 @@ pre_upgrade(){
fi
# remove hook fglrx
sed '/^HOOKS/s/ *fglrx//' -i etc/mkinitcpio.conf
- systemctl stop catalyst-hook.service
- systemctl disable catalyst-hook.service
+ if systemctl is-active -q catalyst-hook; then
+ systemctl stop catalyst-hook.service
+ fi
+ if systemctl is-enabled -q catalyst-hook > /dev/null 2>&1; then
+ systemctl disable catalyst-hook.service
+ fi
# remove existing fglrx modules
- usr/bin/catalyst_build_module ra
+ if [[ -e usr/bin/catalyst_build_module ]]; then
+ usr/bin/catalyst_build_module ra
+ fi
}
post_install(){