Files
LinUPx/defaults.inc
2025-03-20 18:08:53 -05:00

27 lines
652 B
Bash
Executable File

#!/usr/bin/env bash
action="$1"
FOLDER='/opt/idssys/linupx'
VERS='6.60.33-03202025'
IPERFVER="3.15"
if [ "${2}" != "q" ]; then
Color_Off='\033[0m'
Blue='\033[0;34m'
BBlue='\033[1;34m'
Green='\033[0;32m'
LGreen='\033[1;32m'
BOrange='\033[0;33m'
DGray='\033[1;30m'
Red='\033[10;31m'
LRed='\033[1;31m'
fi
[ "$(ip route | awk '/default/ { print $5 }')" == "link" ] && RNIP=$(ip addr show $(ip route | awk '/1 dev eth0/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) ||
RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)