diff options
author | Nicolas Stinus | 2017-05-03 22:31:38 +0800 |
---|---|---|
committer | Nicolas Stinus | 2017-05-06 12:01:57 +0800 |
commit | f9085566d8ac3f9bfebb9cd505307284124d74f4 (patch) | |
tree | f6c32fe2e8dafb61700e5ad94bb8bd9726007973 /PKGBUILD | |
parent | bcf8e1c1f8097e4da65cfb0fce43c4273cbee459 (diff) | |
download | aur-f9085566d8ac3f9bfebb9cd505307284124d74f4.tar.gz |
nordvpn: use vpnfailsafe i.o. update-resolv-conf if available
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8,7 +8,8 @@ arch=(any) url="http://www.nordvpn.com" license=('MIT') depends=('openvpn' 'systemd' 'openvpn-update-resolv-conf-git') -optdepends=('iputils: run ping and rank functions') +optdepends=('iputils: run ping and rank functions' + 'vpnfailsafe-git: use instead of update-resolv-conf if available') makedepends=('unzip' 'coreutils') provides=('nordvpn') source=('https://nordvpn.com/api/files/zip') @@ -26,10 +27,9 @@ build() { for f in $(find conf -name '*udp1194.ovpn'); do sed 's/^auth-user-pass.*$/auth-user-pass \/etc\/openvpn\/client\/nordvpn\/credentials.conf/g' -i $f echo "" >> $f - echo "# This updates the resolvconf with dns settings" >> $f echo "script-security 2" >> $f - echo "up /etc/openvpn/update-resolv-conf" >> $f - echo "down /etc/openvpn/update-resolv-conf" >> $f + echo "up /etc/openvpn/client/nordvpn/updown" >> $f + echo "down /etc/openvpn/client/nordvpn/updown" >> $f done } |