openconnect: fix token_script error handling/logging
authorThomas Winkler <redacted>
Tue, 10 Mar 2026 12:40:28 +0000 (13:40 +0100)
committerNikos Mavrogiannopoulos <redacted>
Sat, 14 Mar 2026 07:11:05 +0000 (08:11 +0100)
commit15500a07f836b15916d29f908eca9973d4a9903d
treea9dadb0f91ec77684f83b5002fb37eddfdc52e33
parent638335582aa78d363e4fe4e04b8fd1ab8bd98de8
openconnect: fix token_script error handling/logging

When token_script fails, proto_setup_failed() notifies netifd that
setup has failed, but script execution continues regardless.
This commit adds exit 1 and sleep 5 (consistent with wireguard.sh
error handling) to abort setup on token_script failure. Also fix
typo in logger tag ("openconenct" -> "openconnect").

Signed-off-by: Thomas Winkler <redacted>
net/openconnect/files/openconnect.sh
git clone https://git.99rst.org/PROJECT