summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target8
1 files changed, 2 insertions, 6 deletions
diff --git a/remote/setup_target b/remote/setup_target
index f5df66ad..804f43bc 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -237,12 +237,8 @@ generate_target() {
local BUILT_KERNEL_VERSION=$(cat "${MODULES_DIR}/kernel/ksrc/KVERSION")
if [[ "${BUILT_KERNEL_VERSION}" != "${KERNEL_CURRENT_VERSION}" ]]; then
pinfo "The built kernel (${BUILT_KERNEL_VERSION}) is older than the running one (${KERNEL_CURRENT_VERSION})!"
- pinfo "Do you want to clean the old kernel and re-build for the new version? (Y/n)"
- read USER_INPUT
- if [ "x$USER_INPUT" == "xy" -o "x$USER_INPUT" == "xY" -o "x$USER_INPUT" == "x" ]; then
- clean_kernel_module --force
- # cleaning the module is enough as it forces to rebuild.
- fi
+ # cleaning the module is enough as it forces to rebuild.
+ [[ "${AUTO_UPDATE_KERNEL}" == 1 ]] && pinfo "Auto-Udpate Kernel..." && clean_kernel_module --force
fi
else
# KVERSION is not found.