core: sleep 选项改名为 hold

This commit is contained in:
bin456789
2023-10-31 22:49:49 +08:00
parent 9d5726b28c
commit 20866ef84b
3 changed files with 18 additions and 7 deletions

View File

@ -1960,7 +1960,7 @@ printf '\nyes' | setup-sshd
extract_env_from_cmdline
# shellcheck disable=SC2154
if [ "$sleep" = 1 ]; then
if [ "$hold" = 1 ]; then
exit
fi
@ -2015,10 +2015,13 @@ else
install_redhat_ubuntu
fi
fi
if [ "$sleep" = 2 ]; then
if [ "$hold" = 2 ]; then
exit
fi
# 等几秒让 web ssh 输出全部内容
# 让 web ssh 输出全部内容
for i in $(seq 10); do
echo
done
sleep 5
reboot