[vpnc-script] breakage with commit 6f87b0fe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 26, 2016 at 10:14:13 -0300, Thiago Padilha wrote:
> It was naive to assume that the existence of /usr/bin/busctl means
> systemd-resolved is being used. I don't know about /etc/nsswitch.conf, but the
> following patch should fix it by adding a couple of additional checks.

Ack, this works for me, thanks for the quick improvement.

As a nitpick, I think it's generally bad to rely on "/usr/bin/foo". How
about something like

  [ -n "$(busctl --version 2>/dev/null)" ]

instead?

-- 
mike



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux