]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
Use systemd-resolve to check if resolved is running
authorTrygve Aaberge <trygveaa@gmail.com>
Sun, 12 Aug 2018 09:53:31 +0000 (11:53 +0200)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 30 Nov 2020 19:37:24 +0000 (19:37 +0000)
commit60a5929a295b2fa94b97d1168e65181a3aa7b7a9
treeabf29906ac44a7b6b14f70ae302b47228ad1f985
parent330e25c4f050096a09f45e2053de358397a361d8
Use systemd-resolve to check if resolved is running

resolved may be included in nsswitch.conf even though systemd-resolved
is not running. E.g. Arch Linux includes resolved in nsswitch.conf by
default, but systemd-resolved is not enabled by default, which causes
this script to fail updating dns.

This patch uses the systemd-resolve command, which is included with
systemd, to check if systemd-resolved is actually running.

Signed-off-by: Trygve Aaberge <trygveaa@gmail.com>
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
vpnc-script