mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-01 16:29:17 +08:00
Update check_kernal.sh
This commit is contained in:
parent
07afa788fc
commit
975af208c4
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ if command -v lshw > /dev/null 2>&1 ; then
|
|||
echo "$ipv6_prefixlen" > /usr/local/bin/pve_ipv6_prefixlen
|
||||
fi
|
||||
if [ ! -f /usr/local/bin/pve_ipv6_gateway ]; then
|
||||
ipv6_gateway=$(ip -6 route show | awk '/default via/{print $3}')
|
||||
ipv6_gateway=$(ip -6 route show | awk '/default via/{print $3}' | head -n1)
|
||||
echo "$ipv6_gateway" > /usr/local/bin/pve_ipv6_gateway
|
||||
fi
|
||||
ipv6_address=$(cat /usr/local/bin/pve_check_ipv6)
|
||||
|
|
Loading…
Reference in a new issue