#!/bin/bash DEPS=() PKG_VER=5.15.14 SOURCE=https://cdn.kernel.org/pub/linux/kernel/v$(echo $PKG_VER | cut -d. -f1).x/linux-$PKG_VER.tar.xz prepare () { curl https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/linux/trunk/config > .config make olddefconfig make -s kernelrelease > version echo "Prepared linux version $( $PKG_DEST/etc/modprobe.d/usb.conf << "EOF" # Begin /etc/modprobe.d/usb.conf install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true # End /etc/modprobe.d/usb.conf EOF }