Files
ShellCrash/scripts/libs
Xiaoyi edd6936903 core: store naked core on compressed rom instead of unpacking to tmpfs
On OpenWrt $TMPDIR is tmpfs (RAM) and $BINDIR sits on a
transparently-compressed fs (squashfs/ubifs). Unpacking the core to
$TMPDIR pins the whole ~40MB binary in unreclaimable Shmem, and a
compressed copy is still kept on rom - paying twice.

When $TMPDIR is tmpfs and $BINDIR is squashfs/ubifs/overlay, store the
verified naked binary as $BINDIR/CrashCore.raw and symlink
$TMPDIR/CrashCore to it, dropping the downloaded archive. The binary is
transparently compressed on rom (~2.2:1, comparable to keeping .gz) and
its text/rodata become file-backed and reclaimable at runtime
(RssShmem 0). Other filesystems keep the existing behavior.

The upx branch's symlink target is also corrected from $TMPDIR to
$BINDIR (same dangling-symlink issue as #1295).

For #1304
2026-07-11 15:41:46 +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输出