From a59faba90d7e947ac78a00cd878a694a216d9f65 Mon Sep 17 00:00:00 2001 From: starry <115192496+sky22333@users.noreply.github.com> Date: Sun, 31 Aug 2025 03:47:06 +0800 Subject: [PATCH] Update root.sh --- dev/root.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/root.sh b/dev/root.sh index f2d2ec7..b355c20 100644 --- a/dev/root.sh +++ b/dev/root.sh @@ -19,6 +19,7 @@ if [ "$(id -u)" != "0" ]; then fi hostnamectl set-hostname localhost +echo "" > /etc/motd # 读取用户输入的 SSH 端口,如果未输入则使用默认值 22 read -p "输入设置的SSH端口(默认22):" sshport @@ -48,4 +49,4 @@ yellow "SSH信息设置完成" green "用户名:root" green "端口:$sshport" green "密码:$password" -yellow "请记录好新密码" \ No newline at end of file +yellow "请记录好新密码"