mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-05-17 00:16:14 +03:00
* Add Amnezia VPN protocol * Fix incorrect post config empty asc handling * Build changes to engage more distros * Improve parameter handling and add handshake debugging * Small cosmetic changes * Small cosmetic changes * Small cosmetic changes * Update main.c copyright Signed-off-by: pokamest <pokamest@gmail.com> --------- Signed-off-by: pokamest <pokamest@gmail.com> Co-authored-by: pokamest <pokamest@gmail.com>
26 lines
771 B
Bash
Executable File
26 lines
771 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
#DEBHELPER#
|
|
|
|
case "$1" in
|
|
install)
|
|
;;
|
|
|
|
configure|reconfigure)
|
|
# Get the version of the current loaded module:
|
|
old_version="$(cat /sys/module/amneziawg/version 2>/dev/null)" || exit 0
|
|
# Get the version of the latest available module:
|
|
new_version="$(modinfo -F version amneziawg 2>/dev/null)" || exit 0
|
|
# See if the new one is actually newer:
|
|
dpkg --compare-versions "$old_version" lt "$new_version" || exit 0
|
|
# Trigger an update notification that recommends a reboot:
|
|
touch /run/reboot-required || true
|
|
grep -Fqsx amneziawg-dkms /run/reboot-required.pkgs || \
|
|
echo amneziawg-dkms >> /run/reboot-required.pkgs || true
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
exit 0 |