Files
amneziawg-linux-kernel-module/kernel-tree-scripts/cleanup-sources.sh
Iurii Egorov c98173803a Build fixes for newer kernels (#13)
* Hotfix: installation on modern kernels

* Cleanup kernel sources and final RPM package fix

* Notice in README regarding EPEL and DKMS.
2024-08-05 18:14:38 +03:00

8 lines
215 B
Bash
Executable File

#!/bin/bash
AWG_TEMP_DIR="$(cat /var/lib/amnezia/amneziawg/.tempdir 2>/dev/null)"
PREFIX=${AWG_TEMP_DIR:-/tmp}
WORKDIR="${PREFIX}/amneziawg"
[ -e kernel ] && rm -f kernel
[ -d "${WORKDIR}" ] && rm -rf "${WORKDIR}"