Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(it87-dkms-git): fixed post_upgrade script #6580

Merged
merged 23 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/it87-dkms-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pkgbase = it87-dkms-git
gives = it87
pkgver = 152
pkgrel = 2
pkgdesc = Linux Driver for ITE LPC chips
url = https://github.com/frankcrawford/it87
arch = x86_64
Expand Down
17 changes: 14 additions & 3 deletions packages/it87-dkms-git/it87-dkms-git.pacscript
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
pkgname="it87-dkms-git"
gives="it87"
pkgver="152"
_pkgoldver="152"
pkgrel="2"
pkgdesc="Linux Driver for ITE LPC chips"
arch=('x86_64' 'i686')
url='https://github.com/frankcrawford/it87'
Expand Down Expand Up @@ -31,7 +33,16 @@ package() {
}

post_upgrade() {
update-initramfs -u -k all
DKMS_NAME="${gives}"
DKMS_VERSION="${pkgver}"
DKMS_OLD_VERSION="${_pkgoldver}"

dkms remove -m "${DKMS_NAME}" -v "${DKMS_OLD_VERSION}" --all || true
dkms add -m "${DKMS_NAME}" -v "${DKMS_VERSION}"
dkms build -m "${DKMS_NAME}" -v "${DKMS_VERSION}"
dkms install -m "${DKMS_NAME}" -v "${DKMS_VERSION}" --force || true
Xdavius marked this conversation as resolved.
Show resolved Hide resolved

update-initramfs -u
}

post_install() {
Expand All @@ -42,7 +53,7 @@ post_install() {
dkms build -m "${DKMS_NAME}" -v "${DKMS_VERSION}"
dkms install -m "${DKMS_NAME}" -v "${DKMS_VERSION}" --force || true

update-initramfs -u -k all
update-initramfs -u
}

pre_remove() {
Expand All @@ -51,5 +62,5 @@ pre_remove() {

dkms remove -m "${DKMS_NAME}" -v "${DKMS_VERSION}" --all || true

update-initramfs -u -k all
update-initramfs -u
}
1 change: 1 addition & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -4895,6 +4895,7 @@ pkgname = internxt-deb
pkgbase = it87-dkms-git
gives = it87
pkgver = 152
pkgrel = 2
pkgdesc = Linux Driver for ITE LPC chips
url = https://github.com/frankcrawford/it87
arch = x86_64
Expand Down
Loading