mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-05-17 00:16:14 +03:00
* Hotfix: installation on modern kernels * Cleanup kernel sources and final RPM package fix * Notice in README regarding EPEL and DKMS.
8 lines
215 B
Bash
Executable File
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}" |