fix: Wizard

This commit is contained in:
喵二
2024-06-22 10:09:46 +08:00
committed by GitHub
parent 4f657b8cb6
commit c79a3cddf9

View File

@@ -95,7 +95,7 @@ setip(){
# Network Wizard # Network Wizard
network_wizard() { network_wizard() {
read -p "Do you want Network Wizard"? /// 是否使用网络向导?(Enter 确认,按 0 退出): " use_wizard read -p "Do you want Network Wizard? /// 是否使用网络向导?(Enter 确认,按 0 退出): " use_wizard
if [ "$use_wizard" == "0" ]; then if [ "$use_wizard" == "0" ]; then
echo "网络向导已退出。" echo "网络向导已退出。"
return return
@@ -142,7 +142,7 @@ network_wizard() {
fi fi
echo "Default connection mode is DHCP /// 默认模式为 DHCP" echo "Default connection mode is DHCP /// 默认模式为 DHCP"
read -p "是否进行 PPPoE 拨号?(Enter 确认,按 1 继续修改账号和密码,按0退出): " use_pppoe read -p "是否进行 PPPoE 拨号?(Enter 确认,按 1 继续修改账号和密码,按 0 退出): " use_pppoe
if [ "$use_pppoe" == "1" ]; then if [ "$use_pppoe" == "1" ]; then
read -p "请输入宽带账号: " username read -p "请输入宽带账号: " username
read -s -p "请输入宽带密码: " password read -s -p "请输入宽带密码: " password