You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux/x86/base-files/lib/preinit/02_load_x86_ucode

11 lines
230 B
Bash

#!/bin/sh
# Copyright (C) 2018 OpenWrt.org
do_load_x86_ucode() {
if [ -e "/sys/devices/system/cpu/microcode/reload" ]; then
echo 1 > /sys/devices/system/cpu/microcode/reload
fi
}
boot_hook_add preinit_main do_load_x86_ucode