Skip to content

Commit 998005c

Browse files
committed
feat: copy duetscreen.json on first boot
1 parent 04274bc commit 998005c

File tree

1 file changed

+7
-0
lines changed
  • board/duet3d/duetscreen/rootfs_overlay/etc/init.d

1 file changed

+7
-0
lines changed

board/duet3d/duetscreen/rootfs_overlay/etc/init.d/S02setup

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ case "$1" in
8787
[ $? -eq 0 ] && echo "OK" || echo "ERROR"
8888
fi
8989

90+
# Copy screen settings
91+
if [ -f /boot/duetscreen.json ]; then
92+
echo -n "Found duetscreen.json on /boot, copying... "
93+
cp /boot/duetscreen.json /etc/duetscreen.json
94+
[ $? -eq 0 ] && echo "OK" || echo "ERROR"
95+
fi
96+
9097
;;
9198
stop)
9299
;;

0 commit comments

Comments
 (0)