On 2015/02/26 18:05, [email protected] wrote:
> Hello,
> 
> I had a minor glitch while setting up vpnc on my workstation. After
> "pkg_add vpnc",  I was intructed to add 2 sysctls:
> 
> sysctl net.inet.esp.enable=0
> sysctl net.inet.esp.udpencap=0
> 
> Did that and tried to start vpnc right away:
> 
> # vpnc ./myvpn.conf
> sh: /etc/vpnc-script: cannot execute - Permission denied
> sh: /etc/vpnc-script: cannot execute - Permission denied
> VPNC started in background (pid: 1854)...
> 
> Found out, that /etc/vpnc-script was not executable. After "chmod u+x
> /etc/vpnc-script" everything worked as expected.
> 
> Just courious, if there is an intention for leaving that script not
> executable, or is it packaging bug?

Bug, it was fixed post-5.6.

> Will "pkg_add -u" upgrade
> vpnc-scripts in future, after I changed one of its files?

If you edit /etc/vpnc-script, the package will be updated, but the
file in /etc will *not* be updated, you will need to merge changes
(if there are any) from /usr/local/share/vpnc-scripts/vpnc-script.

Reply via email to