Skip to content

Commit

Permalink
board/common: basic feature probe
Browse files Browse the repository at this point in the history
Currently does not need any conditions, but may later need to check for
loaded modules and other capabilities.

Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Oct 12, 2023
1 parent 3a3274c commit b44e303
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions board/common/rootfs/etc/finit.d/10-infix.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
run [S] /lib/infix/probe -- Probing system information
run [S] <pid/syslogd> /lib/infix/sysctl-sync-ip-conf --
run [S] <pid/syslogd> /lib/infix/nameif -- Probing network interfaces
6 changes: 6 additions & 0 deletions board/common/rootfs/lib/infix/probe
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b44e303

Please sign in to comment.