Files
ShellCrash/scripts/libs
Xiaoyi 433774071a core: choose core storage by weighing rom cost vs ram cost
Replaces the binary compressed-rom check with store_raw_worth_it(),
which decides per environment: store the naked binary on $BINDIR (0 RAM)
only when $TMPDIR is tmpfs AND $BINDIR can hold it with margin
(estimated ~2:1 on squashfs/ubifs, full size otherwise). Otherwise keep
a compressed copy and decompress to tmp as before. core_webget skips
the upx core when raw storage is viable, fetching tar.gz instead.

Rationale (rough budgets for a ~40M core): raw on squashfs ~15M rom /
0 RAM; gz 10M rom / ~40M RAM; upx 9M rom / ~40M RAM (memfd). Raw wins
when rom has room; compressed wins when rom is the scarce resource.

Also corrects the upx branch symlink target $TMPDIR -> $BINDIR (#1295).

For #1304
2026-07-11 16:38:49 +08:00
..
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-04-04 19:50:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2025-12-24 11:09:28 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00
2026-03-25 20:15:42 +08:00

用于存放脚本内置工具的脚本

引用方式必须为:

. "$CRASHDIR"/libs/xxx.sh

返回码必须是return x而不能是exit x

此处脚本内容不应包含文字输出和log输出