summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksii Vilchanskyi2017-07-29 15:06:50 +0200
committerOleksii Vilchanskyi2017-07-29 15:06:50 +0200
commitac78425f96689eb2a5a48dc0b605efa5adba7bb4 (patch)
treef1149956525ff6d1de80b241160b7cf22883c6e6
parent667c0407493d35eae953cdc6add4412a1370d962 (diff)
downloadaur-ac78425f96689eb2a5a48dc0b605efa5adba7bb4.tar.gz
Kill ckb in pre_upgrade and pre_remove
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rwxr-xr-xckb-next.install4
3 files changed, 6 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index abd26f02d008..bef4ee2572b6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ckb-next
pkgdesc = Corsair Keyboard and Mouse Input Driver, release version
pkgver = 0.2.8
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/mattanger/ckb-next
install = ckb-next.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index edcbc94e4108..fe6788582fae 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=ckb-next
pkgver=0.2.8
-pkgrel=3
+pkgrel=4
pkgdesc="Corsair Keyboard and Mouse Input Driver, release version"
arch=('i686' 'x86_64')
url="https://github.com/mattanger/ckb-next"
diff --git a/ckb-next.install b/ckb-next.install
index 31029d6523d9..542c3f770daf 100755
--- a/ckb-next.install
+++ b/ckb-next.install
@@ -23,6 +23,8 @@ post_install() {
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
+ msg_blue "Terminating ckb-next GUI..."
+ killall -9 ckb
msg_blue "Terminating ckb-next daemon..."
systemctl daemon-reload
systemctl stop ckb-daemon
@@ -40,6 +42,8 @@ post_upgrade() {
# arg 1: the old package version
pre_remove() {
+ msg_blue "Terminating ckb-next GUI..."
+ killall -9 ckb
msg_blue "Terminating ckb-next daemon..."
systemctl daemon-reload
systemctl stop ckb-daemon