From 4e98ea3f0107eb9f8cea51a1786389a640ec61fd Mon Sep 17 00:00:00 2001 From: Anton Litvinov Date: Tue, 20 Feb 2024 23:16:39 +0400 Subject: [PATCH] Don't use the "tun" interface prefix for resolvconf call Signed-off-by: Anton Litvinov --- bin/package/config/linux/update-resolv-conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/package/config/linux/update-resolv-conf b/bin/package/config/linux/update-resolv-conf index 3735928fea..ddf49f5d2c 100755 --- a/bin/package/config/linux/update-resolv-conf +++ b/bin/package/config/linux/update-resolv-conf @@ -54,9 +54,9 @@ case "$script_type" in for NS in $NMSRVRS ; do R="${R}nameserver $NS\n" done - echo -e -n "$R" | sudo $RESOLVCONFBIN -a "tun.${dev}" + echo -e -n "$R" | sudo $RESOLVCONFBIN -a "${dev}" ;; down) - sudo $RESOLVCONFBIN -d "tun.${dev}" + sudo $RESOLVCONFBIN -d "${dev}" ;; esac