That's now easier than expected ^^
You basically try to load libcod.so in the process of "screen". You need to start a server.sh INSIDE of screen, which LD_PRELOAD's libcod.so for "cod4-lnxded-bin" then (make sure you dont use the script infront of cod4-servers)
helper.sh
Code:
LD_LIBRARY_PATH="/home/libcod/" LD_PRELOAD="./libcod4_1_7.so" ./cod4-lnxded-bin +set dedicated "2" +set fs_basepath "/home/cod4/" +set fs_homepath "/home/cod4/" +set fs_game "mods/MyMod" +map mp_strike
server.sh
Code:
screen -AdmSL helper.sh