Commit d63dc3a3 authored by Robert Schmidt's avatar Robert Schmidt

Remove build_oai --clean-kernel option

This option is potentially dangerous as it might override custom user
options.
Signed-off-by: default avatarRobert Schmidt <robert.schmidt@openairinterface.org>
parent 900fa704
...@@ -133,10 +133,6 @@ function main() { ...@@ -133,10 +133,6 @@ function main() {
-c | --clean | -C | --clean-all) -c | --clean | -C | --clean-all)
CLEAN=1 CLEAN=1
shift;; shift;;
--clean-kernel)
clean_kernel
echo_info "Erased iptables config and removed modules from kernel"
shift;;
--cmake-opt) --cmake-opt)
CMAKE_CMD="$CMAKE_CMD $2" CMAKE_CMD="$CMAKE_CMD $2"
shift 2;; shift 2;;
......
...@@ -120,26 +120,6 @@ handler_EXIT() { ...@@ -120,26 +120,6 @@ handler_EXIT() {
trap handler_EXIT 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 # External packages installers
############################################ ############################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment