PKGBUILDs/extra/qemu/qemu-common.install

15 lines
315 B
Text
Raw Normal View History

2022-05-09 13:42:41 +00:00
post_install() {
if [[ -d /run/udev ]]; then
local file files=(
/sys/devices/virtual/misc/vhost-net
)
# trigger change event when modules are already loaded
for file in "${files[@]}"; do
if [[ -d $file ]]; then
udevadm trigger --action=change "$file"
fi
done
fi
}