From f4ebf101f5f5cca06baff583e716e40b59c6fef6 Mon Sep 17 00:00:00 2001 From: juewuy Date: Wed, 7 Feb 2024 11:13:11 +0800 Subject: [PATCH] =?UTF-8?q?~=E4=BC=98=E5=8C=96=E5=B0=8F=E9=97=AA=E5=AD=98?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=8D=A0=E7=94=A8=20~padavan=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=A2=9E=E5=8A=A0=E5=BC=80=E5=90=AF=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=97=B6=E8=87=AA=E5=8A=A8=E8=B0=83=E6=95=B4tmp=E5=88=86?= =?UTF-8?q?=E5=8C=BA=E8=87=B345m=E7=9A=84=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E9=80=82=E9=85=8D=E6=96=B0=E7=9A=84=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E6=96=B9=E5=BC=8F=20~=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=B0=8F=E9=97=AA=E5=AD=98=E6=A8=A1=E5=BC=8F=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E6=9C=AA=E8=83=BD=E6=AD=A3=E7=A1=AE=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/getdate.sh | 1 + scripts/init.sh | 4 +++- scripts/start.sh | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/getdate.sh b/scripts/getdate.sh index 6f14b4f..86c4254 100644 --- a/scripts/getdate.sh +++ b/scripts/getdate.sh @@ -929,6 +929,7 @@ getcore(){ #下载内核文件 else tar -zcf ${BINDIR}/CrashCore.tar.gz ${tar_para} -C ${TMPDIR} CrashCore fi + rm -rf ${TMPDIR}/CrashCore.tar.gz #小闪存模式清理文件优化内存占用 setconfig crashcore $crashcore setconfig core_v $core_v setconfig custcorelink $custcorelink diff --git a/scripts/init.sh b/scripts/init.sh index 177b4cc..40b9a32 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -235,7 +235,9 @@ fi echo "$CRASHDIR/start.sh init #ShellCrash初始化脚本" >> $initdir chmod a+rx $initdir 2>/dev/null setconfig initdir $initdir - } +} +#Padavan额外设置 +[ -f "/etc/storage/started_script.sh" ] && mount -t tmpfs -o remount,rw,size=45M tmpfs /tmp #增加/tmp空间以适配新的内核压缩方式 #镜像化OpenWrt(snapshot)额外设置 if [ "$systype" = "mi_snapshot" -o "$systype" = "ng_snapshot" ];then chmod 755 ${CRASHDIR}/misnap_init.sh diff --git a/scripts/start.sh b/scripts/start.sh index 274473e..2435245 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1615,7 +1615,7 @@ bfstart(){ #启动前 fi fi #检查dashboard文件 - if [ -f ${CRASHDIR}/ui/index.html -a ! -f ${BINDIR}/ui/index.html ];then + if [ -f ${CRASHDIR}/ui/CNAME -a ! -f ${BINDIR}/ui/CNAME ];then cp -rf ${CRASHDIR}/ui ${BINDIR} fi [ ! -s ${BINDIR}/ui/index.html ] && makehtml #如没有面板则创建跳转界面 @@ -1862,6 +1862,7 @@ init) sleep 5 && i=$((i+1)) done profile=/etc/profile + mount -t tmpfs -o remount,rw,size=45M tmpfs /tmp #增加/tmp空间以适配新的内核压缩方式 sed -i '' $profile #将软链接转化为一般文件 elif [ -d "/jffs" ];then sleep 60