What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

resolvconf: command not found

dony71

Regular Contributor
Trying to run wireguard script wg-quick which using resolvconf command
Get error /opt/bin/wg-quick: line 31: resolvconf: command not found
Which entware package need to be installed for this resolvconf command?
 
Trying to run wireguard script wg-quick which using resolvconf command
Get error /opt/bin/wg-quick: line 31: resolvconf: command not found
Which entware package need to be installed for this resolvconf command?
I suggest you follow the guide on this page to setup your wireguard....
 
I suggest you follow the guide on this page to setup your wireguard....

I have RT-AC68U which mentioned in this forum not stable for wireguard
However I found website link below and I'm trying now but get stuck with this unsupported resolvconf command
 
Often BusyBox has stripped down versions of software. If you have entware installed, you can use

Opkg list

To see if there are any full versions available for resolvconf. Pipe the output to grep to help your search

(On a tiny keyboard, so I can't type this I want it).
 
I have RT-AC68U which mentioned in this forum not stable for wireguard
However I found website link below and I'm trying now but get stuck with this unsupported resolvconf command

I believe the following is from a back-level version of wg-quick....
Code:
set_dns() {
    [[ ${#DNS[@]} -gt 0 ]] || return 0
    # TODO: this is a horrible way of doing it. Has OpenBSD no resolvconf?
    cmd cp /etc/resolv.conf "/etc/resolv.conf.wg-quick-backup.$INTERFACE"
    cmd printf 'nameserver %s\n' "${DNS[@]}" > /etc/resolv.conf
}

unset_dns() {
    [[ -f "/etc/resolv.conf.wg-quick-backup.$INTERFACE" ]] || return 0
    cmd mv "/etc/resolv.conf.wg-quick-backup.$INTERFACE" /etc/resolv.conf
}
so if the Wireguard DNS directive is configured (you can try commenting it out) then the contents of '/etc/resolv.conf' is overwritten after the backup is created.
 
ASUSWRT-Merlin RT-AC68U 384.19_0 Fri Aug 14 19:17:44 UTC 2020
admin@RT-AC68U-C068:/tmp/home/root# opkg list | grep resolvconf
admin@RT-AC68U-C068:/tmp/home/root# opkg list | grep resolvectl
admin@RT-AC68U-C068:/tmp/home/root#

Often BusyBox has stripped down versions of software. If you have entware installed, you can use

Opkg list

To see if there are any full versions available for resolvconf. Pipe the output to grep to help your search

(On a tiny keyboard, so I can't type this I want it).
 
I believe the following is from a back-level version of wg-quick....
Code:
set_dns() {
    [[ ${#DNS[@]} -gt 0 ]] || return 0
    # TODO: this is a horrible way of doing it. Has OpenBSD no resolvconf?
    cmd cp /etc/resolv.conf "/etc/resolv.conf.wg-quick-backup.$INTERFACE"
    cmd printf 'nameserver %s\n' "${DNS[@]}" > /etc/resolv.conf
}

unset_dns() {
    [[ -f "/etc/resolv.conf.wg-quick-backup.$INTERFACE" ]] || return 0
    cmd mv "/etc/resolv.conf.wg-quick-backup.$INTERFACE" /etc/resolv.conf
}
so if the Wireguard DNS directive is configured (you can try commenting it out) then the contents of '/etc/resolv.conf' is overwritten after the backup is created.

Thanks for this script modification
However now the script stuck at
sysctl: command not found
I check opkg also doesn't have sysctl
Any suggestion how to change the script, not to use sysctl command?
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Back
Top