diff --git a/amd-ucode_reload.hook b/amd-ucode_reload.hook new file mode 100644 index 0000000..09205a2 --- /dev/null +++ b/amd-ucode_reload.hook @@ -0,0 +1,10 @@ +[Trigger] +Operation = Upgrade +Type = Path +Target = usr/lib/firmware/amd-ucode/* + +[Action] +Description = Applying CPU microcode updates... +When = PostTransaction +Depends = sh +Exec = /bin/sh -c 'echo 1 > /sys/devices/system/cpu/microcode/reload' diff --git a/intel-ucode_reload.hook b/intel-ucode_reload.hook new file mode 100644 index 0000000..5bb4478 --- /dev/null +++ b/intel-ucode_reload.hook @@ -0,0 +1,10 @@ +[Trigger] +Operation = Upgrade +Type = Path +Target = usr/lib/firmware/intel-ucode/* + +[Action] +Description = Applying CPU microcode updates... +When = PostTransaction +Depends = sh +Exec = /bin/sh -c 'echo 1 > /sys/devices/system/cpu/microcode/reload'