summaryrefslogtreecommitdiff
path: root/libre/qemu-linaro/qemu.install
diff options
context:
space:
mode:
Diffstat (limited to 'libre/qemu-linaro/qemu.install')
-rw-r--r--libre/qemu-linaro/qemu.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/libre/qemu-linaro/qemu.install b/libre/qemu-linaro/qemu.install
new file mode 100644
index 000000000..91546c3ee
--- /dev/null
+++ b/libre/qemu-linaro/qemu.install
@@ -0,0 +1,11 @@
+# Arg 1: the new package version
+post_install() {
+ # create kvm group
+ systemd-sysusers qemu.conf
+
+ # trigger events on modules files when already loaded
+ for _f in /sys/devices/virtual/misc/{kvm,vhost-net}; do
+ [[ -e "$_f" ]] && udevadm trigger "$_f"
+ done
+ :
+}