While ['echo $ REPLY | wc-W'-lt 2];
Do
Read-p "Input you need to use the network adapter, separated by a space. current cards ('echo $ ETHERNET_ALL '), chose two :"
Done
ETHERNET = $ REPLY
For I in 'seq 1 3 ';
Do
Read-p "Input the bridge ip address and netmask. separated by a space :"
If ['echo $ REPLY | wc-L'-eq 0];
Then
Echo "Input empty. this bridage will no ip address ."
REPLY = "0.0.0.0 0.0.0.0"
Sleep 3
Break
Elif 'echo $ REPLY | grep-v [0-9].>/dev/Null ';
Then
Echo "Use only numbers and points ."
Elif ['echo $ REPLY | awk {print $2} | wc-L'-eq 0]
Then
Echo "Input errors, exit ."
Exit 2
Else
Break
Fi
Done
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.