diff --git a/board/common/rootfs/etc/finit.d/10-infix.conf b/board/common/rootfs/etc/finit.d/10-infix.conf index b2cabd10e..1fbbcb0da 100644 --- a/board/common/rootfs/etc/finit.d/10-infix.conf +++ b/board/common/rootfs/etc/finit.d/10-infix.conf @@ -1,2 +1,3 @@ +run [S] /lib/infix/probe -- Probing system information run [S] /lib/infix/sysctl-sync-ip-conf -- run [S] /lib/infix/nameif -- Probing network interfaces diff --git a/board/common/rootfs/lib/infix/probe b/board/common/rootfs/lib/infix/probe new file mode 100755 index 000000000..fd4f1ade7 --- /dev/null +++ b/board/common/rootfs/lib/infix/probe @@ -0,0 +1,6 @@ +#!/bin/sh +# Probe for various types of harware features + +if dmesg |grep -q QEMU || test -d /sys/module/qemu_fw_cfg; then + initctl cond set qemu +fi