diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-07-30 13:03:57 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-07-30 13:03:57 +0200 |
commit | a8169a774bb7cc60bd2aa3efde295114933a51b7 (patch) | |
tree | b307e8bd11b32483febeee1c97cd20b10a7015bf /debian/update-resolv-conf | |
parent | a46f14d0910a892004a90bb0e246d30daa7d7003 (diff) |
d/update-resolv-conf: Add syslog message if used without binary resolvconf
Diffstat (limited to 'debian/update-resolv-conf')
-rw-r--r-- | debian/update-resolv-conf | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/update-resolv-conf b/debian/update-resolv-conf index 5bebaa4..61b15d9 100644 --- a/debian/update-resolv-conf +++ b/debian/update-resolv-conf @@ -15,7 +15,11 @@ # foreign_option_3='dhcp-option DOMAIN be.bnc.ch' # -[ -x /sbin/resolvconf ] || exit 0 +if [ ! -x /sbin/resolvconf ] ; then + logger "[OpenVPN:update-resolve-conf] missing binary /sbin/resolvconf"; + exit 0; +fi + [ "$script_type" ] || exit 0 [ "$dev" ] || exit 0 |