~优化小闪存模式占用

~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

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