~优化小闪存模式占用

~padavan设备增加开启启动时自动调整tmp分区至45m的功能,以适配新的内核压缩方式
~修复小闪存模式本地面板未能正确加载的bug
This commit is contained in:
juewuy
2024-02-07 11:13:11 +08:00
parent 7935e4c1be
commit f4ebf101f5
3 changed files with 6 additions and 2 deletions

View File

@@ -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