SpectreOS/configs/pacman-hooks/backup-modules-post.hook
2022-10-04 19:01:31 +02:00

13 lines
314 B
Text
Executable file

[Trigger]
Operation = Remove
Operation = Upgrade
Type = Package
Target = linux
Target = linux-hardened
Target = linux-mainline
[Action]
Depends = coreutils
Depends = bash
When = PostTransaction
Exec = /usr/bin/bash -c '[[ -d /usr/lib/modules/$(uname -r) ]] || ln -s /tmp/$(uname -r) /usr/lib/modules/$(uname -r)'