aboutsummarylogtreecommitdiffstats
path: root/linux-modules-backup.hook
blob: 4fad29672cf1177579959fa3c4c7df462f990330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Author: James Cherti
# URL: https://github.com/jamescherti/archlinux-linux-keep-modules
# License: Distributed under terms of the MIT license.
[Trigger]
Operation = Upgrade
Type = Path
Target = usr/lib/modules/*

[Action]
Description = Backup the modules of the currently running Linux kernel
When = PreTransaction
Depends = rsync
Depends = bash
Depends = coreutils
Exec = /usr/share/libalpm/scripts/pacman-hook-linux-modules.sh backup