SpectreOS-old/pacman-hooks/backup-modules-post.hook
2018-07-17 23:26:31 +02:00

13 lines
314 B
Text

[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)'