Files
bananarchy/overlay/rootfs/etc/local.d/10-bananarchy-hardware.start
T

14 lines
435 B
Bash
Executable File

#!/bin/sh
# Make sure the out-of-tree camera driver, the cover-panel spidev driver and
# the spi-mux modules are loaded even when the boot-runlevel "modules" service
# could not process /etc/modules (it needs /bin/sed, which was missing on some
# rootfs builds).
for mod in msm8905-cam spidev mux-core mux-gpio spi-mux; do
i=0
while [ "$i" -lt 5 ]; do
/sbin/modprobe -q "$mod" && break
i=$((i + 1))
sleep 1
done
done