Update check_kernal.sh

This commit is contained in:
spiritlhl 2023-08-04 12:58:05 +08:00 committed by GitHub
parent cf6f6e62cf
commit 0889d9cdce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,6 +133,12 @@ if command -v lshw > /dev/null 2>&1 ; then
if [ -z "$ipv6_prefixlen" ]; then
ipv6_prefixlen=$(ifconfig eth0 | grep -oP 'prefixlen \K\d+' | head -n 1)
fi
if [ -z "$ipv6_prefixlen" ]; then
ipv6_prefixlen=$(ifconfig vmbr0 | grep -oP 'prefixlen \K\d+' | head -n 1)
fi
if [ -z "$ipv6_prefixlen" ]; then
ipv6_prefixlen=$(ifconfig vmbr1 | grep -oP 'prefixlen \K\d+' | head -n 1)
fi
echo "$ipv6_prefixlen" > /usr/local/bin/pve_ipv6_prefixlen
fi
if [ ! -f /usr/local/bin/pve_ipv6_gateway ]; then