diff options
author | Vi0L0 | 2019-01-20 21:46:18 +0100 |
---|---|---|
committer | Vi0L0 | 2019-01-20 21:46:18 +0100 |
commit | 540858796b369122432b51c2ba61e39c68cc9bfc (patch) | |
tree | f85b56d0103eb86b68bd61982edac1f6cf31e16a /catalyst-test.install | |
parent | 01d8873ad50819b5625c55e8b75d0f69e63f142e (diff) | |
download | aur-540858796b369122432b51c2ba61e39c68cc9bfc.tar.gz |
4.20 kernel support
Diffstat (limited to 'catalyst-test.install')
-rw-r--r-- | catalyst-test.install | 12 |
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(){ |