cli: add command to rewrite/refresh kernel configs

This commit is contained in:
Gunjan Gupta
2023-10-06 00:35:48 +05:30
parent b6fea441d1
commit 571997b053
4 changed files with 9 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ function compile_kernel() {
# Stop after configuring kernel, but only if using a specific CLI command ("kernel-config").
# Normal "KERNEL_CONFIGURE=yes" (during image build) is still allowed.
if [[ "${KERNEL_CONFIGURE}" == yes && "${ARMBIAN_COMMAND}" == "kernel-config" ]]; then
if [[ "${KERNEL_CONFIGURE}" == yes && "${ARMBIAN_COMMAND}" == *kernel-config ]]; then
display_alert "Stopping after configuring kernel" "" "cachehit"
return 0
fi