remove repeat tips
This commit is contained in:
parent
6a5f13055e
commit
f3e6cee936
@ -195,14 +195,15 @@ do_install_argon_skin() {
|
||||
}
|
||||
|
||||
|
||||
firstboot() {
|
||||
recovery() {
|
||||
echo "⚠️ 警告:此操作将恢复出厂设置,所有配置将被清除!"
|
||||
echo "⚠️ 请确保已备份必要数据。"
|
||||
read -p "是否确定执行恢复出厂设置?(yes/[no]): " confirm
|
||||
|
||||
if [ "$confirm" = "yes" ]; then
|
||||
echo "正在执行恢复出厂设置..."
|
||||
firstboot -y
|
||||
# 安静执行 firstboot,不显示其内部的提示信息
|
||||
firstboot -y >/dev/null 2>&1
|
||||
echo "操作完成,正在重启设备..."
|
||||
reboot
|
||||
else
|
||||
@ -211,6 +212,7 @@ firstboot() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
while true; do
|
||||
clear
|
||||
gl_name=$(get_router_name)
|
||||
@ -238,7 +240,7 @@ while true; do
|
||||
setup_base_init
|
||||
;;
|
||||
2)
|
||||
firstboot
|
||||
recovery
|
||||
;;
|
||||
q | Q)
|
||||
echo "退出"
|
||||
|
Loading…
x
Reference in New Issue
Block a user