From c13c48cee0820863d4d951632637d26ffa390ef2 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 3 Sep 2023 19:35:02 +0800 Subject: [PATCH] =?UTF-8?q?core:=20netconf=20=E9=98=B2=E6=AD=A2=E6=8A=91?= =?UTF-8?q?=E5=88=B6=E4=BA=86=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trans.sh b/trans.sh index 2775cdf..85df8b3 100644 --- a/trans.sh +++ b/trans.sh @@ -245,7 +245,7 @@ get_netconf_to() { slaac) echo "$ra" | grep 'Autonomous address conf' | grep Yes && res=1 || res=0 ;; dhcpv6) echo "$ra" | grep 'Stateful address conf' | grep Yes && res=1 || res=0 ;; rdnss) res=$(echo "$ra" | grep 'Recursive DNS server' | cut -d: -f2- | xargs) ;; - *) [ -e /dev/$1 ] && res=$(cat /dev/$1) ;; + *) res=$(cat /dev/$1) ;; esac eval "$1='$res'"