mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
14 lines
315 B
Text
14 lines
315 B
Text
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
|
|
}
|