interfaces: PATH is not complete in dhclient-script

PR: https://forum.opnsense.org/index.php?topic=26995.0
This commit is contained in:
Franco Fichtner 2022-02-16 16:21:01 +01:00
parent ea3facd2db
commit 481c6f943f

View File

@ -225,7 +225,7 @@ add_new_resolv_conf() {
rm -f /tmp/${interface}_nameserver
rm -f /tmp/${interface}_searchdomain
if [ "$(pluginctl -g system.dnsallowoverride)" != "1" ]; then
if [ "$(/usr/local/sbin/pluginctl -g system.dnsallowoverride)" != "1" ]; then
# prevent installing DNS information when not allowed
return 0
fi