File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,22 @@ cp "${PICONFIG_CMDLINE_TXT_FILE}" "${PICONFIG_CMDLINE_BAK_FILE}"
47
47
echo_green " Disable Serial Linux console ..."
48
48
sed -i ' s/console=serial0,115200 //' " ${PICONFIG_CMDLINE_TXT_FILE} "
49
49
50
- # Step 9: Disable bluetooth and related services
50
+ # Step 9: Enable i2c modules
51
+ # Also needs corresponding bits in config.txt (see #196)
52
+ echo_green " Enabling i2c-dev"
53
+ sed /etc/modprobe.d/raspi-blacklist.conf -i -e " s/^\(blacklist[[:space:]]*i2c[-_]bcm2708\)/#\1/"
54
+ sed /etc/modules -i -e " s/^#[[:space:]]*\(i2c[-_]dev\)/\1/"
55
+ if ! grep -q " ^i2c[-_]dev" /etc/modules; then
56
+ printf " i2c-dev\n" >> /etc/modules
57
+ fi
58
+
59
+ # Step 10: Disable bluetooth and related services
51
60
echo_green " Disabling Bluetooth related services..."
52
61
systemctl_if_exists disable hciuart.service
53
62
systemctl_if_exists disable bluetooth.service
54
63
systemctl_if_exists disable bluealsa.service
55
64
56
- # Step 10 : Increase swapfile size
65
+ # Step 11 : Increase swapfile size
57
66
if [[ -f " ${PICONFIG_SWAP_CONF_FILE} " ]]; then
58
67
echo_green " Increasing swap file size to ${PICONFIG_SWAP_SIZE} Mb. Limit to ${PICONFIG_SWAP_MAX} Mb"
59
68
sed -i ' s/^CONF_SWAPSIZE.*/' CONF_SWAPSIZE=" ${PICONFIG_SWAP_SIZE} " ' /' " ${PICONFIG_SWAP_CONF_FILE} "
You can’t perform that action at this time.
0 commit comments