From 80f5d2e8a8b8e90e50494eb57f4fd43de8690c59 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Tue, 8 Aug 2023 23:51:12 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E5=AE=89=E8=A3=85=E8=BF=87=E7=A8=8B?= =?UTF-8?q?=E4=B8=AD=E6=B7=BB=E5=8A=A0=20motd=20=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/trans.sh b/trans.sh index 0aeb1f8..33f47fa 100644 --- a/trans.sh +++ b/trans.sh @@ -195,6 +195,13 @@ qemu_nbd() { sleep 5 } +mod_motd() { + cat </etc/motd +Reinstalling... +Run "tail -f /reinstall.html" to view logs. +EOF +} + # 可能脚本不是首次运行,先清理之前的残留 clear_previous() { { @@ -1204,6 +1211,7 @@ xda=$(ls /dev/ | grep -Ex 'sda|hda|xda|vda|xvda|nvme0n1') # shellcheck disable=SC2154 if [ "$distro" != "alpine" ]; then + mod_motd setup_nginx_if_enough_ram add_community_repo fi