From c0c2f6544e00a58c818373be729d9257a2084a25 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 7 May 2025 08:03:21 +0200 Subject: [PATCH] Update alpine-install.func --- misc/alpine-install.func | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/misc/alpine-install.func b/misc/alpine-install.func index 2d3a4660..03d7d86b 100644 --- a/misc/alpine-install.func +++ b/misc/alpine-install.func @@ -98,8 +98,6 @@ msg_error() { setting_up_container() { msg_info "Setting up Container OS" - NS_VALUE=$(echo "$PCT_OPTIONS" | sed -n 's/.*-nameserver=\([^ ]*\).*/\1/p') - if [ "$UDHCPC_FIX" == "yes" ]; then CONFIG_FILE="/etc/udhcpc/udhcpc.conf" if grep -q '^#RESOLV_CONF=' "$CONFIG_FILE"; then @@ -109,16 +107,6 @@ setting_up_container() { fi fi - if [ "$NS_VALUE" != "" ] && [ "$NS_VALUE" != "Host" ]; then - - CONFIG_FILE="/etc/udhcpc/udhcpc.conf" - if grep -q '^#RESOLV_CONF=' "$CONFIG_FILE"; then - sed -i 's/^#RESOLV_CONF=.*/RESOLV_CONF="no"/' "$CONFIG_FILE" - else - echo 'RESOLV_CONF="no"' >>"$CONFIG_FILE" - fi - fi - while [ $i -gt 0 ]; do if [ "$(ip addr show | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | cut -d'/' -f1)" != "" ]; then break