Skip to content

Instantly share code, notes, and snippets.

@loopyd
Created July 10, 2019 02:39
Show Gist options
  • Save loopyd/0a75021b0a0b95d486c65e432244a910 to your computer and use it in GitHub Desktop.
Save loopyd/0a75021b0a0b95d486c65e432244a910 to your computer and use it in GitHub Desktop.
Helpful snippets for patching a kernel created for the Arch pkgbuild system.
#!/bin/bash
# [ArchTricks] ezkernelpatches.sh - code snippets to help patch your kernel...
# For source=() section
for ln in $(find ./*.patch -type f -exec sha256sum {} \; | awk '{print $1}'); do echo " '$ln'"; done
# For sha256sum=() section
for ln in $(find *.patch -type f -exec echo {} \; | awk '{print $1}'); do echo " $ln"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment