mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 07:33:01 +02:00
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:
@@ -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
|
||||
|
||||
+1
-2
@@ -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
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec initctl -bq cond set ixinit-done
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user