diff --git a/sys-utils/cartesi-init/cartesi-init b/sys-utils/cartesi-init/cartesi-init index 13863fe9..7e9fa086 100755 --- a/sys-utils/cartesi-init/cartesi-init +++ b/sys-utils/cartesi-init/cartesi-init @@ -23,6 +23,9 @@ busybox stty -onlcr export PATH [ -f /etc/environment ] && . /etc/environment +# execute scripts in cartesi-init.d +[ -d /etc/cartesi-init.d ] && for f in /etc/cartesi-init.d/*; do [ -x $f ] && . $f; done + # execute init from device tree when available [ -f /proc/device-tree/cartesi-machine/init ] && . /proc/device-tree/cartesi-machine/init