]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
vpnc-script: Detect systemd with resolvectl status
authorJordan Justen <jljusten@gmail.com>
Mon, 25 Oct 2021 07:54:20 +0000 (00:54 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Thu, 18 Nov 2021 05:51:01 +0000 (05:51 +0000)
commit8f289ea712d8ce4f3d57acabe0813225501d0118
treede4ae0f7445a15171252ff4e3e81da35f300b863
parentd4c14b2b22ee8ab917db6db9fdfdd91cd7139d50
vpnc-script: Detect systemd with resolvectl status

It appears that the "resolvectl status" command has been available since:

Ref: https://github.com/systemd/systemd/commit/c2e84cab3afb09e726be40ce80b6ce6129c8af32
Ref: https://github.com/systemd/systemd/commit/a7a4c60a253a181385764bcb542906a312b68fe9

which was first released in systemd v239 from June 2018.

systemd-resolve is usually symlinked to resolvectl, but it appears to
be deprecated. This change will still fallback to trying
systemd-resolve if resolvectl fails.

Signed-off-by: Jordan Justen <jljusten@gmail.com>
vpnc-script