Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 0bc8589

Browse files
author
Christophe - CC4
authored
fix: i2c activation
1 parent 792e494 commit 0bc8589

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stage2/07-enable-i2c/00-run.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash -e
22

3-
on_chroot << EOF
4-
raspi-config nonint do_i2c 0
5-
EOF
3+
echo "i2c-dev" >> "${ROOTFS_DIR}/etc/modules"
4+
echo "SUBSYSTEM==\"i2c-dev\",KERNEL==\"i2c-[0-9]+\", GROUP=\"i2c\", MODE=\"0660\"" >> "${ROOTFS_DIR}/lib/udev/rules.d/60-i2c-tools.rules"

0 commit comments

Comments
 (0)