SpectreOS-old/pacman-hooks/backup-modules-post.hook

14 lines
314 B
Text
Raw Permalink Normal View History

2018-07-17 23:26:31 +02:00
[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)'