mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-02-26 14:59:38 +08:00
Update install_pve.sh
This commit is contained in:
parent
7087ccd0a0
commit
bf0849526d
1 changed files with 2 additions and 3 deletions
|
@ -624,7 +624,7 @@ check_haveged
|
||||||
_yellow "Detecting system information, will probably stay on the page for up to 1~2 minutes"
|
_yellow "Detecting system information, will probably stay on the page for up to 1~2 minutes"
|
||||||
_yellow "正在检测系统信息,大概会停留在该页面最多1~2分钟"
|
_yellow "正在检测系统信息,大概会停留在该页面最多1~2分钟"
|
||||||
|
|
||||||
check_interface()
|
check_interface(){
|
||||||
if [ -z "$interface_2" ]; then
|
if [ -z "$interface_2" ]; then
|
||||||
interface=${interface_1}
|
interface=${interface_1}
|
||||||
return
|
return
|
||||||
|
@ -652,13 +652,12 @@ check_interface()
|
||||||
for iface in $interfaces_list; do
|
for iface in $interfaces_list; do
|
||||||
if [[ "$iface" = "$interface_1" || "$iface" = "$interface_2" ]]; then
|
if [[ "$iface" = "$interface_1" || "$iface" = "$interface_2" ]]; then
|
||||||
interface="$iface"
|
interface="$iface"
|
||||||
return
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ -z "$interface" ]; then
|
if [ -z "$interface" ]; then
|
||||||
interface="eth0"
|
interface="eth0"
|
||||||
return
|
|
||||||
fi
|
fi
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
interface="eth0"
|
interface="eth0"
|
||||||
|
|
Loading…
Reference in a new issue