summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-07-29 15:58:01 +0200
committerChristian Pointner <equinox@spreadspace.org>2023-07-29 15:58:01 +0200
commitb4afe7e394ac5b53186ed6a31a36209896d3b0b5 (patch)
tree8a3dad336d17fb9572578482a0d9422ecf62de2b
parentadd initial config for raspi-openwrt (diff)
ch-rapsi-openwrt: enable i2c on boot
-rw-r--r--inventory/host_vars/ch-raspi-openwrt.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-raspi-openwrt.yml b/inventory/host_vars/ch-raspi-openwrt.yml
index 5c2f893d..9539b1c8 100644
--- a/inventory/host_vars/ch-raspi-openwrt.yml
+++ b/inventory/host_vars/ch-raspi-openwrt.yml
@@ -13,6 +13,7 @@ openwrt_packages_remove:
- dnsmasq
- odhcpd-ipv6only
openwrt_packages_add:
+ - kmod-i2c-bcm2835
- kmod-usb-net-rtl8152
- kmod-usb-storage
- kmod-usb-storage-extras
@@ -40,6 +41,10 @@ openwrt_mixin:
/etc/htoprc:
file: "{{ global_files_dir }}/common/htoprc"
+ /etc/uci-defaults/99-boot-config.txt:
+ content: |
+ echo "dtparam=i2c=on" >> /boot/config.txt
+
openwrt_uci:
system: