summarylogtreecommitdiffstats
path: root/modules-reload.hook
diff options
context:
space:
mode:
authorEwout van Mansom2023-04-18 00:21:31 +0200
committerEwout van Mansom2023-04-18 00:21:31 +0200
commit0c9dd7cdf04d728dcabd58bd8b4c2a303e669a35 (patch)
tree32bbbf12b4fdea5f5b8c85685bf286712591241b /modules-reload.hook
downloadaur-pacman-hook-reload-modules.tar.gz
initial commit
Diffstat (limited to 'modules-reload.hook')
-rw-r--r--modules-reload.hook12
1 files changed, 12 insertions, 0 deletions
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