diff --git a/CounterStrike/csserver b/CounterStrike/csserver index 25a5036ca..f2fa55184 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -77,8 +77,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/CounterStrikeGlobalOffensive/csgoserver b/CounterStrikeGlobalOffensive/csgoserver index f2851c86e..586650ea4 100644 --- a/CounterStrikeGlobalOffensive/csgoserver +++ b/CounterStrikeGlobalOffensive/csgoserver @@ -78,8 +78,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/CounterStrikeSource/cssserver b/CounterStrikeSource/cssserver index 772070713..508989247 100644 --- a/CounterStrikeSource/cssserver +++ b/CounterStrikeSource/cssserver @@ -78,8 +78,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/DayOfDefeatSource/dodsserver b/DayOfDefeatSource/dodsserver index de3f3c0e9..8ef492821 100644 --- a/DayOfDefeatSource/dodsserver +++ b/DayOfDefeatSource/dodsserver @@ -78,8 +78,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/HalfLife2Deathmatch/hl2dmserver b/HalfLife2Deathmatch/hl2dmserver index 480528c39..d7577ec7a 100644 --- a/HalfLife2Deathmatch/hl2dmserver +++ b/HalfLife2Deathmatch/hl2dmserver @@ -79,8 +79,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/KillingFloor/kfserver b/KillingFloor/kfserver index 111bbd772..3d28d8e10 100644 --- a/KillingFloor/kfserver +++ b/KillingFloor/kfserver @@ -77,8 +77,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/Left4Dead2/l4d2server b/Left4Dead2/l4d2server index 2f91a888e..3721b336e 100644 --- a/Left4Dead2/l4d2server +++ b/Left4Dead2/l4d2server @@ -78,8 +78,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/NaturalSelection2/ns2server b/NaturalSelection2/ns2server index c875262c6..6c24b1f29 100644 --- a/NaturalSelection2/ns2server +++ b/NaturalSelection2/ns2server @@ -80,8 +80,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/NoMoreRoomInHell/nmrihserver b/NoMoreRoomInHell/nmrihserver index 62fc775b6..a638f24c9 100644 --- a/NoMoreRoomInHell/nmrihserver +++ b/NoMoreRoomInHell/nmrihserver @@ -82,8 +82,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/RedOrchestra/roserver b/RedOrchestra/roserver index 88ddac7f3..f5300f100 100644 --- a/RedOrchestra/roserver +++ b/RedOrchestra/roserver @@ -73,8 +73,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/TeamFortress2/tf2server b/TeamFortress2/tf2server index e9c9c8820..79067ff5e 100644 --- a/TeamFortress2/tf2server +++ b/TeamFortress2/tf2server @@ -78,8 +78,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/UnrealTournament2004/ut2k4server b/UnrealTournament2004/ut2k4server index e2f1f7c7f..effea021c 100644 --- a/UnrealTournament2004/ut2k4server +++ b/UnrealTournament2004/ut2k4server @@ -66,8 +66,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n" diff --git a/UnrealTournament99/ut99server b/UnrealTournament99/ut99server index 3f3bc4d71..8764a7c96 100644 --- a/UnrealTournament99/ut99server +++ b/UnrealTournament99/ut99server @@ -66,8 +66,8 @@ fi fn_autoip(){ # Identifies the server interface IP # If multiple interfaces this will need to be set manually -getip=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) -getipwc=$(ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) +getip=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1) +getipwc=$(/sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|grep -v 127.0.0.1|wc -l) if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then if [ "${getipwc}" -ge "2" ]; then echo -en "[\e[1;33m WARN \e[0;39m] Multiple active interfaces.\n\n"