Files
amneziawg-linux-kernel-module/debian/amneziawg-dkms.postinst
Iurii Egorov baf34a93ce Add AmneziaWG protocol improvements (#3)
* 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>
2024-03-22 18:37:03 +03:00

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