Skip to content

Commit

Permalink
feat!: renamed kernel device.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolitzer committed Dec 18, 2023
1 parent dfacba4 commit 073b1c7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions sys-utils/cartesi-init/cartesi-init
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,10 @@ if [ -n "$ENTRYPOINT" ]; then
HOME=$(eval echo ~$USER)
WORKDIR=${WORKDIR:-"$HOME"}

# give user group access to rollup and yield devices
[ -c /dev/rollup ] && \
busybox chown :$(busybox id -g $USER) /dev/rollup && \
busybox chmod g+rw /dev/rollup
[ -c /dev/yield ] &&
busybox chown :$(busybox id -g $USER) /dev/yield && \
busybox chmod g+rw /dev/yield
# give user group access to cmio device
[ -c /dev/cmio ] && \
busybox chown :$(busybox id -g $USER) /dev/cmio && \
busybox chmod g+rw /dev/cmio

# execute entrypoint
(cd $WORKDIR &&
Expand Down

0 comments on commit 073b1c7

Please sign in to comment.