diff options
-rw-r--r-- | user/wireguard-module/APKBUILD | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/user/wireguard-module/APKBUILD b/user/wireguard-module/APKBUILD index 6543966cd..614beff16 100644 --- a/user/wireguard-module/APKBUILD +++ b/user/wireguard-module/APKBUILD @@ -25,6 +25,11 @@ build() { } package() { + if [ -f $HOME/kernel_key.pem ]; then + /usr/src/linux-$_kver$_kflavour/scripts/sign-file sha512 \ + $HOME/kernel_key.pem $HOME/kernel_key.pem \ + "$builddir"/src/wireguard.ko + fi make -C src DEPMOD=true KERNELDIR="/usr/src/linux-$_kver$_kflavour" INSTALL_MOD_PATH="$pkgdir" module-install } |