Skip to content

Commit

Permalink
feat: allow to customize init with /etc/cartesi-init.d
Browse files Browse the repository at this point in the history
  • Loading branch information
edubart committed Apr 15, 2024
1 parent 1256b6e commit 8e9071b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys-utils/cartesi-init/cartesi-init
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ busybox stty -onlcr
[ -f /etc/environment ] && . /etc/environment
export PATH

# 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

Expand Down

0 comments on commit 8e9071b

Please sign in to comment.