#!/bin/sh # Apex Legends game directory APEXDIR="/mnt/LNX_DatateamLibrary/steamapps/common/Apex Legends/" # Directory where a backup of the Apex Legends EAC Linux library (easyanticheat_x64.so) is in LIBBACKUPDIR="/mnt/LNX_Data/" if [ ! -f "$APEXDIR/easyanticheat_x64.so" ] # Checks if the EAC library is not present in the game's directory then echo "Missing Apex Legends EAC Linux library, restoring it..."; cp "$LIBBACKUPDIR/easyanticheat_x64.so" "$APEXDIR/easyanticheat_x64.so" && # Copies backup EAC library to the game directory echo "Restored Apex Legends EAC Linux Library." fi