diff --git a/scripts/check_kernal.sh b/scripts/check_kernal.sh index 548be33..919b854 100644 --- a/scripts/check_kernal.sh +++ b/scripts/check_kernal.sh @@ -239,10 +239,8 @@ if command -v lshw >/dev/null 2>&1; then num_lines=$(echo "$output" | wc -l) if [ $num_lines -eq 1 ]; then ipv6_prefixlen="$output" - elif [[ "${ipv6_gateway_fe80}" == "N" ]]; then - ipv6_prefixlen=$(echo "$output" | head -n 2 | tail -n 1) else - ipv6_prefixlen=$(echo "$output" | tail -n 1) + ipv6_prefixlen=$(echo "$output" | head -n 2 | tail -n 1) fi if [ -z "$ipv6_prefixlen" ]; then ipv6_prefixlen=$(ifconfig eth0 | grep -oP 'prefixlen \K\d+' | head -n 1) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 0b32aae..2039c67 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -881,10 +881,8 @@ if [ ! -f /usr/local/bin/pve_ipv6_prefixlen ] || [ ! -s /usr/local/bin/pve_ipv6_ num_lines=$(echo "$output" | wc -l) if [ $num_lines -eq 1 ]; then ipv6_prefixlen="$output" - elif [[ "${ipv6_gateway_fe80}" == "N" ]]; then - ipv6_prefixlen=$(echo "$output" | head -n 2 | tail -n 1) else - ipv6_prefixlen=$(echo "$output" | tail -n 1) + ipv6_prefixlen=$(echo "$output" | head -n 2 | tail -n 1) fi echo "$ipv6_prefixlen" >/usr/local/bin/pve_ipv6_prefixlen fi