Save ping's exit status before testing it (the second $? check read the first test's result), treat 0 as success, pass player_opts as an array, and use ip instead of the deprecated ifconfig. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>