Skip to content

Commit

Permalink
[merge] from unstable into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
OneCDOnly committed Oct 10, 2024
2 parents e5ee8cd + 3df159d commit 56c67c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Binary file modified objects.tar.gz
Binary file not shown.
Binary file modified sherpa-manager.tar.gz
Binary file not shown.
16 changes: 8 additions & 8 deletions support/sherpa-manager.source
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,9 @@ DebugLogEnv()
DebugKernel ok version "$(OsGetKernelVersion)"

if OsIsStdKernelPageSize; then
DebugKernel ok 'page size' "${r_kernel_page_size}B"
DebugKernel ok 'page size' "$r_kernel_page_size"
else
DebugKernel warning 'page size' "${r_kernel_page_size}B"
DebugKernel warning 'page size' "$r_kernel_page_size"
fi

DebugFirmware ok OS "$(OsGetQnapOS)"
Expand Down Expand Up @@ -902,7 +902,7 @@ DebugLogEnv()
DebugInfoMinSepr
RunAndLog "/usr/sbin/screen -ls" "$r_screen_sessions_pathfile" '' 1
DebugInfoMinSepr
RunAndLog '/usr/bin/free -m' "$r_ram_freeused_pathfile" '' 1
RunAndLog '/usr/bin/free' "$r_ram_freeused_pathfile" '' 1
DebugInfoMinSepr
RunAndLog "/bin/grep -i 'out of memory\|oom-killer' /mnt/HDA_ROOT/.logs/kmsg" "$r_oom_log_pathfile" '' 1
DebugInfoMinSepr
Expand Down Expand Up @@ -1046,7 +1046,7 @@ CheckEnv()

if [[ ${installed_version//.} -gt 238 ]]; then
ipks_downgrade=true
ShowAsNote "various IPKs will be downgraded to suit ${r_kernel_page_size}B kernel page size"
ShowAsNote "various IPKs will be downgraded to suit $r_kernel_page_size kernel page size"
IPKs-ACdowngrade-to:Add "$target_packages"
else
IPKs-ACdowngrade-sk:Add "$target_packages"
Expand Down Expand Up @@ -3050,7 +3050,7 @@ ShowArgSuggestions()
fi
fi

[[ -e $r_report_output_pathfile ]] && cat "$r_report_output_pathfile"
[[ -e $r_report_output_pathfile ]] && /bin/cat "$r_report_output_pathfile"

DebugArray args_incomplete "${args_incomplete[*]:-}"
DebugArray args_remaining "${args_remaining[*]:-}"
Expand Down Expand Up @@ -8780,9 +8780,9 @@ OsGetKernelPageSize()
{

if [[ -e /sbin/hal_app ]]; then
/sbin/hal_app --get_pagesize
echo "$(/sbin/hal_app --get_pagesize)B"
else
/bin/grep KernelPageSize /proc/1/smaps | head -n1 | cut -f2 -d':' | tr -d ' '
/bin/grep KernelPageSize /proc/1/smaps | head -n1 | cut -f2 -d':' | tr -d ' ' | /bin/sed 's|kB|kiB|'
fi

}
Expand Down Expand Up @@ -9250,7 +9250,7 @@ OsIsStdKernelPageSize()
# Standard kernel page size for most QNAP NAS is 4kiB. Non-standard size is 32kiB (confirmed on the TS-431XeU, TS-431X3 & TS-1635).
# https://www.qnap.com/en-us/how-to/faq/article/why-do-the-installed-third-party-containers-not-run-successfully-on-specific-32-bit-arm-devices

[[ ${r_kernel_page_size:=$(OsGetKernelPageSize)} = 4096 || $r_kernel_page_size = 4kB ]]
[[ ${r_kernel_page_size:=$(OsGetKernelPageSize)} = 4096B || $r_kernel_page_size = 4kiB ]]

}

Expand Down

0 comments on commit 56c67c5

Please sign in to comment.