From 7df2d8c602a01470769596f46c8487c999462467 Mon Sep 17 00:00:00 2001 From: Poil Date: Sun, 25 Jan 2015 21:37:43 +0100 Subject: [PATCH] True selfname. Remove stupid code --- 7DaysToDie/sdtdserver | 6 +++--- Arma3/arma3server | 6 +++--- BladeSymphony/bsserver | 6 +++--- CounterStrike/csserver | 4 ++-- CounterStrikeGlobalOffensive/csgoserver | 6 +++--- CounterStrikeSource/cssserver | 6 +++--- DayOfDefeat/dodserver | 6 +++--- DayOfDefeatSource/dodsserver | 6 +++--- FistfulOfFrags/fofserver | 6 +++--- GarrysMod/gmodserver | 6 +++--- HalfLife2Deathmatch/hl2dmserver | 6 +++--- HalfLifeDeathmatchClassic/hldmcserver | 6 +++--- Insurgency/insserver | 6 +++--- JustCause2/jc2server | 6 +++--- KillingFloor/kfserver | 6 +++--- Left4Dead/l4dserver | 6 +++--- Left4Dead2/l4d2server | 6 +++--- Mumble/mumbleserver | 6 +++--- NaturalSelection2/ns2server | 6 +++--- NoMoreRoomInHell/nmrihserver | 6 +++--- RedOrchestra/roserver | 6 +++--- SeriousSam3BFE/ss3sserver | 6 +++--- TeamFortress2/tf2server | 6 +++--- TeamFortressClassic/tfcserver | 6 +++--- TheHiddenSource/thsserver | 4 ++-- UnrealTournament2004/ut2k4server | 6 +++--- UnrealTournament99/ut99server | 6 +++--- 27 files changed, 79 insertions(+), 79 deletions(-) diff --git a/7DaysToDie/sdtdserver b/7DaysToDie/sdtdserver index 7623498fd..87f19dd65 100644 --- a/7DaysToDie/sdtdserver +++ b/7DaysToDie/sdtdserver @@ -40,8 +40,8 @@ engine="unity3d" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}" @@ -94,4 +94,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/Arma3/arma3server b/Arma3/arma3server index e8503b902..f1a190eb3 100644 --- a/Arma3/arma3server +++ b/Arma3/arma3server @@ -36,8 +36,8 @@ engine="realvirtuality" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}" @@ -89,4 +89,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/BladeSymphony/bsserver b/BladeSymphony/bsserver index 632be094e..4aa7b5fec 100644 --- a/BladeSymphony/bsserver +++ b/BladeSymphony/bsserver @@ -41,8 +41,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/berimbau" executabledir="${filesdir}" @@ -95,4 +95,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/CounterStrike/csserver b/CounterStrike/csserver index fe93609bf..d4a51618d 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -40,7 +40,7 @@ engine="goldsource" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" -selfname="$0" +selfname="$(basename $0)" lockselfname=$(echo ".${servicename}.lock") filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/cstrike" @@ -94,4 +94,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/CounterStrikeGlobalOffensive/csgoserver b/CounterStrikeGlobalOffensive/csgoserver index 9a308792e..c3f90b476 100644 --- a/CounterStrikeGlobalOffensive/csgoserver +++ b/CounterStrikeGlobalOffensive/csgoserver @@ -58,8 +58,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/csgo" executabledir="${filesdir}" @@ -112,4 +112,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/CounterStrikeSource/cssserver b/CounterStrikeSource/cssserver index ad3b55033..d7c388de3 100644 --- a/CounterStrikeSource/cssserver +++ b/CounterStrikeSource/cssserver @@ -41,8 +41,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/cstrike" executabledir="${filesdir}" @@ -95,4 +95,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/DayOfDefeat/dodserver b/DayOfDefeat/dodserver index 01481b8e5..9cdec9838 100644 --- a/DayOfDefeat/dodserver +++ b/DayOfDefeat/dodserver @@ -40,8 +40,8 @@ engine="goldsource" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/dod" executabledir="${filesdir}" @@ -94,4 +94,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/DayOfDefeatSource/dodsserver b/DayOfDefeatSource/dodsserver index 471a3c600..430df7374 100644 --- a/DayOfDefeatSource/dodsserver +++ b/DayOfDefeatSource/dodsserver @@ -41,8 +41,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/dod" executabledir="${filesdir}" @@ -95,4 +95,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/FistfulOfFrags/fofserver b/FistfulOfFrags/fofserver index f8eb5cd59..790c5503f 100644 --- a/FistfulOfFrags/fofserver +++ b/FistfulOfFrags/fofserver @@ -41,8 +41,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/fof" executabledir="${filesdir}" @@ -95,4 +95,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/GarrysMod/gmodserver b/GarrysMod/gmodserver index 0bfbdfe62..b53c9ca2b 100644 --- a/GarrysMod/gmodserver +++ b/GarrysMod/gmodserver @@ -46,8 +46,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/garrysmod" executabledir="${filesdir}" @@ -100,4 +100,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/HalfLife2Deathmatch/hl2dmserver b/HalfLife2Deathmatch/hl2dmserver index 86fc4dadb..ecb7c6b44 100644 --- a/HalfLife2Deathmatch/hl2dmserver +++ b/HalfLife2Deathmatch/hl2dmserver @@ -41,8 +41,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/hl2mp" executabledir="${filesdir}" @@ -95,4 +95,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/HalfLifeDeathmatchClassic/hldmcserver b/HalfLifeDeathmatchClassic/hldmcserver index 7766baa5f..cc7e7e264 100644 --- a/HalfLifeDeathmatchClassic/hldmcserver +++ b/HalfLifeDeathmatchClassic/hldmcserver @@ -40,8 +40,8 @@ engine="goldsource" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/valve" executabledir="${filesdir}" @@ -94,4 +94,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/Insurgency/insserver b/Insurgency/insserver index 06cc3dd79..6d01da31e 100644 --- a/Insurgency/insserver +++ b/Insurgency/insserver @@ -41,8 +41,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/insurgency" executabledir="${filesdir}" @@ -95,4 +95,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/JustCause2/jc2server b/JustCause2/jc2server index 73d2ee643..59df04d32 100644 --- a/JustCause2/jc2server +++ b/JustCause2/jc2server @@ -37,8 +37,8 @@ engine="avalanche" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}" @@ -90,4 +90,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/KillingFloor/kfserver b/KillingFloor/kfserver index 71ddd2b3c..15d5cc1a2 100644 --- a/KillingFloor/kfserver +++ b/KillingFloor/kfserver @@ -40,8 +40,8 @@ appid="215360" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/System" executabledir="${systemdir}" @@ -97,4 +97,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/Left4Dead/l4dserver b/Left4Dead/l4dserver index 78f87de42..a22a9922a 100644 --- a/Left4Dead/l4dserver +++ b/Left4Dead/l4dserver @@ -41,8 +41,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/left4dead" executabledir="${filesdir}" @@ -95,4 +95,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/Left4Dead2/l4d2server b/Left4Dead2/l4d2server index ea0af044c..d05edb059 100644 --- a/Left4Dead2/l4d2server +++ b/Left4Dead2/l4d2server @@ -40,8 +40,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/left4dead2" executabledir="${filesdir}" @@ -94,4 +94,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/Mumble/mumbleserver b/Mumble/mumbleserver index 1c05a8598..7dd5d63f1 100644 --- a/Mumble/mumbleserver +++ b/Mumble/mumbleserver @@ -18,8 +18,8 @@ servicename="mumble-server" # Directorys rootdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" ini="murmur.ini" executable="./murmur.x86 -fg -ini ${ini}" @@ -480,4 +480,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|monitor|debug|backup|email-test}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/NaturalSelection2/ns2server b/NaturalSelection2/ns2server index 87549e6af..585bc1fe3 100644 --- a/NaturalSelection2/ns2server +++ b/NaturalSelection2/ns2server @@ -50,8 +50,8 @@ engine="spark" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}" @@ -100,4 +100,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/NoMoreRoomInHell/nmrihserver b/NoMoreRoomInHell/nmrihserver index 0936fd022..6502da312 100644 --- a/NoMoreRoomInHell/nmrihserver +++ b/NoMoreRoomInHell/nmrihserver @@ -41,8 +41,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/nmrih" executabledir="${filesdir}" @@ -95,4 +95,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/RedOrchestra/roserver b/RedOrchestra/roserver index f19f6a12a..f70b1d4b2 100644 --- a/RedOrchestra/roserver +++ b/RedOrchestra/roserver @@ -36,8 +36,8 @@ appid="223250" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/system" executabledir="${systemdir}" @@ -93,4 +93,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/SeriousSam3BFE/ss3sserver b/SeriousSam3BFE/ss3sserver index 17f3b36ba..d436c0a17 100644 --- a/SeriousSam3BFE/ss3sserver +++ b/SeriousSam3BFE/ss3sserver @@ -36,8 +36,8 @@ engine="seriousengine35" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/Bin" executabledir="${systemdir}" @@ -91,4 +91,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/TeamFortress2/tf2server b/TeamFortress2/tf2server index 622c06d8d..c269fa8d7 100644 --- a/TeamFortress2/tf2server +++ b/TeamFortress2/tf2server @@ -41,8 +41,8 @@ engine="source" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/tf" executabledir="${filesdir}" @@ -95,4 +95,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/TeamFortressClassic/tfcserver b/TeamFortressClassic/tfcserver index 9a6f763db..7336c6916 100644 --- a/TeamFortressClassic/tfcserver +++ b/TeamFortressClassic/tfcserver @@ -40,8 +40,8 @@ engine="goldsource" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/tfc" executabledir="${filesdir}" @@ -94,4 +94,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/TheHiddenSource/thsserver b/TheHiddenSource/thsserver index e5db4050c..d85381378 100644 --- a/TheHiddenSource/thsserver +++ b/TheHiddenSource/thsserver @@ -30,7 +30,7 @@ engine="source" # Directorys rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" -selfname="$0" +selfname="$(basename $0)" filesdir="${rootdir}/serverfiles" servercfg="${filesdir}/hidden/cfg/${servicename}.cfg" backupdir="backups" @@ -718,4 +718,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|install|debug|email-test|details}" exit 1;; esac -exit \ No newline at end of file +exit diff --git a/UnrealTournament2004/ut2k4server b/UnrealTournament2004/ut2k4server index ffb87e024..a2b75e97f 100644 --- a/UnrealTournament2004/ut2k4server +++ b/UnrealTournament2004/ut2k4server @@ -27,8 +27,8 @@ engine="unreal2" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename 0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/System" executabledir="${systemdir}" @@ -84,4 +84,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt diff --git a/UnrealTournament99/ut99server b/UnrealTournament99/ut99server index 05186e063..ce74bd2be 100644 --- a/UnrealTournament99/ut99server +++ b/UnrealTournament99/ut99server @@ -29,8 +29,8 @@ engine="unreal" # Directories rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -selfname="$0" -lockselfname=$(echo ".${servicename}.lock") +selfname="$(basename 0)" +lockselfname=".${servicename}.lock" filesdir="${rootdir}/serverfiles" systemdir="${filesdir}/System" executabledir="${systemdir}" @@ -83,4 +83,4 @@ fn_runfunction fn_functions getopt=$1 -fn_getopt \ No newline at end of file +fn_getopt