From 8176fd30638e07cfd56f1d27050836b41d62c2b9 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 6 Jan 2026 08:23:20 +0100 Subject: [PATCH] Remove old FlexRAN file Setup routes was added by the author of FlexRAN. The UEs always set up routes automatically, and this file is therefore not needed. See-also: 287c182925e6 ("Remove FlexRAN") Signed-off-by: Robert Schmidt --- cmake_targets/tools/make_agent_cache | 21 --------------------- cmake_targets/tools/setup_routes.sh | 13 ------------- 2 files changed, 34 deletions(-) delete mode 100755 cmake_targets/tools/make_agent_cache delete mode 100755 cmake_targets/tools/setup_routes.sh diff --git a/cmake_targets/tools/make_agent_cache b/cmake_targets/tools/make_agent_cache deleted file mode 100755 index d2eab20fc0..0000000000 --- a/cmake_targets/tools/make_agent_cache +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -CACHE_DIR=/mnt/oai_agent_cache - -if [ ! -d $CACHE_DIR ]; then - echo "Creating cache dir in $CACHE_DIR" - sudo mkdir $CACHE_DIR -fi - -if grep -qs "$CACHE_DIR" /proc/mounts; then - echo "Agent cache is already mounted" -else - echo "Agent cache was not mounted" - echo "Mounting..." - sudo mount -o size=100m -t tmpfs none "$CACHE_DIR" - if [ $? -eq 0 ]; then - echo "Mount success" - else - echo "Something went wrong with the mount" - fi -fi diff --git a/cmake_targets/tools/setup_routes.sh b/cmake_targets/tools/setup_routes.sh deleted file mode 100755 index 67fe250be7..0000000000 --- a/cmake_targets/tools/setup_routes.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -for i in $(seq 1 $1); -do - let table=1000+$i - echo "sudo ip route add 10.0.1.0/24 dev oaitun_ue$i table $table" - sudo ip route add 10.0.1.0/24 dev oaitun_ue$i table $table - echo "sudo ip route add default via 10.0.1.1 dev oaitun_ue$i table $table" - sudo ip route add default via 10.0.1.1 dev oaitun_ue$i table $table - let octet=$i+1 - echo "sudo ip rule add from 10.0.1.$octet table $table" - sudo ip rule add from 10.0.1.$octet table $table -done