+ if [[ $@=~$refresh_regex ]] && [[ !$@=~$audio_regex ]];then
+ check_failed=0
+
+ if [ -z $fbset_bin ];then
+ echo"WARNING: You are going to run omxplayer with -r/--refresh and you don't have fbset installed, this can cause black screen when it finishes playing."
+ echo"WARNING: You are going to run omxplayer with -r/--refresh and you don't have xset and xrefresh installed (x11-xserver-utils package on Debian/Raspbian), this can cause black screen when it finishes playing."
+ check_failed=1
+ fi
+ fi
+
+ if [ "$check_failed" == "1" ];then
+ read -sn 1 -p "Press any key to continue or Ctrl-C to quit."