#!/usr/bin/env sh # Copyright 2023 Tj # Licensed on the terms of the GNU GPL version 3.0 set -e set -x base_url="${base_url:-https://iam.tj/projects/cube-i1-W/}" archive="${archive:-atomisp_modules.tar.bz2}" # fetch the latest binary modules cd /tmp || exit 1 # allow orginal file to be replaced with the more recent version wget --backups=5 "${base_url}/${archive}" cd - || exit 1 # unload modules sudo modprobe -r atomisp sudo modprobe -r atomisp_ov2680 sudo modprobe -r atomisp_gmin_platform # enable dev_dbg() etc via dynamic_debug >"/etc/modprobe.d/atomisp.conf" cat <