From d63dc3a3216c909e6bf938c5ee6e0fafc4e3a776 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 7 Apr 2026 15:02:50 +0200 Subject: [PATCH] Remove build_oai --clean-kernel option This option is potentially dangerous as it might override custom user options. Signed-off-by: Robert Schmidt --- cmake_targets/build_oai | 4 ---- cmake_targets/tools/build_helper | 20 -------------------- 2 files changed, 24 deletions(-) diff --git a/cmake_targets/build_oai b/cmake_targets/build_oai index de6caba969..ca387cda32 100755 --- a/cmake_targets/build_oai +++ b/cmake_targets/build_oai @@ -133,10 +133,6 @@ function main() { -c | --clean | -C | --clean-all) CLEAN=1 shift;; - --clean-kernel) - clean_kernel - echo_info "Erased iptables config and removed modules from kernel" - shift;; --cmake-opt) CMAKE_CMD="$CMAKE_CMD $2" shift 2;; diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper index 37cccec18f..2a18a0524e 100755 --- a/cmake_targets/tools/build_helper +++ b/cmake_targets/tools/build_helper @@ -120,26 +120,6 @@ handler_EXIT() { trap handler_EXIT EXIT -########################### -# Cleaners -########################### - -clean_kernel() { - $SUDO modprobe ip_tables - $SUDO modprobe x_tables - $SUDO iptables -P INPUT ACCEPT - $SUDO iptables -F INPUT - $SUDO iptables -P OUTPUT ACCEPT - $SUDO iptables -F OUTPUT - $SUDO iptables -P FORWARD ACCEPT - $SUDO iptables -F FORWARD - $SUDO iptables -t nat -F - $SUDO iptables -t mangle -F - $SUDO iptables -t filter -F - $SUDO iptables -t raw -F - echo_info "Flushed iptables" -} - ############################################ # External packages installers ############################################