board/common: Collect all system init in a dedicated runparts dir

This makes it easier to add more scripts without having to update the
finit config file, and it clarifies which of the scripts in
/libexec/infix only execute at boot.
This commit is contained in:
Tobias Waldekranz
2024-06-07 10:10:38 +02:00
parent dfdd3b1090
commit a5d98e9351
6 changed files with 5 additions and 6 deletions
@@ -1,3 +1 @@
run [S] log:console /libexec/infix/probe -- Probing system information
run [S] <pid/syslogd> /libexec/infix/sysctl-sync-ip-conf --
run [S] <pid/syslogd> /libexec/infix/nameif -- Probing network interfaces
task name:ixinit log:tag:ixinit [S] <pid/syslogd> /libexec/finit/runparts -p /libexec/infix/init.d -- Probing system
@@ -10,8 +10,7 @@ sysctl net.ipv4.conf.default >$tmp
sysctl net.ipv6.conf.default >>$tmp
for iface in $(ip -j link show | jq -r .[].ifname); do
sed -e "s/.default./.${iface}./g" $tmp | sysctl -p -
sed -e "s/.default./.${iface}./g" $tmp | sysctl -q -p -
done
rm $tmp
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
exec initctl -bq cond set ixinit-done
+1 -1
View File
@@ -1,6 +1,6 @@
#set DEBUG=1
run name:bootstrap log:prio:user.notice norestart <pid/syslogd> \
run name:bootstrap log:prio:user.notice norestart <usr/ixinit-done> \
[S] /usr/libexec/confd/bootstrap \
-- Bootstrapping YANG datastore