diff options
author | Ewout van Mansom | 2023-04-18 00:21:31 +0200 |
---|---|---|
committer | Ewout van Mansom | 2023-04-18 00:21:31 +0200 |
commit | 0c9dd7cdf04d728dcabd58bd8b4c2a303e669a35 (patch) | |
tree | 32bbbf12b4fdea5f5b8c85685bf286712591241b | |
download | aur-0c9dd7cdf04d728dcabd58bd8b4c2a303e669a35.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 17 | ||||
-rw-r--r-- | modules-reload.hook | 12 |
4 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e3e7b2e74cc1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = pacman-hook-reload-modules + pkgdesc = Pacman hook to invoke systemd-modules-load when its configuration is modified. + pkgver = 1 + pkgrel = 1 + url = https://aur.archlinux.org/packages/pacman-hook-reload-modules + arch = any + license = GPL + depends = systemd + source = modules-reload.hook + md5sums = c60ee68bf22fa7b4d10b7db57d71b854 + +pkgname = pacman-hook-reload-modules diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..3069deb1417e --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/ +pkg/ +*.pkg.* +*.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..032720e7149f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,17 @@ +# Maintainer: Ewout van Mansom <ewout@vanmansom.name> + +pkgname=pacman-hook-reload-modules +pkgver=1 +pkgrel=1 +pkgdesc="Pacman hook to invoke systemd-modules-load when its configuration is modified." +arch=("any") +license=("GPL") +depends=('systemd') +url='https://aur.archlinux.org/packages/pacman-hook-reload-modules' +source=(modules-reload.hook) +md5sums=('c60ee68bf22fa7b4d10b7db57d71b854') + +package() { + install -m755 -d "${pkgdir}/usr/share/libalpm/hooks" + install -m644 "${srcdir}/modules-reload.hook" "${pkgdir}/usr/share/libalpm/hooks/95-modules-reload.hook" +} diff --git a/modules-reload.hook b/modules-reload.hook new file mode 100644 index 000000000000..89966a1ca781 --- /dev/null +++ b/modules-reload.hook @@ -0,0 +1,12 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Operation = Remove +Type = Path +Target = usr/lib/modules-load.d/* +Target = etc/modules-load.d/* + +[Action] +Description = Reloading kernel modules... +When = PostTransaction +Exec = /usr/bin/systemctl restart systemd-modules-load.service |