From c2bcf2dd3e02ff8c4a61e6d8ebc0cca660c84bf2 Mon Sep 17 00:00:00 2001
From: Daniel Barlow <dan@telent.net>
Date: Tue, 18 Oct 2022 15:47:27 +0100
Subject: [PATCH] fixup 4b513cd

---
 devices/gl-ar750/default.nix | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/devices/gl-ar750/default.nix b/devices/gl-ar750/default.nix
index 547dc84..6e243c4 100644
--- a/devices/gl-ar750/default.nix
+++ b/devices/gl-ar750/default.nix
@@ -66,7 +66,13 @@
             chmod -R u+w .
             cp -av ${openwrt}/target/linux/ath79/files/* .
             chmod -R u+w .
-            for i in ${openwrt}/target/linux/ath79/patches-5.15/* ; do patch --batch --forward -p1 < $i ;done
+            patches() {
+              for i in $* ; do patch --batch --forward -p1 < $i ;done
+            }
+            patches ${openwrt}/target/linux/generic/backport-5.15/*.patch
+            patches ${openwrt}/target/linux/generic/pending-5.15/*.patch
+            patches ${openwrt}/target/linux/generic/hack-5.15/*.patch
+            patches ${openwrt}/target/linux/ath79/patches-5.15/*.patch
           '';
           installPhase = ''
             mkdir -p $out