[GH-ISSUE #7] proto_amneziawg_check_installed: not found #1

Open
opened 2026-10-13 21:04:46 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @Ser9ei on GitHub (May 14, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-openwrt/issues/7

Exception in the log after starting the awg below:

daemon.notice netifd: Interface 'awg0' is setting up now
daemon.notice netifd: awg0 (16184): ./amneziawg.sh: eval: line 308: proto_amneziawg_check_installed: not found
kern.info kernel: [ 2116.844450] amneziawg: WireGuard 1.0.0 (Amnezia VPN) loaded. See www.wireguard.com for information.
kern.info kernel: [ 2116.853608] amneziawg: Copyright (C) 2015-2019 Jason A. Donenfeld Jason@zx2c4.com. All Rights Reserved.
daemon.notice netifd: Interface 'awg0' is now down
daemon.notice netifd: Interface 'awg0' is setting up now
user.notice amneziawg: info: using kernel-space kmod-amneziawg for /usr/bin/awg
daemon.notice netifd: Interface 'awg0' is now up
daemon.notice netifd: Network device 'awg0' link is up

Source code (amneziawg.sh file of the 'amneziawg-tools'):

proto_amneziawg_teardown() {
	local config="$1"
	proto_amneziawg_check_installed
	if proto_amneziawg_is_kernel_mode; then
		ip link del dev "${config}" >/dev/null 2>&1
	else
		rm -f "/var/run/amneziawg/${config}.sock"
	fi
}

Looks like "proto_amneziawg_check_installed" should be defined or removed from the 'proto_amneziawg_teardown' function

Originally created by @Ser9ei on GitHub (May 14, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-openwrt/issues/7 Exception in the log after starting the awg below: > daemon.notice netifd: Interface 'awg0' is setting up now > daemon.notice netifd: awg0 (16184): ./amneziawg.sh: eval: line 308: proto_amneziawg_check_installed: not found > kern.info kernel: [ 2116.844450] amneziawg: WireGuard 1.0.0 (Amnezia VPN) loaded. See www.wireguard.com for information. > kern.info kernel: [ 2116.853608] amneziawg: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. > daemon.notice netifd: Interface 'awg0' is now down > daemon.notice netifd: Interface 'awg0' is setting up now > user.notice amneziawg: info: using kernel-space kmod-amneziawg for /usr/bin/awg > daemon.notice netifd: Interface 'awg0' is now up > daemon.notice netifd: Network device 'awg0' link is up Source code (amneziawg.sh file of the 'amneziawg-tools'): ``` proto_amneziawg_teardown() { local config="$1" proto_amneziawg_check_installed if proto_amneziawg_is_kernel_mode; then ip link del dev "${config}" >/dev/null 2>&1 else rm -f "/var/run/amneziawg/${config}.sock" fi } ``` Looks like "proto_amneziawg_check_installed" should be defined or removed from the 'proto_amneziawg_teardown' function
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-openwrt#1
No description provided.