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