Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + rps_logStart
- ++ date -d @1614511199
- + echo -e 'Log started at: Sun 28 Feb 13:19:59 EET 2021\n'
- Log started at: Sun 28 Feb 13:19:59 EET 2021
- ++ git -C /home/pi/RetroPie-Setup log -1 --pretty=format:%h
- + echo 'RetroPie-Setup version: 4.7.9 (b3c1d15f)'
- RetroPie-Setup version: 4.7.9 (b3c1d15f)
- ++ uname -a
- + echo 'System: rpi3 (armv7l) - Raspbian GNU/Linux 10 (buster) - Linux retropie 5.10.11-v7+ #1399 SMP Thu Jan 28 12:06:05 GMT 2021 armv7l GNU/Linux'
- System: rpi3 (armv7l) - Raspbian GNU/Linux 10 (buster) - Linux retropie 5.10.11-v7+ #1399 SMP Thu Jan 28 12:06:05 GMT 2021 armv7l GNU/Linux
- + [[ 1 -eq 1 ]]
- + rp_isEnabled raspbiantools
- + local id=raspbiantools
- + [[ 1 -eq 0 ]]
- + return 0
- + rp_callModule raspbiantools apt_upgrade
- + local md_id=raspbiantools
- + local mode=apt_upgrade
- + shift 2
- + rp_hasModule raspbiantools
- + local id=raspbiantools
- + [[ -n 213 ]]
- + return 0
- + rp_isEnabled raspbiantools
- + local id=raspbiantools
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars raspbiantools
- ++ local id=raspbiantools
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath raspbiantools
- +++ local id=raspbiantools
- +++ echo /opt/retropie/supplementary/raspbiantools
- ++ echo 'local md_desc="Raspbian related tools"
- local md_help=""
- local md_type="supplementary"
- local md_flags="!all rpi"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/raspbiantools"
- local md_inst="/opt/retropie/supplementary/raspbiantools"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools"'
- + eval 'local md_desc="Raspbian related tools"
- local md_help=""
- local md_type="supplementary"
- local md_flags="!all rpi"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/raspbiantools"
- local md_inst="/opt/retropie/supplementary/raspbiantools"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools"'
- ++ local 'md_desc=Raspbian related tools'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local 'md_flags=!all rpi'
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools.sh
- ++ local md_repo_type=
- ++ local md_repo_url=
- ++ local md_repo_branch=
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/raspbiantools
- ++ local md_inst=/opt/retropie/supplementary/raspbiantools
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=apt_upgrade_raspbiantools
- + fnExists apt_upgrade_raspbiantools
- + declare -f apt_upgrade_raspbiantools
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + action='Running action '\''apt_upgrade'\'' for'
- + [[ -n Running action 'apt_upgrade' for ]]
- + printHeading 'Running action '\''apt_upgrade'\'' for '\''raspbiantools'\'' : Raspbian related tools'
- + printMsgs heading 'Running action '\''apt_upgrade'\'' for '\''raspbiantools'\'' : Raspbian related tools'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nRunning action '\''apt_upgrade'\'' for '\''raspbiantools'\'' : Raspbian related tools\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Running action 'apt_upgrade' for 'raspbiantools' : Raspbian related tools
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + apt_upgrade_raspbiantools
- + stretch_fix_raspbiantools
- + local ver=1.20190401-1
- + isPlatform rpi
- + local flag=rpi
- + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
- + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
- + local flag=rpi
- + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
- + [[ -z rpi ]]
- + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
- + return 0
- + return 0
- + hasPackage raspberrypi-kernel
- + local pkg=raspberrypi-kernel
- + local req_ver=
- + local comp=
- + [[ -z '' ]]
- + comp=ge
- + local ver
- + local status
- ++ dpkg-query -W '--showformat=${Status} ${Version}' raspberrypi-kernel
- + local 'out=install ok installed 1.20210201-1'
- + [[ 0 -eq 0 ]]
- + ver=1.20210201-1
- + status='install ok installed'
- + local installed=0
- + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
- + installed=1
- + [[ -z '' ]]
- + [[ 1 -eq 1 ]]
- + return 0
- + [[ 10 -eq 9 ]]
- + hasPackage raspberrypi-kernel 1.20190401-1 eq
- + local pkg=raspberrypi-kernel
- + local req_ver=1.20190401-1
- + local comp=eq
- + [[ -z eq ]]
- + local ver
- + local status
- ++ dpkg-query -W '--showformat=${Status} ${Version}' raspberrypi-kernel
- + local 'out=install ok installed 1.20210201-1'
- + [[ 0 -eq 0 ]]
- + ver=1.20210201-1
- + status='install ok installed'
- + local installed=0
- + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
- + installed=1
- + [[ -z 1.20190401-1 ]]
- + [[ 1 -eq 0 ]]
- + compareVersions 1.20210201-1 eq 1.20190401-1
- + dpkg --compare-versions 1.20210201-1 eq 1.20190401-1
- + return 1
- + return 1
- + aptUpdate
- + [[ '' != \1 ]]
- + apt-get update
- Hit:1 http://packages.microsoft.com/repos/code stable InRelease
- Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
- Hit:3 http://archive.raspberrypi.org/debian buster InRelease
- Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
- Fetched 13.0 MB in 19s (686 kB/s)
- Reading package lists...
- + __apt_update=1
- + apt-get -y dist-upgrade
- Reading package lists...
- Building dependency tree...
- Reading state information...
- Calculating upgrade...
- 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- + [[ -n '' ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/raspbiantools ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ apt_upgrade == \i\n\s\t\a\l\l\_\b\i\n ]]
- + [[ apt_upgrade == \i\n\s\t\a\l\l ]]
- + fnExists install_raspbiantools
- + declare -f install_raspbiantools
- + return 1
- + [[ apt_upgrade == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 1 -eq 0 ]]
- + return 0
- + update_packages_setup
- + clear
- [H[J[3J+ local id
- + for id in ${__mod_id[@]}
- + rp_isInstalled advmame-0.94
- + local id=advmame-0.94
- + local md_inst=/opt/retropie/emulators/advmame-0.94
- + [[ -d /opt/retropie/emulators/advmame-0.94 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled advmame-1.4
- + local id=advmame-1.4
- + local md_inst=/opt/retropie/emulators/advmame-1.4
- + [[ -d /opt/retropie/emulators/advmame-1.4 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled advmame
- + local id=advmame
- + local md_inst=/opt/retropie/emulators/advmame
- + [[ -d /opt/retropie/emulators/advmame ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled ags
- + local id=ags
- + local md_inst=/opt/retropie/emulators/ags
- + [[ -d /opt/retropie/emulators/ags ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled amiberry
- + local id=amiberry
- + local md_inst=/opt/retropie/emulators/amiberry
- + [[ -d /opt/retropie/emulators/amiberry ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled atari800
- + local id=atari800
- + local md_inst=/opt/retropie/emulators/atari800
- + [[ -d /opt/retropie/emulators/atari800 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled basilisk
- + local id=basilisk
- + local md_inst=/opt/retropie/emulators/basilisk
- + [[ -d /opt/retropie/emulators/basilisk ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled capricerpi
- + local id=capricerpi
- + local md_inst=/opt/retropie/emulators/capricerpi
- + [[ -d /opt/retropie/emulators/capricerpi ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled coolcv
- + local id=coolcv
- + local md_inst=/opt/retropie/emulators/coolcv
- + [[ -d /opt/retropie/emulators/coolcv ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled daphne
- + local id=daphne
- + local md_inst=/opt/retropie/emulators/daphne
- + [[ -d /opt/retropie/emulators/daphne ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled dgen
- + local id=dgen
- + local md_inst=/opt/retropie/emulators/dgen
- + [[ -d /opt/retropie/emulators/dgen ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled dolphin
- + local id=dolphin
- + local md_inst=/opt/retropie/emulators/dolphin
- + [[ -d /opt/retropie/emulators/dolphin ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled dosbox-sdl2
- + local id=dosbox-sdl2
- + local md_inst=/opt/retropie/emulators/dosbox-sdl2
- + [[ -d /opt/retropie/emulators/dosbox-sdl2 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled dosbox
- + local id=dosbox
- + local md_inst=/opt/retropie/emulators/dosbox
- + [[ -d /opt/retropie/emulators/dosbox ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled drastic
- + local id=drastic
- + local md_inst=/opt/retropie/emulators/drastic
- + [[ -d /opt/retropie/emulators/drastic ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled fbzx
- + local id=fbzx
- + local md_inst=/opt/retropie/emulators/fbzx
- + [[ -d /opt/retropie/emulators/fbzx ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled frotz
- + local id=frotz
- + local md_inst=/opt/retropie/emulators/frotz
- + [[ -d /opt/retropie/emulators/frotz ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled fs-uae
- + local id=fs-uae
- + local md_inst=/opt/retropie/emulators/fs-uae
- + [[ -d /opt/retropie/emulators/fs-uae ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled fuse
- + local id=fuse
- + local md_inst=/opt/retropie/emulators/fuse
- + [[ -d /opt/retropie/emulators/fuse ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled gngeopi
- + local id=gngeopi
- + local md_inst=/opt/retropie/emulators/gngeopi
- + [[ -d /opt/retropie/emulators/gngeopi ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled gpsp
- + local id=gpsp
- + local md_inst=/opt/retropie/emulators/gpsp
- + [[ -d /opt/retropie/emulators/gpsp ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled hatari
- + local id=hatari
- + local md_inst=/opt/retropie/emulators/hatari
- + [[ -d /opt/retropie/emulators/hatari ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled jzintv
- + local id=jzintv
- + local md_inst=/opt/retropie/emulators/jzintv
- + [[ -d /opt/retropie/emulators/jzintv ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled linapple
- + local id=linapple
- + local md_inst=/opt/retropie/emulators/linapple
- + [[ -d /opt/retropie/emulators/linapple ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled mame4all
- + local id=mame4all
- + local md_inst=/opt/retropie/emulators/mame4all
- + [[ -d /opt/retropie/emulators/mame4all ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled mame
- + local id=mame
- + local md_inst=/opt/retropie/emulators/mame
- + [[ -d /opt/retropie/emulators/mame ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled minivmac
- + local id=minivmac
- + local md_inst=/opt/retropie/emulators/minivmac
- + [[ -d /opt/retropie/emulators/minivmac ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled mupen64plus
- + local id=mupen64plus
- + local md_inst=/opt/retropie/emulators/mupen64plus
- + [[ -d /opt/retropie/emulators/mupen64plus ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule mupen64plus _update_
- + local id=mupen64plus
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule mupen64plus _update_
- + local md_id=mupen64plus
- + local mode=_update_
- + shift 2
- + rp_hasModule mupen64plus
- + local id=mupen64plus
- + [[ -n 27 ]]
- + return 0
- + rp_isEnabled mupen64plus
- + local id=mupen64plus
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled mupen64plus
- + local id=mupen64plus
- + local md_inst=/opt/retropie/emulators/mupen64plus
- + [[ -d /opt/retropie/emulators/mupen64plus ]]
- + return 0
- + rp_loadPackageInfo mupen64plus pkg_origin
- + local id=mupen64plus
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath mupen64plus
- ++ local id=mupen64plus
- ++ echo /opt/retropie/emulators/mupen64plus
- + local pkg_file=/opt/retropie/emulators/mupen64plus/retropie.pkg
- + [[ -f /opt/retropie/emulators/mupen64plus/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/emulators/mupen64plus/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary mupen64plus
- + local id=mupen64plus
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl mupen64plus
- ++ local id=mupen64plus
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
- ++ fnExists install_bin_mupen64plus
- ++ declare -f install_bin_mupen64plus
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled np2pi
- + local id=np2pi
- + local md_inst=/opt/retropie/emulators/np2pi
- + [[ -d /opt/retropie/emulators/np2pi ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled openmsx
- + local id=openmsx
- + local md_inst=/opt/retropie/emulators/openmsx
- + [[ -d /opt/retropie/emulators/openmsx ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled oricutron
- + local id=oricutron
- + local md_inst=/opt/retropie/emulators/oricutron
- + [[ -d /opt/retropie/emulators/oricutron ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled osmose
- + local id=osmose
- + local md_inst=/opt/retropie/emulators/osmose
- + [[ -d /opt/retropie/emulators/osmose ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled pcsx2
- + local id=pcsx2
- + local md_inst=/opt/retropie/emulators/pcsx2
- + [[ -d /opt/retropie/emulators/pcsx2 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled pcsx-rearmed
- + local id=pcsx-rearmed
- + local md_inst=/opt/retropie/emulators/pcsx-rearmed
- + [[ -d /opt/retropie/emulators/pcsx-rearmed ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled pifba
- + local id=pifba
- + local md_inst=/opt/retropie/emulators/pifba
- + [[ -d /opt/retropie/emulators/pifba ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled pisnes
- + local id=pisnes
- + local md_inst=/opt/retropie/emulators/pisnes
- + [[ -d /opt/retropie/emulators/pisnes ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled ppsspp-1.5.4
- + local id=ppsspp-1.5.4
- + local md_inst=/opt/retropie/emulators/ppsspp-1.5.4
- + [[ -d /opt/retropie/emulators/ppsspp-1.5.4 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled ppsspp
- + local id=ppsspp
- + local md_inst=/opt/retropie/emulators/ppsspp
- + [[ -d /opt/retropie/emulators/ppsspp ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled px68k
- + local id=px68k
- + local md_inst=/opt/retropie/emulators/px68k
- + [[ -d /opt/retropie/emulators/px68k ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled quasi88
- + local id=quasi88
- + local md_inst=/opt/retropie/emulators/quasi88
- + [[ -d /opt/retropie/emulators/quasi88 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled redream
- + local id=redream
- + local md_inst=/opt/retropie/emulators/redream
- + [[ -d /opt/retropie/emulators/redream ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled reicast
- + local id=reicast
- + local md_inst=/opt/retropie/emulators/reicast
- + [[ -d /opt/retropie/emulators/reicast ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled residualvm
- + local id=residualvm
- + local md_inst=/opt/retropie/emulators/residualvm
- + [[ -d /opt/retropie/emulators/residualvm ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled retroarch
- + local id=retroarch
- + local md_inst=/opt/retropie/emulators/retroarch
- + [[ -d /opt/retropie/emulators/retroarch ]]
- + return 0
- + [[ core != \d\e\p\e\n\d\s ]]
- + rp_installModule retroarch _update_
- + local id=retroarch
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule retroarch _update_
- + local md_id=retroarch
- + local mode=_update_
- + shift 2
- + rp_hasModule retroarch
- + local id=retroarch
- + [[ -n 43 ]]
- + return 0
- + rp_isEnabled retroarch
- + local id=retroarch
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled retroarch
- + local id=retroarch
- + local md_inst=/opt/retropie/emulators/retroarch
- + [[ -d /opt/retropie/emulators/retroarch ]]
- + return 0
- + rp_loadPackageInfo retroarch pkg_origin
- + local id=retroarch
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath retroarch
- ++ local id=retroarch
- ++ echo /opt/retropie/emulators/retroarch
- + local pkg_file=/opt/retropie/emulators/retroarch/retropie.pkg
- + [[ -f /opt/retropie/emulators/retroarch/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/emulators/retroarch/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary retroarch
- + local id=retroarch
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl retroarch
- ++ local id=retroarch
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
- ++ fnExists install_bin_retroarch
- ++ declare -f install_bin_retroarch
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled rpix86
- + local id=rpix86
- + local md_inst=/opt/retropie/emulators/rpix86
- + [[ -d /opt/retropie/emulators/rpix86 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled scummvm-sdl1
- + local id=scummvm-sdl1
- + local md_inst=/opt/retropie/emulators/scummvm-sdl1
- + [[ -d /opt/retropie/emulators/scummvm-sdl1 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled scummvm
- + local id=scummvm
- + local md_inst=/opt/retropie/emulators/scummvm
- + [[ -d /opt/retropie/emulators/scummvm ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled sdltrs
- + local id=sdltrs
- + local md_inst=/opt/retropie/emulators/sdltrs
- + [[ -d /opt/retropie/emulators/sdltrs ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled simcoupe
- + local id=simcoupe
- + local md_inst=/opt/retropie/emulators/simcoupe
- + [[ -d /opt/retropie/emulators/simcoupe ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled snes9x
- + local id=snes9x
- + local md_inst=/opt/retropie/emulators/snes9x
- + [[ -d /opt/retropie/emulators/snes9x ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled stella
- + local id=stella
- + local md_inst=/opt/retropie/emulators/stella
- + [[ -d /opt/retropie/emulators/stella ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled stratagus
- + local id=stratagus
- + local md_inst=/opt/retropie/emulators/stratagus
- + [[ -d /opt/retropie/emulators/stratagus ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled ti99sim-sdl1
- + local id=ti99sim-sdl1
- + local md_inst=/opt/retropie/emulators/ti99sim-sdl1
- + [[ -d /opt/retropie/emulators/ti99sim-sdl1 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled ti99sim
- + local id=ti99sim
- + local md_inst=/opt/retropie/emulators/ti99sim
- + [[ -d /opt/retropie/emulators/ti99sim ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled uae4all
- + local id=uae4all
- + local md_inst=/opt/retropie/emulators/uae4all
- + [[ -d /opt/retropie/emulators/uae4all ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled uae4arm
- + local id=uae4arm
- + local md_inst=/opt/retropie/emulators/uae4arm
- + [[ -d /opt/retropie/emulators/uae4arm ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled vice
- + local id=vice
- + local md_inst=/opt/retropie/emulators/vice
- + [[ -d /opt/retropie/emulators/vice ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled xm7
- + local id=xm7
- + local md_inst=/opt/retropie/emulators/xm7
- + [[ -d /opt/retropie/emulators/xm7 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled xroar
- + local id=xroar
- + local md_inst=/opt/retropie/emulators/xroar
- + [[ -d /opt/retropie/emulators/xroar ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled zesarux
- + local id=zesarux
- + local md_inst=/opt/retropie/emulators/zesarux
- + [[ -d /opt/retropie/emulators/zesarux ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-81
- + local id=lr-81
- + local md_inst=/opt/retropie/libretrocores/lr-81
- + [[ -d /opt/retropie/libretrocores/lr-81 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-atari800
- + local id=lr-atari800
- + local md_inst=/opt/retropie/libretrocores/lr-atari800
- + [[ -d /opt/retropie/libretrocores/lr-atari800 ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-atari800 _update_
- + local id=lr-atari800
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-atari800 _update_
- + local md_id=lr-atari800
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-atari800
- + local id=lr-atari800
- + [[ -n 61 ]]
- + return 0
- + rp_isEnabled lr-atari800
- + local id=lr-atari800
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-atari800
- + local id=lr-atari800
- + local md_inst=/opt/retropie/libretrocores/lr-atari800
- + [[ -d /opt/retropie/libretrocores/lr-atari800 ]]
- + return 0
- + rp_loadPackageInfo lr-atari800 pkg_origin
- + local id=lr-atari800
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-atari800
- ++ local id=lr-atari800
- ++ echo /opt/retropie/libretrocores/lr-atari800
- + local pkg_file=/opt/retropie/libretrocores/lr-atari800/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-atari800/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-atari800/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-atari800
- + local id=lr-atari800
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-atari800
- ++ local id=lr-atari800
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
- ++ fnExists install_bin_lr-atari800
- ++ declare -f install_bin_lr-atari800
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-beetle-lynx
- + local id=lr-beetle-lynx
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-lynx
- + [[ -d /opt/retropie/libretrocores/lr-beetle-lynx ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-beetle-ngp
- + local id=lr-beetle-ngp
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-ngp
- + [[ -d /opt/retropie/libretrocores/lr-beetle-ngp ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-beetle-ngp _update_
- + local id=lr-beetle-ngp
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-beetle-ngp _update_
- + local md_id=lr-beetle-ngp
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-beetle-ngp
- + local id=lr-beetle-ngp
- + [[ -n 63 ]]
- + return 0
- + rp_isEnabled lr-beetle-ngp
- + local id=lr-beetle-ngp
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-beetle-ngp
- + local id=lr-beetle-ngp
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-ngp
- + [[ -d /opt/retropie/libretrocores/lr-beetle-ngp ]]
- + return 0
- + rp_loadPackageInfo lr-beetle-ngp pkg_origin
- + local id=lr-beetle-ngp
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-beetle-ngp
- ++ local id=lr-beetle-ngp
- ++ echo /opt/retropie/libretrocores/lr-beetle-ngp
- + local pkg_file=/opt/retropie/libretrocores/lr-beetle-ngp/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-beetle-ngp/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-beetle-ngp/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-beetle-ngp
- + local id=lr-beetle-ngp
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-beetle-ngp
- ++ local id=lr-beetle-ngp
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
- ++ fnExists install_bin_lr-beetle-ngp
- ++ declare -f install_bin_lr-beetle-ngp
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-beetle-pce-fast
- + local id=lr-beetle-pce-fast
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-pce-fast
- + [[ -d /opt/retropie/libretrocores/lr-beetle-pce-fast ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-beetle-pce-fast _update_
- + local id=lr-beetle-pce-fast
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-beetle-pce-fast _update_
- + local md_id=lr-beetle-pce-fast
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-beetle-pce-fast
- + local id=lr-beetle-pce-fast
- + [[ -n 64 ]]
- + return 0
- + rp_isEnabled lr-beetle-pce-fast
- + local id=lr-beetle-pce-fast
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-beetle-pce-fast
- + local id=lr-beetle-pce-fast
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-pce-fast
- + [[ -d /opt/retropie/libretrocores/lr-beetle-pce-fast ]]
- + return 0
- + rp_loadPackageInfo lr-beetle-pce-fast pkg_origin
- + local id=lr-beetle-pce-fast
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-beetle-pce-fast
- ++ local id=lr-beetle-pce-fast
- ++ echo /opt/retropie/libretrocores/lr-beetle-pce-fast
- + local pkg_file=/opt/retropie/libretrocores/lr-beetle-pce-fast/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-beetle-pce-fast/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-beetle-pce-fast/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-beetle-pce-fast
- + local id=lr-beetle-pce-fast
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-beetle-pce-fast
- ++ local id=lr-beetle-pce-fast
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
- ++ fnExists install_bin_lr-beetle-pce-fast
- ++ declare -f install_bin_lr-beetle-pce-fast
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-beetle-pcfx
- + local id=lr-beetle-pcfx
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-pcfx
- + [[ -d /opt/retropie/libretrocores/lr-beetle-pcfx ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-beetle-psx
- + local id=lr-beetle-psx
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-psx
- + [[ -d /opt/retropie/libretrocores/lr-beetle-psx ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-beetle-saturn
- + local id=lr-beetle-saturn
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-saturn
- + [[ -d /opt/retropie/libretrocores/lr-beetle-saturn ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-beetle-supergrafx
- + local id=lr-beetle-supergrafx
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-supergrafx
- + [[ -d /opt/retropie/libretrocores/lr-beetle-supergrafx ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-beetle-supergrafx _update_
- + local id=lr-beetle-supergrafx
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-beetle-supergrafx _update_
- + local md_id=lr-beetle-supergrafx
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-beetle-supergrafx
- + local id=lr-beetle-supergrafx
- + [[ -n 68 ]]
- + return 0
- + rp_isEnabled lr-beetle-supergrafx
- + local id=lr-beetle-supergrafx
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-beetle-supergrafx
- + local id=lr-beetle-supergrafx
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-supergrafx
- + [[ -d /opt/retropie/libretrocores/lr-beetle-supergrafx ]]
- + return 0
- + rp_loadPackageInfo lr-beetle-supergrafx pkg_origin
- + local id=lr-beetle-supergrafx
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-beetle-supergrafx
- ++ local id=lr-beetle-supergrafx
- ++ echo /opt/retropie/libretrocores/lr-beetle-supergrafx
- + local pkg_file=/opt/retropie/libretrocores/lr-beetle-supergrafx/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-beetle-supergrafx/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-beetle-supergrafx/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-beetle-supergrafx
- + local id=lr-beetle-supergrafx
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-beetle-supergrafx
- ++ local id=lr-beetle-supergrafx
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
- ++ fnExists install_bin_lr-beetle-supergrafx
- ++ declare -f install_bin_lr-beetle-supergrafx
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-beetle-vb
- + local id=lr-beetle-vb
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-vb
- + [[ -d /opt/retropie/libretrocores/lr-beetle-vb ]]
- + return 0
- + [[ opt != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-beetle-vb _update_
- + local id=lr-beetle-vb
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-beetle-vb _update_
- + local md_id=lr-beetle-vb
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-beetle-vb
- + local id=lr-beetle-vb
- + [[ -n 69 ]]
- + return 0
- + rp_isEnabled lr-beetle-vb
- + local id=lr-beetle-vb
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-beetle-vb
- + local id=lr-beetle-vb
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-vb
- + [[ -d /opt/retropie/libretrocores/lr-beetle-vb ]]
- + return 0
- + rp_loadPackageInfo lr-beetle-vb pkg_origin
- + local id=lr-beetle-vb
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-beetle-vb
- ++ local id=lr-beetle-vb
- ++ echo /opt/retropie/libretrocores/lr-beetle-vb
- + local pkg_file=/opt/retropie/libretrocores/lr-beetle-vb/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-beetle-vb/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-beetle-vb/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-beetle-vb
- + local id=lr-beetle-vb
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-beetle-vb
- ++ local id=lr-beetle-vb
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
- ++ fnExists install_bin_lr-beetle-vb
- ++ declare -f install_bin_lr-beetle-vb
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-beetle-wswan
- + local id=lr-beetle-wswan
- + local md_inst=/opt/retropie/libretrocores/lr-beetle-wswan
- + [[ -d /opt/retropie/libretrocores/lr-beetle-wswan ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-bluemsx
- + local id=lr-bluemsx
- + local md_inst=/opt/retropie/libretrocores/lr-bluemsx
- + [[ -d /opt/retropie/libretrocores/lr-bluemsx ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-bsnes
- + local id=lr-bsnes
- + local md_inst=/opt/retropie/libretrocores/lr-bsnes
- + [[ -d /opt/retropie/libretrocores/lr-bsnes ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-caprice32
- + local id=lr-caprice32
- + local md_inst=/opt/retropie/libretrocores/lr-caprice32
- + [[ -d /opt/retropie/libretrocores/lr-caprice32 ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-caprice32 _update_
- + local id=lr-caprice32
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-caprice32 _update_
- + local md_id=lr-caprice32
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-caprice32
- + local id=lr-caprice32
- + [[ -n 73 ]]
- + return 0
- + rp_isEnabled lr-caprice32
- + local id=lr-caprice32
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-caprice32
- + local id=lr-caprice32
- + local md_inst=/opt/retropie/libretrocores/lr-caprice32
- + [[ -d /opt/retropie/libretrocores/lr-caprice32 ]]
- + return 0
- + rp_loadPackageInfo lr-caprice32 pkg_origin
- + local id=lr-caprice32
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-caprice32
- ++ local id=lr-caprice32
- ++ echo /opt/retropie/libretrocores/lr-caprice32
- + local pkg_file=/opt/retropie/libretrocores/lr-caprice32/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-caprice32/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-caprice32/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-caprice32
- + local id=lr-caprice32
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-caprice32
- ++ local id=lr-caprice32
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
- ++ fnExists install_bin_lr-caprice32
- ++ declare -f install_bin_lr-caprice32
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-desmume2015
- + local id=lr-desmume2015
- + local md_inst=/opt/retropie/libretrocores/lr-desmume2015
- + [[ -d /opt/retropie/libretrocores/lr-desmume2015 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-desmume
- + local id=lr-desmume
- + local md_inst=/opt/retropie/libretrocores/lr-desmume
- + [[ -d /opt/retropie/libretrocores/lr-desmume ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-dinothawr
- + local id=lr-dinothawr
- + local md_inst=/opt/retropie/libretrocores/lr-dinothawr
- + [[ -d /opt/retropie/libretrocores/lr-dinothawr ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-dolphin
- + local id=lr-dolphin
- + local md_inst=/opt/retropie/libretrocores/lr-dolphin
- + [[ -d /opt/retropie/libretrocores/lr-dolphin ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-dosbox-pure
- + local id=lr-dosbox-pure
- + local md_inst=/opt/retropie/libretrocores/lr-dosbox-pure
- + [[ -d /opt/retropie/libretrocores/lr-dosbox-pure ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-dosbox
- + local id=lr-dosbox
- + local md_inst=/opt/retropie/libretrocores/lr-dosbox
- + [[ -d /opt/retropie/libretrocores/lr-dosbox ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-fbalpha2012
- + local id=lr-fbalpha2012
- + local md_inst=/opt/retropie/libretrocores/lr-fbalpha2012
- + [[ -d /opt/retropie/libretrocores/lr-fbalpha2012 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-fbneo
- + local id=lr-fbneo
- + local md_inst=/opt/retropie/libretrocores/lr-fbneo
- + [[ -d /opt/retropie/libretrocores/lr-fbneo ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-fbneo _update_
- + local id=lr-fbneo
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-fbneo _update_
- + local md_id=lr-fbneo
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-fbneo
- + local id=lr-fbneo
- + [[ -n 81 ]]
- + return 0
- + rp_isEnabled lr-fbneo
- + local id=lr-fbneo
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-fbneo
- + local id=lr-fbneo
- + local md_inst=/opt/retropie/libretrocores/lr-fbneo
- + [[ -d /opt/retropie/libretrocores/lr-fbneo ]]
- + return 0
- + rp_loadPackageInfo lr-fbneo pkg_origin
- + local id=lr-fbneo
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-fbneo
- ++ local id=lr-fbneo
- ++ echo /opt/retropie/libretrocores/lr-fbneo
- + local pkg_file=/opt/retropie/libretrocores/lr-fbneo/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-fbneo/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-fbneo/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-fbneo
- + local id=lr-fbneo
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-fbneo
- ++ local id=lr-fbneo
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
- ++ fnExists install_bin_lr-fbneo
- ++ declare -f install_bin_lr-fbneo
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-fceumm
- + local id=lr-fceumm
- + local md_inst=/opt/retropie/libretrocores/lr-fceumm
- + [[ -d /opt/retropie/libretrocores/lr-fceumm ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-fceumm _update_
- + local id=lr-fceumm
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-fceumm _update_
- + local md_id=lr-fceumm
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-fceumm
- + local id=lr-fceumm
- + [[ -n 82 ]]
- + return 0
- + rp_isEnabled lr-fceumm
- + local id=lr-fceumm
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-fceumm
- + local id=lr-fceumm
- + local md_inst=/opt/retropie/libretrocores/lr-fceumm
- + [[ -d /opt/retropie/libretrocores/lr-fceumm ]]
- + return 0
- + rp_loadPackageInfo lr-fceumm pkg_origin
- + local id=lr-fceumm
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-fceumm
- ++ local id=lr-fceumm
- ++ echo /opt/retropie/libretrocores/lr-fceumm
- + local pkg_file=/opt/retropie/libretrocores/lr-fceumm/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-fceumm/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-fceumm/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-fceumm
- + local id=lr-fceumm
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-fceumm
- ++ local id=lr-fceumm
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
- ++ fnExists install_bin_lr-fceumm
- ++ declare -f install_bin_lr-fceumm
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-flycast
- + local id=lr-flycast
- + local md_inst=/opt/retropie/libretrocores/lr-flycast
- + [[ -d /opt/retropie/libretrocores/lr-flycast ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-fmsx
- + local id=lr-fmsx
- + local md_inst=/opt/retropie/libretrocores/lr-fmsx
- + [[ -d /opt/retropie/libretrocores/lr-fmsx ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-freechaf
- + local id=lr-freechaf
- + local md_inst=/opt/retropie/libretrocores/lr-freechaf
- + [[ -d /opt/retropie/libretrocores/lr-freechaf ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-freeintv
- + local id=lr-freeintv
- + local md_inst=/opt/retropie/libretrocores/lr-freeintv
- + [[ -d /opt/retropie/libretrocores/lr-freeintv ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-fuse
- + local id=lr-fuse
- + local md_inst=/opt/retropie/libretrocores/lr-fuse
- + [[ -d /opt/retropie/libretrocores/lr-fuse ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-fuse _update_
- + local id=lr-fuse
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-fuse _update_
- + local md_id=lr-fuse
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-fuse
- + local id=lr-fuse
- + [[ -n 87 ]]
- + return 0
- + rp_isEnabled lr-fuse
- + local id=lr-fuse
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-fuse
- + local id=lr-fuse
- + local md_inst=/opt/retropie/libretrocores/lr-fuse
- + [[ -d /opt/retropie/libretrocores/lr-fuse ]]
- + return 0
- + rp_loadPackageInfo lr-fuse pkg_origin
- + local id=lr-fuse
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-fuse
- ++ local id=lr-fuse
- ++ echo /opt/retropie/libretrocores/lr-fuse
- + local pkg_file=/opt/retropie/libretrocores/lr-fuse/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-fuse/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-fuse/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-fuse
- + local id=lr-fuse
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-fuse
- ++ local id=lr-fuse
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
- ++ fnExists install_bin_lr-fuse
- ++ declare -f install_bin_lr-fuse
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-gambatte
- + local id=lr-gambatte
- + local md_inst=/opt/retropie/libretrocores/lr-gambatte
- + [[ -d /opt/retropie/libretrocores/lr-gambatte ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-gambatte _update_
- + local id=lr-gambatte
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-gambatte _update_
- + local md_id=lr-gambatte
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-gambatte
- + local id=lr-gambatte
- + [[ -n 88 ]]
- + return 0
- + rp_isEnabled lr-gambatte
- + local id=lr-gambatte
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-gambatte
- + local id=lr-gambatte
- + local md_inst=/opt/retropie/libretrocores/lr-gambatte
- + [[ -d /opt/retropie/libretrocores/lr-gambatte ]]
- + return 0
- + rp_loadPackageInfo lr-gambatte pkg_origin
- + local id=lr-gambatte
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-gambatte
- ++ local id=lr-gambatte
- ++ echo /opt/retropie/libretrocores/lr-gambatte
- + local pkg_file=/opt/retropie/libretrocores/lr-gambatte/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-gambatte/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-gambatte/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-gambatte
- + local id=lr-gambatte
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-gambatte
- ++ local id=lr-gambatte
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
- ++ fnExists install_bin_lr-gambatte
- ++ declare -f install_bin_lr-gambatte
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-gearsystem
- + local id=lr-gearsystem
- + local md_inst=/opt/retropie/libretrocores/lr-gearsystem
- + [[ -d /opt/retropie/libretrocores/lr-gearsystem ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-genesis-plus-gx
- + local id=lr-genesis-plus-gx
- + local md_inst=/opt/retropie/libretrocores/lr-genesis-plus-gx
- + [[ -d /opt/retropie/libretrocores/lr-genesis-plus-gx ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-genesis-plus-gx _update_
- + local id=lr-genesis-plus-gx
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-genesis-plus-gx _update_
- + local md_id=lr-genesis-plus-gx
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-genesis-plus-gx
- + local id=lr-genesis-plus-gx
- + [[ -n 90 ]]
- + return 0
- + rp_isEnabled lr-genesis-plus-gx
- + local id=lr-genesis-plus-gx
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-genesis-plus-gx
- + local id=lr-genesis-plus-gx
- + local md_inst=/opt/retropie/libretrocores/lr-genesis-plus-gx
- + [[ -d /opt/retropie/libretrocores/lr-genesis-plus-gx ]]
- + return 0
- + rp_loadPackageInfo lr-genesis-plus-gx pkg_origin
- + local id=lr-genesis-plus-gx
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-genesis-plus-gx
- ++ local id=lr-genesis-plus-gx
- ++ echo /opt/retropie/libretrocores/lr-genesis-plus-gx
- + local pkg_file=/opt/retropie/libretrocores/lr-genesis-plus-gx/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-genesis-plus-gx/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-genesis-plus-gx/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-genesis-plus-gx
- + local id=lr-genesis-plus-gx
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-genesis-plus-gx
- ++ local id=lr-genesis-plus-gx
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
- ++ fnExists install_bin_lr-genesis-plus-gx
- ++ declare -f install_bin_lr-genesis-plus-gx
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-gpsp
- + local id=lr-gpsp
- + local md_inst=/opt/retropie/libretrocores/lr-gpsp
- + [[ -d /opt/retropie/libretrocores/lr-gpsp ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-gpsp _update_
- + local id=lr-gpsp
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-gpsp _update_
- + local md_id=lr-gpsp
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-gpsp
- + local id=lr-gpsp
- + [[ -n 91 ]]
- + return 0
- + rp_isEnabled lr-gpsp
- + local id=lr-gpsp
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-gpsp
- + local id=lr-gpsp
- + local md_inst=/opt/retropie/libretrocores/lr-gpsp
- + [[ -d /opt/retropie/libretrocores/lr-gpsp ]]
- + return 0
- + rp_loadPackageInfo lr-gpsp pkg_origin
- + local id=lr-gpsp
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-gpsp
- ++ local id=lr-gpsp
- ++ echo /opt/retropie/libretrocores/lr-gpsp
- + local pkg_file=/opt/retropie/libretrocores/lr-gpsp/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-gpsp/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-gpsp/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '!all arm' nonet
- + local 'string=!all arm'
- + local flag=nonet
- + [[ -z !all arm ]]
- + [[ -z nonet ]]
- + [[ !all arm =~ (^| )nonet($| ) ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-gpsp
- + local id=lr-gpsp
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-gpsp
- ++ local id=lr-gpsp
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
- ++ fnExists install_bin_lr-gpsp
- ++ declare -f install_bin_lr-gpsp
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-gw
- + local id=lr-gw
- + local md_inst=/opt/retropie/libretrocores/lr-gw
- + [[ -d /opt/retropie/libretrocores/lr-gw ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-handy
- + local id=lr-handy
- + local md_inst=/opt/retropie/libretrocores/lr-handy
- + [[ -d /opt/retropie/libretrocores/lr-handy ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-handy _update_
- + local id=lr-handy
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-handy _update_
- + local md_id=lr-handy
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-handy
- + local id=lr-handy
- + [[ -n 93 ]]
- + return 0
- + rp_isEnabled lr-handy
- + local id=lr-handy
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-handy
- + local id=lr-handy
- + local md_inst=/opt/retropie/libretrocores/lr-handy
- + [[ -d /opt/retropie/libretrocores/lr-handy ]]
- + return 0
- + rp_loadPackageInfo lr-handy pkg_origin
- + local id=lr-handy
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-handy
- ++ local id=lr-handy
- ++ echo /opt/retropie/libretrocores/lr-handy
- + local pkg_file=/opt/retropie/libretrocores/lr-handy/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-handy/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-handy/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-handy
- + local id=lr-handy
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-handy
- ++ local id=lr-handy
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
- ++ fnExists install_bin_lr-handy
- ++ declare -f install_bin_lr-handy
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-hatari
- + local id=lr-hatari
- + local md_inst=/opt/retropie/libretrocores/lr-hatari
- + [[ -d /opt/retropie/libretrocores/lr-hatari ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-kronos
- + local id=lr-kronos
- + local md_inst=/opt/retropie/libretrocores/lr-kronos
- + [[ -d /opt/retropie/libretrocores/lr-kronos ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mame2000
- + local id=lr-mame2000
- + local md_inst=/opt/retropie/libretrocores/lr-mame2000
- + [[ -d /opt/retropie/libretrocores/lr-mame2000 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mame2003-plus
- + local id=lr-mame2003-plus
- + local md_inst=/opt/retropie/libretrocores/lr-mame2003-plus
- + [[ -d /opt/retropie/libretrocores/lr-mame2003-plus ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mame2003
- + local id=lr-mame2003
- + local md_inst=/opt/retropie/libretrocores/lr-mame2003
- + [[ -d /opt/retropie/libretrocores/lr-mame2003 ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-mame2003 _update_
- + local id=lr-mame2003
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-mame2003 _update_
- + local md_id=lr-mame2003
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-mame2003
- + local id=lr-mame2003
- + [[ -n 98 ]]
- + return 0
- + rp_isEnabled lr-mame2003
- + local id=lr-mame2003
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-mame2003
- + local id=lr-mame2003
- + local md_inst=/opt/retropie/libretrocores/lr-mame2003
- + [[ -d /opt/retropie/libretrocores/lr-mame2003 ]]
- + return 0
- + rp_loadPackageInfo lr-mame2003 pkg_origin
- + local id=lr-mame2003
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-mame2003
- ++ local id=lr-mame2003
- ++ echo /opt/retropie/libretrocores/lr-mame2003
- + local pkg_file=/opt/retropie/libretrocores/lr-mame2003/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-mame2003/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-mame2003/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-mame2003
- + local id=lr-mame2003
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-mame2003
- ++ local id=lr-mame2003
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
- ++ fnExists install_bin_lr-mame2003
- ++ declare -f install_bin_lr-mame2003
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mame2010
- + local id=lr-mame2010
- + local md_inst=/opt/retropie/libretrocores/lr-mame2010
- + [[ -d /opt/retropie/libretrocores/lr-mame2010 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mame2015
- + local id=lr-mame2015
- + local md_inst=/opt/retropie/libretrocores/lr-mame2015
- + [[ -d /opt/retropie/libretrocores/lr-mame2015 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mame2016
- + local id=lr-mame2016
- + local md_inst=/opt/retropie/libretrocores/lr-mame2016
- + [[ -d /opt/retropie/libretrocores/lr-mame2016 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mame
- + local id=lr-mame
- + local md_inst=/opt/retropie/libretrocores/lr-mame
- + [[ -d /opt/retropie/libretrocores/lr-mame ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mesen
- + local id=lr-mesen
- + local md_inst=/opt/retropie/libretrocores/lr-mesen
- + [[ -d /opt/retropie/libretrocores/lr-mesen ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mess2016
- + local id=lr-mess2016
- + local md_inst=/opt/retropie/libretrocores/lr-mess2016
- + [[ -d /opt/retropie/libretrocores/lr-mess2016 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mess
- + local id=lr-mess
- + local md_inst=/opt/retropie/libretrocores/lr-mess
- + [[ -d /opt/retropie/libretrocores/lr-mess ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mgba
- + local id=lr-mgba
- + local md_inst=/opt/retropie/libretrocores/lr-mgba
- + [[ -d /opt/retropie/libretrocores/lr-mgba ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-mgba _update_
- + local id=lr-mgba
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-mgba _update_
- + local md_id=lr-mgba
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-mgba
- + local id=lr-mgba
- + [[ -n 106 ]]
- + return 0
- + rp_isEnabled lr-mgba
- + local id=lr-mgba
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-mgba
- + local id=lr-mgba
- + local md_inst=/opt/retropie/libretrocores/lr-mgba
- + [[ -d /opt/retropie/libretrocores/lr-mgba ]]
- + return 0
- + rp_loadPackageInfo lr-mgba pkg_origin
- + local id=lr-mgba
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-mgba
- ++ local id=lr-mgba
- ++ echo /opt/retropie/libretrocores/lr-mgba
- + local pkg_file=/opt/retropie/libretrocores/lr-mgba/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-mgba/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-mgba/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-mgba
- + local id=lr-mgba
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-mgba
- ++ local id=lr-mgba
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
- ++ fnExists install_bin_lr-mgba
- ++ declare -f install_bin_lr-mgba
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mrboom
- + local id=lr-mrboom
- + local md_inst=/opt/retropie/libretrocores/lr-mrboom
- + [[ -d /opt/retropie/libretrocores/lr-mrboom ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mupen64plus-next
- + local id=lr-mupen64plus-next
- + local md_inst=/opt/retropie/libretrocores/lr-mupen64plus-next
- + [[ -d /opt/retropie/libretrocores/lr-mupen64plus-next ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-mupen64plus
- + local id=lr-mupen64plus
- + local md_inst=/opt/retropie/libretrocores/lr-mupen64plus
- + [[ -d /opt/retropie/libretrocores/lr-mupen64plus ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-mupen64plus _update_
- + local id=lr-mupen64plus
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-mupen64plus _update_
- + local md_id=lr-mupen64plus
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-mupen64plus
- + local id=lr-mupen64plus
- + [[ -n 109 ]]
- + return 0
- + rp_isEnabled lr-mupen64plus
- + local id=lr-mupen64plus
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-mupen64plus
- + local id=lr-mupen64plus
- + local md_inst=/opt/retropie/libretrocores/lr-mupen64plus
- + [[ -d /opt/retropie/libretrocores/lr-mupen64plus ]]
- + return 0
- + rp_loadPackageInfo lr-mupen64plus pkg_origin
- + local id=lr-mupen64plus
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-mupen64plus
- ++ local id=lr-mupen64plus
- ++ echo /opt/retropie/libretrocores/lr-mupen64plus
- + local pkg_file=/opt/retropie/libretrocores/lr-mupen64plus/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-mupen64plus/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-mupen64plus/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '!aarch64' nonet
- + local 'string=!aarch64'
- + local flag=nonet
- + [[ -z !aarch64 ]]
- + [[ -z nonet ]]
- + [[ !aarch64 =~ (^| )nonet($| ) ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-mupen64plus
- + local id=lr-mupen64plus
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-mupen64plus
- ++ local id=lr-mupen64plus
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
- ++ fnExists install_bin_lr-mupen64plus
- ++ declare -f install_bin_lr-mupen64plus
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-neocd
- + local id=lr-neocd
- + local md_inst=/opt/retropie/libretrocores/lr-neocd
- + [[ -d /opt/retropie/libretrocores/lr-neocd ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-nestopia
- + local id=lr-nestopia
- + local md_inst=/opt/retropie/libretrocores/lr-nestopia
- + [[ -d /opt/retropie/libretrocores/lr-nestopia ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-nestopia _update_
- + local id=lr-nestopia
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-nestopia _update_
- + local md_id=lr-nestopia
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-nestopia
- + local id=lr-nestopia
- + [[ -n 111 ]]
- + return 0
- + rp_isEnabled lr-nestopia
- + local id=lr-nestopia
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-nestopia
- + local id=lr-nestopia
- + local md_inst=/opt/retropie/libretrocores/lr-nestopia
- + [[ -d /opt/retropie/libretrocores/lr-nestopia ]]
- + return 0
- + rp_loadPackageInfo lr-nestopia pkg_origin
- + local id=lr-nestopia
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-nestopia
- ++ local id=lr-nestopia
- ++ echo /opt/retropie/libretrocores/lr-nestopia
- + local pkg_file=/opt/retropie/libretrocores/lr-nestopia/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-nestopia/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-nestopia/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-nestopia
- + local id=lr-nestopia
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-nestopia
- ++ local id=lr-nestopia
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
- ++ fnExists install_bin_lr-nestopia
- ++ declare -f install_bin_lr-nestopia
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-np2kai
- + local id=lr-np2kai
- + local md_inst=/opt/retropie/libretrocores/lr-np2kai
- + [[ -d /opt/retropie/libretrocores/lr-np2kai ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-nxengine
- + local id=lr-nxengine
- + local md_inst=/opt/retropie/libretrocores/lr-nxengine
- + [[ -d /opt/retropie/libretrocores/lr-nxengine ]]
- + return 0
- + [[ opt != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-nxengine _update_
- + local id=lr-nxengine
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-nxengine _update_
- + local md_id=lr-nxengine
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-nxengine
- + local id=lr-nxengine
- + [[ -n 113 ]]
- + return 0
- + rp_isEnabled lr-nxengine
- + local id=lr-nxengine
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-nxengine
- + local id=lr-nxengine
- + local md_inst=/opt/retropie/libretrocores/lr-nxengine
- + [[ -d /opt/retropie/libretrocores/lr-nxengine ]]
- + return 0
- + rp_loadPackageInfo lr-nxengine pkg_origin
- + local id=lr-nxengine
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-nxengine
- ++ local id=lr-nxengine
- ++ echo /opt/retropie/libretrocores/lr-nxengine
- + local pkg_file=/opt/retropie/libretrocores/lr-nxengine/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-nxengine/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-nxengine/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-nxengine
- + local id=lr-nxengine
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-nxengine
- ++ local id=lr-nxengine
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
- ++ fnExists install_bin_lr-nxengine
- ++ declare -f install_bin_lr-nxengine
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-o2em
- + local id=lr-o2em
- + local md_inst=/opt/retropie/libretrocores/lr-o2em
- + [[ -d /opt/retropie/libretrocores/lr-o2em ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-opera
- + local id=lr-opera
- + local md_inst=/opt/retropie/libretrocores/lr-opera
- + [[ -d /opt/retropie/libretrocores/lr-opera ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-parallel-n64
- + local id=lr-parallel-n64
- + local md_inst=/opt/retropie/libretrocores/lr-parallel-n64
- + [[ -d /opt/retropie/libretrocores/lr-parallel-n64 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-pcsx-rearmed
- + local id=lr-pcsx-rearmed
- + local md_inst=/opt/retropie/libretrocores/lr-pcsx-rearmed
- + [[ -d /opt/retropie/libretrocores/lr-pcsx-rearmed ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-pcsx-rearmed _update_
- + local id=lr-pcsx-rearmed
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-pcsx-rearmed _update_
- + local md_id=lr-pcsx-rearmed
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-pcsx-rearmed
- + local id=lr-pcsx-rearmed
- + [[ -n 117 ]]
- + return 0
- + rp_isEnabled lr-pcsx-rearmed
- + local id=lr-pcsx-rearmed
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-pcsx-rearmed
- + local id=lr-pcsx-rearmed
- + local md_inst=/opt/retropie/libretrocores/lr-pcsx-rearmed
- + [[ -d /opt/retropie/libretrocores/lr-pcsx-rearmed ]]
- + return 0
- + rp_loadPackageInfo lr-pcsx-rearmed pkg_origin
- + local id=lr-pcsx-rearmed
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-pcsx-rearmed
- ++ local id=lr-pcsx-rearmed
- ++ echo /opt/retropie/libretrocores/lr-pcsx-rearmed
- + local pkg_file=/opt/retropie/libretrocores/lr-pcsx-rearmed/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-pcsx-rearmed/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-pcsx-rearmed/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-pcsx-rearmed
- + local id=lr-pcsx-rearmed
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-pcsx-rearmed
- ++ local id=lr-pcsx-rearmed
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
- ++ fnExists install_bin_lr-pcsx-rearmed
- ++ declare -f install_bin_lr-pcsx-rearmed
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-picodrive
- + local id=lr-picodrive
- + local md_inst=/opt/retropie/libretrocores/lr-picodrive
- + [[ -d /opt/retropie/libretrocores/lr-picodrive ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-picodrive _update_
- + local id=lr-picodrive
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-picodrive _update_
- + local md_id=lr-picodrive
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-picodrive
- + local id=lr-picodrive
- + [[ -n 118 ]]
- + return 0
- + rp_isEnabled lr-picodrive
- + local id=lr-picodrive
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-picodrive
- + local id=lr-picodrive
- + local md_inst=/opt/retropie/libretrocores/lr-picodrive
- + [[ -d /opt/retropie/libretrocores/lr-picodrive ]]
- + return 0
- + rp_loadPackageInfo lr-picodrive pkg_origin
- + local id=lr-picodrive
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-picodrive
- ++ local id=lr-picodrive
- ++ echo /opt/retropie/libretrocores/lr-picodrive
- + local pkg_file=/opt/retropie/libretrocores/lr-picodrive/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-picodrive/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-picodrive/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-picodrive
- + local id=lr-picodrive
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-picodrive
- ++ local id=lr-picodrive
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
- ++ fnExists install_bin_lr-picodrive
- ++ declare -f install_bin_lr-picodrive
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-pokemini
- + local id=lr-pokemini
- + local md_inst=/opt/retropie/libretrocores/lr-pokemini
- + [[ -d /opt/retropie/libretrocores/lr-pokemini ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-ppsspp
- + local id=lr-ppsspp
- + local md_inst=/opt/retropie/libretrocores/lr-ppsspp
- + [[ -d /opt/retropie/libretrocores/lr-ppsspp ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-prboom
- + local id=lr-prboom
- + local md_inst=/opt/retropie/libretrocores/lr-prboom
- + [[ -d /opt/retropie/libretrocores/lr-prboom ]]
- + return 0
- + [[ opt != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-prboom _update_
- + local id=lr-prboom
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-prboom _update_
- + local md_id=lr-prboom
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-prboom
- + local id=lr-prboom
- + [[ -n 121 ]]
- + return 0
- + rp_isEnabled lr-prboom
- + local id=lr-prboom
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-prboom
- + local id=lr-prboom
- + local md_inst=/opt/retropie/libretrocores/lr-prboom
- + [[ -d /opt/retropie/libretrocores/lr-prboom ]]
- + return 0
- + rp_loadPackageInfo lr-prboom pkg_origin
- + local id=lr-prboom
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-prboom
- ++ local id=lr-prboom
- ++ echo /opt/retropie/libretrocores/lr-prboom
- + local pkg_file=/opt/retropie/libretrocores/lr-prboom/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-prboom/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-prboom/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-prboom
- + local id=lr-prboom
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-prboom
- ++ local id=lr-prboom
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
- ++ fnExists install_bin_lr-prboom
- ++ declare -f install_bin_lr-prboom
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-prosystem
- + local id=lr-prosystem
- + local md_inst=/opt/retropie/libretrocores/lr-prosystem
- + [[ -d /opt/retropie/libretrocores/lr-prosystem ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-prosystem _update_
- + local id=lr-prosystem
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-prosystem _update_
- + local md_id=lr-prosystem
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-prosystem
- + local id=lr-prosystem
- + [[ -n 122 ]]
- + return 0
- + rp_isEnabled lr-prosystem
- + local id=lr-prosystem
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-prosystem
- + local id=lr-prosystem
- + local md_inst=/opt/retropie/libretrocores/lr-prosystem
- + [[ -d /opt/retropie/libretrocores/lr-prosystem ]]
- + return 0
- + rp_loadPackageInfo lr-prosystem pkg_origin
- + local id=lr-prosystem
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-prosystem
- ++ local id=lr-prosystem
- ++ echo /opt/retropie/libretrocores/lr-prosystem
- + local pkg_file=/opt/retropie/libretrocores/lr-prosystem/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-prosystem/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-prosystem/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-prosystem
- + local id=lr-prosystem
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-prosystem
- ++ local id=lr-prosystem
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
- ++ fnExists install_bin_lr-prosystem
- ++ declare -f install_bin_lr-prosystem
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-puae
- + local id=lr-puae
- + local md_inst=/opt/retropie/libretrocores/lr-puae
- + [[ -d /opt/retropie/libretrocores/lr-puae ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-px68k
- + local id=lr-px68k
- + local md_inst=/opt/retropie/libretrocores/lr-px68k
- + [[ -d /opt/retropie/libretrocores/lr-px68k ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-quasi88
- + local id=lr-quasi88
- + local md_inst=/opt/retropie/libretrocores/lr-quasi88
- + [[ -d /opt/retropie/libretrocores/lr-quasi88 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-quicknes
- + local id=lr-quicknes
- + local md_inst=/opt/retropie/libretrocores/lr-quicknes
- + [[ -d /opt/retropie/libretrocores/lr-quicknes ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-quicknes _update_
- + local id=lr-quicknes
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-quicknes _update_
- + local md_id=lr-quicknes
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-quicknes
- + local id=lr-quicknes
- + [[ -n 126 ]]
- + return 0
- + rp_isEnabled lr-quicknes
- + local id=lr-quicknes
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-quicknes
- + local id=lr-quicknes
- + local md_inst=/opt/retropie/libretrocores/lr-quicknes
- + [[ -d /opt/retropie/libretrocores/lr-quicknes ]]
- + return 0
- + rp_loadPackageInfo lr-quicknes pkg_origin
- + local id=lr-quicknes
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-quicknes
- ++ local id=lr-quicknes
- ++ echo /opt/retropie/libretrocores/lr-quicknes
- + local pkg_file=/opt/retropie/libretrocores/lr-quicknes/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-quicknes/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-quicknes/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-quicknes
- + local id=lr-quicknes
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-quicknes
- ++ local id=lr-quicknes
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
- ++ fnExists install_bin_lr-quicknes
- ++ declare -f install_bin_lr-quicknes
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-scummvm
- + local id=lr-scummvm
- + local md_inst=/opt/retropie/libretrocores/lr-scummvm
- + [[ -d /opt/retropie/libretrocores/lr-scummvm ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-smsplus-gx
- + local id=lr-smsplus-gx
- + local md_inst=/opt/retropie/libretrocores/lr-smsplus-gx
- + [[ -d /opt/retropie/libretrocores/lr-smsplus-gx ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-snes9x2002
- + local id=lr-snes9x2002
- + local md_inst=/opt/retropie/libretrocores/lr-snes9x2002
- + [[ -d /opt/retropie/libretrocores/lr-snes9x2002 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-snes9x2005
- + local id=lr-snes9x2005
- + local md_inst=/opt/retropie/libretrocores/lr-snes9x2005
- + [[ -d /opt/retropie/libretrocores/lr-snes9x2005 ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-snes9x2005 _update_
- + local id=lr-snes9x2005
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-snes9x2005 _update_
- + local md_id=lr-snes9x2005
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-snes9x2005
- + local id=lr-snes9x2005
- + [[ -n 130 ]]
- + return 0
- + rp_isEnabled lr-snes9x2005
- + local id=lr-snes9x2005
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-snes9x2005
- + local id=lr-snes9x2005
- + local md_inst=/opt/retropie/libretrocores/lr-snes9x2005
- + [[ -d /opt/retropie/libretrocores/lr-snes9x2005 ]]
- + return 0
- + rp_loadPackageInfo lr-snes9x2005 pkg_origin
- + local id=lr-snes9x2005
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-snes9x2005
- ++ local id=lr-snes9x2005
- ++ echo /opt/retropie/libretrocores/lr-snes9x2005
- + local pkg_file=/opt/retropie/libretrocores/lr-snes9x2005/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-snes9x2005/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-snes9x2005/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-snes9x2005
- + local id=lr-snes9x2005
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-snes9x2005
- ++ local id=lr-snes9x2005
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
- ++ fnExists install_bin_lr-snes9x2005
- ++ declare -f install_bin_lr-snes9x2005
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-snes9x2010
- + local id=lr-snes9x2010
- + local md_inst=/opt/retropie/libretrocores/lr-snes9x2010
- + [[ -d /opt/retropie/libretrocores/lr-snes9x2010 ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-snes9x2010 _update_
- + local id=lr-snes9x2010
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-snes9x2010 _update_
- + local md_id=lr-snes9x2010
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-snes9x2010
- + local id=lr-snes9x2010
- + [[ -n 131 ]]
- + return 0
- + rp_isEnabled lr-snes9x2010
- + local id=lr-snes9x2010
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-snes9x2010
- + local id=lr-snes9x2010
- + local md_inst=/opt/retropie/libretrocores/lr-snes9x2010
- + [[ -d /opt/retropie/libretrocores/lr-snes9x2010 ]]
- + return 0
- + rp_loadPackageInfo lr-snes9x2010 pkg_origin
- + local id=lr-snes9x2010
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-snes9x2010
- ++ local id=lr-snes9x2010
- ++ echo /opt/retropie/libretrocores/lr-snes9x2010
- + local pkg_file=/opt/retropie/libretrocores/lr-snes9x2010/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-snes9x2010/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-snes9x2010/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-snes9x2010
- + local id=lr-snes9x2010
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-snes9x2010
- ++ local id=lr-snes9x2010
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
- ++ fnExists install_bin_lr-snes9x2010
- ++ declare -f install_bin_lr-snes9x2010
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-snes9x
- + local id=lr-snes9x
- + local md_inst=/opt/retropie/libretrocores/lr-snes9x
- + [[ -d /opt/retropie/libretrocores/lr-snes9x ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-stella2014
- + local id=lr-stella2014
- + local md_inst=/opt/retropie/libretrocores/lr-stella2014
- + [[ -d /opt/retropie/libretrocores/lr-stella2014 ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-stella2014 _update_
- + local id=lr-stella2014
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-stella2014 _update_
- + local md_id=lr-stella2014
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-stella2014
- + local id=lr-stella2014
- + [[ -n 133 ]]
- + return 0
- + rp_isEnabled lr-stella2014
- + local id=lr-stella2014
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-stella2014
- + local id=lr-stella2014
- + local md_inst=/opt/retropie/libretrocores/lr-stella2014
- + [[ -d /opt/retropie/libretrocores/lr-stella2014 ]]
- + return 0
- + rp_loadPackageInfo lr-stella2014 pkg_origin
- + local id=lr-stella2014
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-stella2014
- ++ local id=lr-stella2014
- ++ echo /opt/retropie/libretrocores/lr-stella2014
- + local pkg_file=/opt/retropie/libretrocores/lr-stella2014/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-stella2014/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-stella2014/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-stella2014
- + local id=lr-stella2014
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-stella2014
- ++ local id=lr-stella2014
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
- ++ fnExists install_bin_lr-stella2014
- ++ declare -f install_bin_lr-stella2014
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-superflappybirds
- + local id=lr-superflappybirds
- + local md_inst=/opt/retropie/libretrocores/lr-superflappybirds
- + [[ -d /opt/retropie/libretrocores/lr-superflappybirds ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-tgbdual
- + local id=lr-tgbdual
- + local md_inst=/opt/retropie/libretrocores/lr-tgbdual
- + [[ -d /opt/retropie/libretrocores/lr-tgbdual ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-theodore
- + local id=lr-theodore
- + local md_inst=/opt/retropie/libretrocores/lr-theodore
- + [[ -d /opt/retropie/libretrocores/lr-theodore ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-tyrquake
- + local id=lr-tyrquake
- + local md_inst=/opt/retropie/libretrocores/lr-tyrquake
- + [[ -d /opt/retropie/libretrocores/lr-tyrquake ]]
- + return 0
- + [[ opt != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-tyrquake _update_
- + local id=lr-tyrquake
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-tyrquake _update_
- + local md_id=lr-tyrquake
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-tyrquake
- + local id=lr-tyrquake
- + [[ -n 137 ]]
- + return 0
- + rp_isEnabled lr-tyrquake
- + local id=lr-tyrquake
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-tyrquake
- + local id=lr-tyrquake
- + local md_inst=/opt/retropie/libretrocores/lr-tyrquake
- + [[ -d /opt/retropie/libretrocores/lr-tyrquake ]]
- + return 0
- + rp_loadPackageInfo lr-tyrquake pkg_origin
- + local id=lr-tyrquake
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-tyrquake
- ++ local id=lr-tyrquake
- ++ echo /opt/retropie/libretrocores/lr-tyrquake
- + local pkg_file=/opt/retropie/libretrocores/lr-tyrquake/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-tyrquake/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-tyrquake/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-tyrquake
- + local id=lr-tyrquake
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-tyrquake
- ++ local id=lr-tyrquake
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
- ++ fnExists install_bin_lr-tyrquake
- ++ declare -f install_bin_lr-tyrquake
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-vba-next
- + local id=lr-vba-next
- + local md_inst=/opt/retropie/libretrocores/lr-vba-next
- + [[ -d /opt/retropie/libretrocores/lr-vba-next ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-vba-next _update_
- + local id=lr-vba-next
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-vba-next _update_
- + local md_id=lr-vba-next
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-vba-next
- + local id=lr-vba-next
- + [[ -n 138 ]]
- + return 0
- + rp_isEnabled lr-vba-next
- + local id=lr-vba-next
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-vba-next
- + local id=lr-vba-next
- + local md_inst=/opt/retropie/libretrocores/lr-vba-next
- + [[ -d /opt/retropie/libretrocores/lr-vba-next ]]
- + return 0
- + rp_loadPackageInfo lr-vba-next pkg_origin
- + local id=lr-vba-next
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-vba-next
- ++ local id=lr-vba-next
- ++ echo /opt/retropie/libretrocores/lr-vba-next
- + local pkg_file=/opt/retropie/libretrocores/lr-vba-next/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-vba-next/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-vba-next/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '!armv6' nonet
- + local 'string=!armv6'
- + local flag=nonet
- + [[ -z !armv6 ]]
- + [[ -z nonet ]]
- + [[ !armv6 =~ (^| )nonet($| ) ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-vba-next
- + local id=lr-vba-next
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-vba-next
- ++ local id=lr-vba-next
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
- ++ fnExists install_bin_lr-vba-next
- ++ declare -f install_bin_lr-vba-next
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-vecx
- + local id=lr-vecx
- + local md_inst=/opt/retropie/libretrocores/lr-vecx
- + [[ -d /opt/retropie/libretrocores/lr-vecx ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule lr-vecx _update_
- + local id=lr-vecx
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule lr-vecx _update_
- + local md_id=lr-vecx
- + local mode=_update_
- + shift 2
- + rp_hasModule lr-vecx
- + local id=lr-vecx
- + [[ -n 139 ]]
- + return 0
- + rp_isEnabled lr-vecx
- + local id=lr-vecx
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled lr-vecx
- + local id=lr-vecx
- + local md_inst=/opt/retropie/libretrocores/lr-vecx
- + [[ -d /opt/retropie/libretrocores/lr-vecx ]]
- + return 0
- + rp_loadPackageInfo lr-vecx pkg_origin
- + local id=lr-vecx
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath lr-vecx
- ++ local id=lr-vecx
- ++ echo /opt/retropie/libretrocores/lr-vecx
- + local pkg_file=/opt/retropie/libretrocores/lr-vecx/retropie.pkg
- + [[ -f /opt/retropie/libretrocores/lr-vecx/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-vecx/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary lr-vecx
- + local id=lr-vecx
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl lr-vecx
- ++ local id=lr-vecx
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
- ++ fnExists install_bin_lr-vecx
- ++ declare -f install_bin_lr-vecx
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-vice
- + local id=lr-vice
- + local md_inst=/opt/retropie/libretrocores/lr-vice
- + [[ -d /opt/retropie/libretrocores/lr-vice ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-virtualjaguar
- + local id=lr-virtualjaguar
- + local md_inst=/opt/retropie/libretrocores/lr-virtualjaguar
- + [[ -d /opt/retropie/libretrocores/lr-virtualjaguar ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-x1
- + local id=lr-x1
- + local md_inst=/opt/retropie/libretrocores/lr-x1
- + [[ -d /opt/retropie/libretrocores/lr-x1 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-xrick
- + local id=lr-xrick
- + local md_inst=/opt/retropie/libretrocores/lr-xrick
- + [[ -d /opt/retropie/libretrocores/lr-xrick ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lr-yabause
- + local id=lr-yabause
- + local md_inst=/opt/retropie/libretrocores/lr-yabause
- + [[ -d /opt/retropie/libretrocores/lr-yabause ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled alephone
- + local id=alephone
- + local md_inst=/opt/retropie/ports/alephone
- + [[ -d /opt/retropie/ports/alephone ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled bombermaaan
- + local id=bombermaaan
- + local md_inst=/opt/retropie/ports/bombermaaan
- + [[ -d /opt/retropie/ports/bombermaaan ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled cannonball
- + local id=cannonball
- + local md_inst=/opt/retropie/ports/cannonball
- + [[ -d /opt/retropie/ports/cannonball ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled cdogs-sdl
- + local id=cdogs-sdl
- + local md_inst=/opt/retropie/ports/cdogs-sdl
- + [[ -d /opt/retropie/ports/cdogs-sdl ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled cgenius
- + local id=cgenius
- + local md_inst=/opt/retropie/ports/cgenius
- + [[ -d /opt/retropie/ports/cgenius ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled darkplaces-quake
- + local id=darkplaces-quake
- + local md_inst=/opt/retropie/ports/darkplaces-quake
- + [[ -d /opt/retropie/ports/darkplaces-quake ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled digger
- + local id=digger
- + local md_inst=/opt/retropie/ports/digger
- + [[ -d /opt/retropie/ports/digger ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled dxx-rebirth
- + local id=dxx-rebirth
- + local md_inst=/opt/retropie/ports/dxx-rebirth
- + [[ -d /opt/retropie/ports/dxx-rebirth ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled eduke32
- + local id=eduke32
- + local md_inst=/opt/retropie/ports/eduke32
- + [[ -d /opt/retropie/ports/eduke32 ]]
- + return 0
- + [[ opt != \d\e\p\e\n\d\s ]]
- + rp_installModule eduke32 _update_
- + local id=eduke32
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule eduke32 _update_
- + local md_id=eduke32
- + local mode=_update_
- + shift 2
- + rp_hasModule eduke32
- + local id=eduke32
- + [[ -n 153 ]]
- + return 0
- + rp_isEnabled eduke32
- + local id=eduke32
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled eduke32
- + local id=eduke32
- + local md_inst=/opt/retropie/ports/eduke32
- + [[ -d /opt/retropie/ports/eduke32 ]]
- + return 0
- + rp_loadPackageInfo eduke32 pkg_origin
- + local id=eduke32
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath eduke32
- ++ local id=eduke32
- ++ echo /opt/retropie/ports/eduke32
- + local pkg_file=/opt/retropie/ports/eduke32/retropie.pkg
- + [[ -f /opt/retropie/ports/eduke32/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/ports/eduke32/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary eduke32
- + local id=eduke32
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl eduke32
- ++ local id=eduke32
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
- ++ fnExists install_bin_eduke32
- ++ declare -f install_bin_eduke32
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled gemrb
- + local id=gemrb
- + local md_inst=/opt/retropie/ports/gemrb
- + [[ -d /opt/retropie/ports/gemrb ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled giana
- + local id=giana
- + local md_inst=/opt/retropie/ports/giana
- + [[ -d /opt/retropie/ports/giana ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled ionfury
- + local id=ionfury
- + local md_inst=/opt/retropie/ports/ionfury
- + [[ -d /opt/retropie/ports/ionfury ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled ioquake3
- + local id=ioquake3
- + local md_inst=/opt/retropie/ports/ioquake3
- + [[ -d /opt/retropie/ports/ioquake3 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled jumpnbump
- + local id=jumpnbump
- + local md_inst=/opt/retropie/ports/jumpnbump
- + [[ -d /opt/retropie/ports/jumpnbump ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled kodi
- + local id=kodi
- + local md_inst=/opt/retropie/ports/kodi
- + [[ -d /opt/retropie/ports/kodi ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lincity-ng
- + local id=lincity-ng
- + local md_inst=/opt/retropie/ports/lincity-ng
- + [[ -d /opt/retropie/ports/lincity-ng ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled love-0.10.2
- + local id=love-0.10.2
- + local md_inst=/opt/retropie/ports/love-0.10.2
- + [[ -d /opt/retropie/ports/love-0.10.2 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled love
- + local id=love
- + local md_inst=/opt/retropie/ports/love
- + [[ -d /opt/retropie/ports/love ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled lzdoom
- + local id=lzdoom
- + local md_inst=/opt/retropie/ports/lzdoom
- + [[ -d /opt/retropie/ports/lzdoom ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled micropolis
- + local id=micropolis
- + local md_inst=/opt/retropie/ports/micropolis
- + [[ -d /opt/retropie/ports/micropolis ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled minecraft
- + local id=minecraft
- + local md_inst=/opt/retropie/ports/minecraft
- + [[ -d /opt/retropie/ports/minecraft ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled mysticmine
- + local id=mysticmine
- + local md_inst=/opt/retropie/ports/mysticmine
- + [[ -d /opt/retropie/ports/mysticmine ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled openblok
- + local id=openblok
- + local md_inst=/opt/retropie/ports/openblok
- + [[ -d /opt/retropie/ports/openblok ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled openbor
- + local id=openbor
- + local md_inst=/opt/retropie/ports/openbor
- + [[ -d /opt/retropie/ports/openbor ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled openpht
- + local id=openpht
- + local md_inst=/opt/retropie/ports/openpht
- + [[ -d /opt/retropie/ports/openpht ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled openttd
- + local id=openttd
- + local md_inst=/opt/retropie/ports/openttd
- + [[ -d /opt/retropie/ports/openttd ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled opentyrian
- + local id=opentyrian
- + local md_inst=/opt/retropie/ports/opentyrian
- + [[ -d /opt/retropie/ports/opentyrian ]]
- + return 0
- + [[ opt != \d\e\p\e\n\d\s ]]
- + rp_installModule opentyrian _update_
- + local id=opentyrian
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule opentyrian _update_
- + local md_id=opentyrian
- + local mode=_update_
- + shift 2
- + rp_hasModule opentyrian
- + local id=opentyrian
- + [[ -n 171 ]]
- + return 0
- + rp_isEnabled opentyrian
- + local id=opentyrian
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled opentyrian
- + local id=opentyrian
- + local md_inst=/opt/retropie/ports/opentyrian
- + [[ -d /opt/retropie/ports/opentyrian ]]
- + return 0
- + rp_loadPackageInfo opentyrian pkg_origin
- + local id=opentyrian
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath opentyrian
- ++ local id=opentyrian
- ++ echo /opt/retropie/ports/opentyrian
- + local pkg_file=/opt/retropie/ports/opentyrian/retropie.pkg
- + [[ -f /opt/retropie/ports/opentyrian/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/ports/opentyrian/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary opentyrian
- + local id=opentyrian
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl opentyrian
- ++ local id=opentyrian
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
- ++ fnExists install_bin_opentyrian
- ++ declare -f install_bin_opentyrian
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled quake3
- + local id=quake3
- + local md_inst=/opt/retropie/ports/quake3
- + [[ -d /opt/retropie/ports/quake3 ]]
- + return 0
- + [[ opt != \d\e\p\e\n\d\s ]]
- + rp_installModule quake3 _update_
- + local id=quake3
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule quake3 _update_
- + local md_id=quake3
- + local mode=_update_
- + shift 2
- + rp_hasModule quake3
- + local id=quake3
- + [[ -n 172 ]]
- + return 0
- + rp_isEnabled quake3
- + local id=quake3
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled quake3
- + local id=quake3
- + local md_inst=/opt/retropie/ports/quake3
- + [[ -d /opt/retropie/ports/quake3 ]]
- + return 0
- + rp_loadPackageInfo quake3 pkg_origin
- + local id=quake3
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath quake3
- ++ local id=quake3
- ++ echo /opt/retropie/ports/quake3
- + local pkg_file=/opt/retropie/ports/quake3/retropie.pkg
- + [[ -f /opt/retropie/ports/quake3/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/ports/quake3/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '!all videocore' nonet
- + local 'string=!all videocore'
- + local flag=nonet
- + [[ -z !all videocore ]]
- + [[ -z nonet ]]
- + [[ !all videocore =~ (^| )nonet($| ) ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary quake3
- + local id=quake3
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl quake3
- ++ local id=quake3
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
- ++ fnExists install_bin_quake3
- ++ declare -f install_bin_quake3
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled sdlpop
- + local id=sdlpop
- + local md_inst=/opt/retropie/ports/sdlpop
- + [[ -d /opt/retropie/ports/sdlpop ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled smw
- + local id=smw
- + local md_inst=/opt/retropie/ports/smw
- + [[ -d /opt/retropie/ports/smw ]]
- + return 0
- + [[ opt != \d\e\p\e\n\d\s ]]
- + rp_installModule smw _update_
- + local id=smw
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule smw _update_
- + local md_id=smw
- + local mode=_update_
- + shift 2
- + rp_hasModule smw
- + local id=smw
- + [[ -n 174 ]]
- + return 0
- + rp_isEnabled smw
- + local id=smw
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled smw
- + local id=smw
- + local md_inst=/opt/retropie/ports/smw
- + [[ -d /opt/retropie/ports/smw ]]
- + return 0
- + rp_loadPackageInfo smw pkg_origin
- + local id=smw
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath smw
- ++ local id=smw
- ++ echo /opt/retropie/ports/smw
- + local pkg_file=/opt/retropie/ports/smw/retropie.pkg
- + [[ -f /opt/retropie/ports/smw/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/ports/smw/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '!mali' nonet
- + local 'string=!mali'
- + local flag=nonet
- + [[ -z !mali ]]
- + [[ -z nonet ]]
- + [[ !mali =~ (^| )nonet($| ) ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary smw
- + local id=smw
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl smw
- ++ local id=smw
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
- ++ fnExists install_bin_smw
- ++ declare -f install_bin_smw
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled solarus
- + local id=solarus
- + local md_inst=/opt/retropie/ports/solarus
- + [[ -d /opt/retropie/ports/solarus ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled splitwolf
- + local id=splitwolf
- + local md_inst=/opt/retropie/ports/splitwolf
- + [[ -d /opt/retropie/ports/splitwolf ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled srb2
- + local id=srb2
- + local md_inst=/opt/retropie/ports/srb2
- + [[ -d /opt/retropie/ports/srb2 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled steamlink
- + local id=steamlink
- + local md_inst=/opt/retropie/ports/steamlink
- + [[ -d /opt/retropie/ports/steamlink ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled supertux
- + local id=supertux
- + local md_inst=/opt/retropie/ports/supertux
- + [[ -d /opt/retropie/ports/supertux ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled tyrquake
- + local id=tyrquake
- + local md_inst=/opt/retropie/ports/tyrquake
- + [[ -d /opt/retropie/ports/tyrquake ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled uqm
- + local id=uqm
- + local md_inst=/opt/retropie/ports/uqm
- + [[ -d /opt/retropie/ports/uqm ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled vvvvvv
- + local id=vvvvvv
- + local md_inst=/opt/retropie/ports/vvvvvv
- + [[ -d /opt/retropie/ports/vvvvvv ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled wolf4sdl
- + local id=wolf4sdl
- + local md_inst=/opt/retropie/ports/wolf4sdl
- + [[ -d /opt/retropie/ports/wolf4sdl ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled xrick
- + local id=xrick
- + local md_inst=/opt/retropie/ports/xrick
- + [[ -d /opt/retropie/ports/xrick ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled yquake2
- + local id=yquake2
- + local md_inst=/opt/retropie/ports/yquake2
- + [[ -d /opt/retropie/ports/yquake2 ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled attractmode
- + local id=attractmode
- + local md_inst=/opt/retropie/supplementary/attractmode
- + [[ -d /opt/retropie/supplementary/attractmode ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled audiosettings
- + local id=audiosettings
- + local md_inst=/opt/retropie/supplementary/audiosettings
- + [[ -d /opt/retropie/supplementary/audiosettings ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled autostart
- + local id=autostart
- + local md_inst=/opt/retropie/supplementary/autostart
- + [[ -d /opt/retropie/supplementary/autostart ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled bashwelcometweak
- + local id=bashwelcometweak
- + local md_inst=/opt/retropie/supplementary/bashwelcometweak
- + [[ -d /opt/retropie/supplementary/bashwelcometweak ]]
- + return 0
- + [[ config != \d\e\p\e\n\d\s ]]
- + rp_installModule bashwelcometweak _update_
- + local id=bashwelcometweak
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule bashwelcometweak _update_
- + local md_id=bashwelcometweak
- + local mode=_update_
- + shift 2
- + rp_hasModule bashwelcometweak
- + local id=bashwelcometweak
- + [[ -n 189 ]]
- + return 0
- + rp_isEnabled bashwelcometweak
- + local id=bashwelcometweak
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled bashwelcometweak
- + local id=bashwelcometweak
- + local md_inst=/opt/retropie/supplementary/bashwelcometweak
- + [[ -d /opt/retropie/supplementary/bashwelcometweak ]]
- + return 0
- + rp_loadPackageInfo bashwelcometweak pkg_origin
- + local id=bashwelcometweak
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath bashwelcometweak
- ++ local id=bashwelcometweak
- ++ echo /opt/retropie/supplementary/bashwelcometweak
- + local pkg_file=/opt/retropie/supplementary/bashwelcometweak/retropie.pkg
- + [[ -f /opt/retropie/supplementary/bashwelcometweak/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/bashwelcometweak/retropie.pkg
- + data=source
- + [[ -n source ]]
- + __mod_info[$id/$key]=source
- + [[ 0 -eq 1 ]]
- + local pkg_origin=source
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary bashwelcometweak
- + local id=bashwelcometweak
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl bashwelcometweak
- ++ local id=bashwelcometweak
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
- ++ fnExists install_bin_bashwelcometweak
- ++ declare -f install_bin_bashwelcometweak
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled bluetooth
- + local id=bluetooth
- + local md_inst=/opt/retropie/supplementary/bluetooth
- + [[ -d /opt/retropie/supplementary/bluetooth ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled configedit
- + local id=configedit
- + local md_inst=/opt/retropie/supplementary/configedit
- + [[ -d /opt/retropie/supplementary/configedit ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled consolefont
- + local id=consolefont
- + local md_inst=/opt/retropie/supplementary/consolefont
- + [[ -d /opt/retropie/supplementary/consolefont ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled controlblock
- + local id=controlblock
- + local md_inst=/opt/retropie/supplementary/controlblock
- + [[ -d /opt/retropie/supplementary/controlblock ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled custombluez
- + local id=custombluez
- + local md_inst=/opt/retropie/supplementary/custombluez
- + [[ -d /opt/retropie/supplementary/custombluez ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled customhidsony
- + local id=customhidsony
- + local md_inst=/opt/retropie/supplementary/customhidsony
- + [[ -d /opt/retropie/supplementary/customhidsony ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled dispmanx
- + local id=dispmanx
- + local md_inst=/opt/retropie/supplementary/dispmanx
- + [[ -d /opt/retropie/supplementary/dispmanx ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled docsview
- + local id=docsview
- + local md_inst=/opt/retropie/supplementary/docsview
- + [[ -d /opt/retropie/supplementary/docsview ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled emulationstation-dev
- + local id=emulationstation-dev
- + local md_inst=/opt/retropie/supplementary/emulationstation-dev
- + [[ -d /opt/retropie/supplementary/emulationstation-dev ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled emulationstation
- + local id=emulationstation
- + local md_inst=/opt/retropie/supplementary/emulationstation
- + [[ -d /opt/retropie/supplementary/emulationstation ]]
- + return 0
- + [[ core != \d\e\p\e\n\d\s ]]
- + rp_installModule emulationstation _update_
- + local id=emulationstation
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule emulationstation _update_
- + local md_id=emulationstation
- + local mode=_update_
- + shift 2
- + rp_hasModule emulationstation
- + local id=emulationstation
- + [[ -n 199 ]]
- + return 0
- + rp_isEnabled emulationstation
- + local id=emulationstation
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled emulationstation
- + local id=emulationstation
- + local md_inst=/opt/retropie/supplementary/emulationstation
- + [[ -d /opt/retropie/supplementary/emulationstation ]]
- + return 0
- + rp_loadPackageInfo emulationstation pkg_origin
- + local id=emulationstation
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath emulationstation
- ++ local id=emulationstation
- ++ echo /opt/retropie/supplementary/emulationstation
- + local pkg_file=/opt/retropie/supplementary/emulationstation/retropie.pkg
- + [[ -f /opt/retropie/supplementary/emulationstation/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/emulationstation/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag frontend nonet
- + local string=frontend
- + local flag=nonet
- + [[ -z frontend ]]
- + [[ -z nonet ]]
- + [[ frontend =~ (^| )nonet($| ) ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary emulationstation
- + local id=emulationstation
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl emulationstation
- ++ local id=emulationstation
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
- ++ fnExists install_bin_emulationstation
- ++ declare -f install_bin_emulationstation
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled esthemes
- + local id=esthemes
- + local md_inst=/opt/retropie/supplementary/esthemes
- + [[ -d /opt/retropie/supplementary/esthemes ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled gamecondriver
- + local id=gamecondriver
- + local md_inst=/opt/retropie/supplementary/gamecondriver
- + [[ -d /opt/retropie/supplementary/gamecondriver ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled golang
- + local id=golang
- + local md_inst=/opt/retropie/supplementary/golang
- + [[ -d /opt/retropie/supplementary/golang ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled launchingimages
- + local id=launchingimages
- + local md_inst=/opt/retropie/supplementary/launchingimages
- + [[ -d /opt/retropie/supplementary/launchingimages ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled mehstation
- + local id=mehstation
- + local md_inst=/opt/retropie/supplementary/mehstation
- + [[ -d /opt/retropie/supplementary/mehstation ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled mesa-drm
- + local id=mesa-drm
- + local md_inst=/opt/retropie/supplementary/mesa-drm
- + [[ -d /opt/retropie/supplementary/mesa-drm ]]
- + return 0
- + [[ depends != \d\e\p\e\n\d\s ]]
- + for id in ${__mod_id[@]}
- + rp_isInstalled mkarcadejoystick
- + local id=mkarcadejoystick
- + local md_inst=/opt/retropie/supplementary/mkarcadejoystick
- + [[ -d /opt/retropie/supplementary/mkarcadejoystick ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled mobilegamepad
- + local id=mobilegamepad
- + local md_inst=/opt/retropie/supplementary/mobilegamepad
- + [[ -d /opt/retropie/supplementary/mobilegamepad ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled moonlight
- + local id=moonlight
- + local md_inst=/opt/retropie/supplementary/moonlight
- + [[ -d /opt/retropie/supplementary/moonlight ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled omxiv
- + local id=omxiv
- + local md_inst=/opt/retropie/supplementary/omxiv
- + [[ -d /opt/retropie/supplementary/omxiv ]]
- + return 0
- + [[ depends != \d\e\p\e\n\d\s ]]
- + for id in ${__mod_id[@]}
- + rp_isInstalled pegasus-fe
- + local id=pegasus-fe
- + local md_inst=/opt/retropie/supplementary/pegasus-fe
- + [[ -d /opt/retropie/supplementary/pegasus-fe ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled powerblock
- + local id=powerblock
- + local md_inst=/opt/retropie/supplementary/powerblock
- + [[ -d /opt/retropie/supplementary/powerblock ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled ps3controller
- + local id=ps3controller
- + local md_inst=/opt/retropie/supplementary/ps3controller
- + [[ -d /opt/retropie/supplementary/ps3controller ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled raspbiantools
- + local id=raspbiantools
- + local md_inst=/opt/retropie/supplementary/raspbiantools
- + [[ -d /opt/retropie/supplementary/raspbiantools ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled resetromdirs
- + local id=resetromdirs
- + local md_inst=/opt/retropie/supplementary/resetromdirs
- + [[ -d /opt/retropie/supplementary/resetromdirs ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled retronetplay
- + local id=retronetplay
- + local md_inst=/opt/retropie/supplementary/retronetplay
- + [[ -d /opt/retropie/supplementary/retronetplay ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled retropie-manager
- + local id=retropie-manager
- + local md_inst=/opt/retropie/supplementary/retropie-manager
- + [[ -d /opt/retropie/supplementary/retropie-manager ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled retropiemenu
- + local id=retropiemenu
- + local md_inst=/opt/retropie/supplementary/retropiemenu
- + [[ -d /opt/retropie/supplementary/retropiemenu ]]
- + return 0
- + [[ core != \d\e\p\e\n\d\s ]]
- + rp_installModule retropiemenu _update_
- + local id=retropiemenu
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule retropiemenu _update_
- + local md_id=retropiemenu
- + local mode=_update_
- + shift 2
- + rp_hasModule retropiemenu
- + local id=retropiemenu
- + [[ -n 217 ]]
- + return 0
- + rp_isEnabled retropiemenu
- + local id=retropiemenu
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled retropiemenu
- + local id=retropiemenu
- + local md_inst=/opt/retropie/supplementary/retropiemenu
- + [[ -d /opt/retropie/supplementary/retropiemenu ]]
- + return 0
- + rp_loadPackageInfo retropiemenu pkg_origin
- + local id=retropiemenu
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath retropiemenu
- ++ local id=retropiemenu
- ++ echo /opt/retropie/supplementary/retropiemenu
- + local pkg_file=/opt/retropie/supplementary/retropiemenu/retropie.pkg
- + [[ -f /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag nonet nonet
- + local string=nonet
- + local flag=nonet
- + [[ -z nonet ]]
- + [[ -z nonet ]]
- + [[ nonet =~ (^| )nonet($| ) ]]
- + return 0
- + has_net=1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary retropiemenu
- + local id=retropiemenu
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl retropiemenu
- ++ local id=retropiemenu
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/retropiemenu.tar.gz
- ++ fnExists install_bin_retropiemenu
- ++ declare -f install_bin_retropiemenu
- ++ return 0
- ++ fnExists __binary_url_retropiemenu
- ++ declare -f __binary_url_retropiemenu
- ++ return 1
- ++ url=notest
- ++ echo notest
- + local url=notest
- + [[ notest == \n\o\t\e\s\t ]]
- + return 0
- + local ret=0
- + [[ 0 -eq 0 ]]
- + has_binary=1
- + [[ 0 -eq 2 ]]
- + [[ 1 -eq 0 ]]
- + local do_update=0
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + printMsgs heading 'Checking for updates for retropiemenu'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nChecking for updates for retropiemenu\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Checking for updates for retropiemenu
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + rp_hasNewerModule retropiemenu binary
- + local id=retropiemenu
- + local type=binary
- + [[ -n '' ]]
- + rp_loadPackageInfo retropiemenu
- + local id=retropiemenu
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z '' ]]
- + keys=(pkg_origin pkg_date pkg_repo_type pkg_repo_url pkg_repo_branch pkg_repo_commit pkg_repo_date pkg_repo_extra)
- + local load=0
- ++ rp_getInstallPath retropiemenu
- ++ local id=retropiemenu
- ++ echo /opt/retropie/supplementary/retropiemenu
- + local pkg_file=/opt/retropie/supplementary/retropiemenu/retropie.pkg
- + [[ -f /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_date == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_date="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_type == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_type="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_url == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_url="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_branch == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_branch="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_commit == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_commit="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_date == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_date="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_extra == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_extra="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + data=
- + [[ -n '' ]]
- + [[ 1 -eq 1 ]]
- + __mod_info[$id/pkg_info]=1
- + local pkg_origin=binary
- + local pkg_date=
- + local pkg_repo_date=
- + local pkg_repo_commit=
- + local ret=1
- + case "$type" in
- + ret=
- + [[ -n '' ]]
- + [[ -z '' ]]
- + ret=2
- + __mod_info[$id/has_newer]=2
- + return 2
- + [[ 2 -eq 0 ]]
- + [[ 2 == 2 ]]
- + do_update=1
- + [[ 0 -eq 3 ]]
- + [[ 1 -eq 1 ]]
- + printMsgs console 'Update is available - updating ...'
- + local type=console
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ console == \d\i\a\l\o\g ]]
- + [[ console == \c\o\n\s\o\l\e ]]
- + echo -e 'Update is available - updating ...'
- Update is available - updating ...
- + [[ console == \h\e\a\d\i\n\g ]]
- + return 0
- + [[ 1 -eq 1 ]]
- + [[ binary != \s\o\u\r\c\e ]]
- + [[ 1 -eq 1 ]]
- + rp_callModule retropiemenu _binary_
- + local md_id=retropiemenu
- + local mode=_binary_
- + shift 2
- + rp_hasModule retropiemenu
- + local id=retropiemenu
- + [[ -n 217 ]]
- + return 0
- + rp_isEnabled retropiemenu
- + local id=retropiemenu
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + for mode in depends install_bin configure
- + rp_callModule retropiemenu depends
- + local md_id=retropiemenu
- + local mode=depends
- + shift 2
- + rp_hasModule retropiemenu
- + local id=retropiemenu
- + [[ -n 217 ]]
- + return 0
- + rp_isEnabled retropiemenu
- + local id=retropiemenu
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars retropiemenu
- ++ local id=retropiemenu
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath retropiemenu
- +++ local id=retropiemenu
- +++ echo /opt/retropie/supplementary/retropiemenu
- ++ echo 'local md_desc="RetroPie configuration menu for EmulationStation"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
- local md_inst="/opt/retropie/supplementary/retropiemenu"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
- + eval 'local md_desc="RetroPie configuration menu for EmulationStation"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
- local md_inst="/opt/retropie/supplementary/retropiemenu"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
- ++ local 'md_desc=RetroPie configuration menu for EmulationStation'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local md_flags=nonet
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh
- ++ local md_repo_type=
- ++ local md_repo_url=
- ++ local md_repo_branch=
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/retropiemenu
- ++ local md_inst=/opt/retropie/supplementary/retropiemenu
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=depends_retropiemenu
- + fnExists depends_retropiemenu
- + declare -f depends_retropiemenu
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + [[ '' == \r\e\m\o\v\e ]]
- + action=Installing
- + action+=' dependencies for'
- + [[ -n Installing dependencies for ]]
- + printHeading 'Installing dependencies for '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
- + printMsgs heading 'Installing dependencies for '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling dependencies for '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Installing dependencies for 'retropiemenu' : RetroPie configuration menu for EmulationStation
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + depends_retropiemenu
- + getDepends mc
- + own_pkgs=()
- + local own_pkgs
- + apt_pkgs=()
- + local apt_pkgs
- + all_pkgs=()
- + local all_pkgs
- + local pkg
- + for pkg in "$@"
- + pkg=($(_mapPackage "$pkg"))
- ++ _mapPackage mc
- ++ local pkg=mc
- ++ case "$pkg" in
- ++ echo mc
- + [[ mc == \R\P ]]
- + [[ install == \r\e\m\o\v\e ]]
- + hasPackage mc
- + local pkg=mc
- + local req_ver=
- + local comp=
- + [[ -z '' ]]
- + comp=ge
- + local ver
- + local status
- ++ dpkg-query -W '--showformat=${Status} ${Version}' mc
- + local 'out=install ok installed 3:4.8.22-1'
- + [[ 0 -eq 0 ]]
- + ver=3:4.8.22-1
- + status='install ok installed'
- + local installed=0
- + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
- + installed=1
- + [[ -z '' ]]
- + [[ 1 -eq 1 ]]
- + return 0
- + [[ 0 -eq 0 ]]
- + [[ 0 -eq 0 ]]
- + return
- + [[ -n '' ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/retropiemenu ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ depends == \i\n\s\t\a\l\l\_\b\i\n ]]
- + [[ depends == \i\n\s\t\a\l\l ]]
- + fnExists install_retropiemenu
- + declare -f install_retropiemenu
- + return 1
- + [[ depends == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 1 -eq 0 ]]
- + return 0
- + for mode in depends install_bin configure
- + rp_callModule retropiemenu install_bin
- + local md_id=retropiemenu
- + local mode=install_bin
- + shift 2
- + rp_hasModule retropiemenu
- + local id=retropiemenu
- + [[ -n 217 ]]
- + return 0
- + rp_isEnabled retropiemenu
- + local id=retropiemenu
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars retropiemenu
- ++ local id=retropiemenu
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath retropiemenu
- +++ local id=retropiemenu
- +++ echo /opt/retropie/supplementary/retropiemenu
- ++ echo 'local md_desc="RetroPie configuration menu for EmulationStation"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
- local md_inst="/opt/retropie/supplementary/retropiemenu"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
- + eval 'local md_desc="RetroPie configuration menu for EmulationStation"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
- local md_inst="/opt/retropie/supplementary/retropiemenu"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
- ++ local 'md_desc=RetroPie configuration menu for EmulationStation'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local md_flags=nonet
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh
- ++ local md_repo_type=
- ++ local md_repo_url=
- ++ local md_repo_branch=
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/retropiemenu
- ++ local md_inst=/opt/retropie/supplementary/retropiemenu
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=install_bin_retropiemenu
- + fnExists install_bin_retropiemenu
- + declare -f install_bin_retropiemenu
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + action='Installing (binary)'
- + [[ -n Installing (binary) ]]
- + printHeading 'Installing (binary) '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
- + printMsgs heading 'Installing (binary) '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling (binary) '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Installing (binary) 'retropiemenu' : RetroPie configuration menu for EmulationStation
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + fnExists install_bin_retropiemenu
- + declare -f install_bin_retropiemenu
- + return 0
- + mkdir -p /opt/retropie/supplementary/retropiemenu
- + install_bin_retropiemenu
- + return
- + [[ -n '' ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/retropiemenu ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ install_bin == \i\n\s\t\a\l\l\_\b\i\n ]]
- + rp_setPackageInfo retropiemenu binary
- + local id=retropiemenu
- ++ rp_getInstallPath retropiemenu
- ++ local id=retropiemenu
- ++ echo /opt/retropie/supplementary/retropiemenu
- + local install_path=/opt/retropie/supplementary/retropiemenu
- + [[ ! -d /opt/retropie/supplementary/retropiemenu ]]
- + local pkg=/opt/retropie/supplementary/retropiemenu/retropie.pkg
- + local origin=binary
- + rp_clearCachedInfo retropiemenu
- + local id=retropiemenu
- + __mod_info[$id/pkg_info]=0
- + __mod_info[$id/has_binary]=
- + __mod_info[$id/has_newer]=
- + iniConfig = '"' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + __ini_cfg_delim==
- + __ini_cfg_quote='"'
- + __ini_cfg_file=/opt/retropie/supplementary/retropiemenu/retropie.pkg
- + iniSet pkg_origin binary
- + iniProcess set pkg_origin binary ''
- + local cmd=set
- + local key=pkg_origin
- + local value=binary
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/retropiemenu/retropie.pkg
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
- + [[ -z pkg_origin ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*pkg_origin[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
- ++ egrep -i '^[[:space:]#]*pkg_origin[[:space:]]*=.*$' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- ++ tail -1
- + match='pkg_origin="binary"'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=pkg_origin="binary"'
- + [[ -z pkg_origin="binary" ]]
- ++ sedQuote 'pkg_origin="binary"'
- ++ local 'string=pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ echo 'pkg_origin="binary"'
- ++ sedQuote 'pkg_origin="binary"'
- ++ local 'string=pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ echo 'pkg_origin="binary"'
- + sed -i --follow-symlinks 's|pkg_origin="binary"|pkg_origin="binary"|g' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + [[ /opt/retropie/supplementary/retropiemenu/retropie.pkg =~ retroarch\.cfg$ ]]
- + return 0
- + local pkg_date
- + local pkg_repo_type
- + local pkg_repo_url
- + local pkg_repo_branch
- + local pkg_repo_commit
- + local pkg_repo_date
- + local pkg_repo_extra
- + [[ binary == \b\i\n\a\r\y ]]
- ++ rp_getBinaryDate retropiemenu
- ++ local id=retropiemenu
- +++ rp_getBinaryUrl retropiemenu
- +++ local id=retropiemenu
- +++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/retropiemenu.tar.gz
- +++ fnExists install_bin_retropiemenu
- +++ declare -f install_bin_retropiemenu
- +++ return 0
- +++ fnExists __binary_url_retropiemenu
- +++ declare -f __binary_url_retropiemenu
- +++ return 1
- +++ url=notest
- +++ echo notest
- ++ local url=notest
- ++ [[ -z notest ]]
- ++ [[ notest == \n\o\t\e\s\t ]]
- ++ return 1
- + pkg_date=
- + iniSet pkg_date ''
- + iniProcess set pkg_date '' ''
- + local cmd=set
- + local key=pkg_date
- + local value=
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/retropiemenu/retropie.pkg
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
- + [[ -z pkg_date ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*pkg_date[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
- ++ egrep -i '^[[:space:]#]*pkg_date[[:space:]]*=.*$' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- ++ tail -1
- + match='pkg_date=""'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=pkg_date=""'
- + [[ -z pkg_date="" ]]
- ++ sedQuote 'pkg_date=""'
- ++ local 'string=pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ echo 'pkg_date=""'
- ++ sedQuote 'pkg_date=""'
- ++ local 'string=pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ echo 'pkg_date=""'
- + sed -i --follow-symlinks 's|pkg_date=""|pkg_date=""|g' /opt/retropie/supplementary/retropiemenu/retropie.pkg
- + [[ /opt/retropie/supplementary/retropiemenu/retropie.pkg =~ retroarch\.cfg$ ]]
- + return 0
- + [[ install_bin == \i\n\s\t\a\l\l ]]
- + fnExists install_retropiemenu
- + declare -f install_retropiemenu
- + return 1
- + [[ install_bin == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 1 -eq 0 ]]
- + return 0
- + for mode in depends install_bin configure
- + rp_callModule retropiemenu configure
- + local md_id=retropiemenu
- + local mode=configure
- + shift 2
- + rp_hasModule retropiemenu
- + local id=retropiemenu
- + [[ -n 217 ]]
- + return 0
- + rp_isEnabled retropiemenu
- + local id=retropiemenu
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars retropiemenu
- ++ local id=retropiemenu
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath retropiemenu
- +++ local id=retropiemenu
- +++ echo /opt/retropie/supplementary/retropiemenu
- ++ echo 'local md_desc="RetroPie configuration menu for EmulationStation"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
- local md_inst="/opt/retropie/supplementary/retropiemenu"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
- + eval 'local md_desc="RetroPie configuration menu for EmulationStation"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
- local md_inst="/opt/retropie/supplementary/retropiemenu"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
- ++ local 'md_desc=RetroPie configuration menu for EmulationStation'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local md_flags=nonet
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh
- ++ local md_repo_type=
- ++ local md_repo_url=
- ++ local md_repo_branch=
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/retropiemenu
- ++ local md_inst=/opt/retropie/supplementary/retropiemenu
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=configure_retropiemenu
- + fnExists configure_retropiemenu
- + declare -f configure_retropiemenu
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + action=Configuring
- + pushd /opt/retropie/supplementary/retropiemenu
- /opt/retropie/supplementary/retropiemenu /home/pi/RetroPie-Setup
- + pushed=0
- + [[ -n Configuring ]]
- + printHeading 'Configuring '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
- + printMsgs heading 'Configuring '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nConfiguring '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Configuring 'retropiemenu' : RetroPie configuration menu for EmulationStation
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + configure_retropiemenu
- + [[ install == \r\e\m\o\v\e ]]
- + local rpdir=/home/pi/RetroPie/retropiemenu
- + mkdir -p /home/pi/RetroPie/retropiemenu
- + cp -Rv /home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons /home/pi/RetroPie/retropiemenu/
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/audiosettings.png' -> '/home/pi/RetroPie/retropiemenu/icons/audiosettings.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/bluetooth.png' -> '/home/pi/RetroPie/retropiemenu/icons/bluetooth.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/configedit.png' -> '/home/pi/RetroPie/retropiemenu/icons/configedit.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/esthemes.png' -> '/home/pi/RetroPie/retropiemenu/icons/esthemes.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/filemanager.png' -> '/home/pi/RetroPie/retropiemenu/icons/filemanager.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/raspiconfig.png' -> '/home/pi/RetroPie/retropiemenu/icons/raspiconfig.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/retroarch.png' -> '/home/pi/RetroPie/retropiemenu/icons/retroarch.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/retronetplay.png' -> '/home/pi/RetroPie/retropiemenu/icons/retronetplay.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/rpsetup.png' -> '/home/pi/RetroPie/retropiemenu/icons/rpsetup.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/runcommand.png' -> '/home/pi/RetroPie/retropiemenu/icons/runcommand.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/showip.png' -> '/home/pi/RetroPie/retropiemenu/icons/showip.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/splashscreen.png' -> '/home/pi/RetroPie/retropiemenu/icons/splashscreen.png'
- '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/wifi.png' -> '/home/pi/RetroPie/retropiemenu/icons/wifi.png'
- + chown -R pi:pi /home/pi/RetroPie/retropiemenu
- + isPlatform rpi
- + local flag=rpi
- + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
- + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
- + local flag=rpi
- + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
- + [[ -z rpi ]]
- + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
- + return 0
- + return 0
- + rm -f /home/pi/RetroPie/retropiemenu/dispmanx.rp
- + files=('audiosettings' 'bluetooth' 'configedit' 'esthemes' 'filemanager' 'raspiconfig' 'retroarch' 'retronetplay' 'rpsetup' 'runcommand' 'showip' 'splashscreen' 'wifi')
- + local files
- + names=('Audio' 'Bluetooth' 'Configuration Editor' 'ES Themes' 'File Manager' 'Raspi-Config' 'Retroarch' 'RetroArch Net Play' 'RetroPie Setup' 'Run Command Configuration' 'Show IP' 'Splash Screens' 'WiFi')
- + local names
- + descs=('Configure audio settings. Choose default of auto, 3.5mm jack, or HDMI. Mixer controls, and apply default settings.' 'Register and connect to Bluetooth devices. Unregister and remove devices, and display registered and connected devices.' 'Change common RetroArch options, and manually edit RetroArch configs, global configs, and non-RetroArch configs.' 'Install, uninstall, or update EmulationStation themes. Most themes can be previewed at https://retropie.org.uk/docs/Themes/.' 'Basic ASCII file manager for Linux allowing you to browse, copy, delete, and move files.' 'Change user password, boot options, internationalization, camera, add your Pi to Rastrack, overclock, overscan, memory split, SSH and more.' 'Launches the RetroArch GUI so you can change RetroArch options. Note: Changes will not be saved unless you have enabled the "Save Configuration On Exit" option.' 'Set up RetroArch Netplay options, choose host or client, port, host IP, delay frames, and your nickname.' 'Install RetroPie from binary or source, install experimental packages, additional drivers, edit Samba shares, custom scraper, as well as other RetroPie-related configurations.' 'Change what appears on the runcommand screen. Enable or disable the menu, enable or disable box art, and change CPU configuration.' 'Displays your current IP address, as well as other information provided by the command "ip addr show."' 'Enable or disable the splashscreen on RetroPie boot. Choose a splashscreen, download new splashscreens, and return splashscreen to default.' 'Connect to or disconnect from a WiFi network and configure WiFi settings.')
- + local descs
- + setESSystem RetroPie retropie /home/pi/RetroPie/retropiemenu '.rp .sh' 'sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty' '' retropie
- + local function
- ++ compgen -A function _add_system_
- + for function in $(compgen -A function _add_system_)
- + _add_system_attractmode RetroPie retropie /home/pi/RetroPie/retropiemenu '.rp .sh' 'sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty' '' retropie
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_system_)
- + _add_system_emulationstation RetroPie retropie /home/pi/RetroPie/retropiemenu '.rp .sh' 'sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty' '' retropie
- + local fullname=RetroPie
- + local name=retropie
- + local path=/home/pi/RetroPie/retropiemenu
- + local 'extension=.rp .sh'
- + local 'command=sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty'
- + local platform=
- + local theme=retropie
- + local conf=/etc/emulationstation/es_systems.cfg
- + mkdir -p /etc/emulationstation
- + [[ ! -f /etc/emulationstation/es_systems.cfg ]]
- + cp /etc/emulationstation/es_systems.cfg /etc/emulationstation/es_systems.cfg.bak
- ++ xmlstarlet sel -t -v 'count(/systemList/system[name='\''retropie'\''])' /etc/emulationstation/es_systems.cfg
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/systemList/system[name='\''retropie'\'']/fullname' -v RetroPie -u '/systemList/system[name='\''retropie'\'']/path' -v /home/pi/RetroPie/retropiemenu -u '/systemList/system[name='\''retropie'\'']/extension' -v '.rp .sh' -u '/systemList/system[name='\''retropie'\'']/command' -v 'sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty' -u '/systemList/system[name='\''retropie'\'']/platform' -v '' -u '/systemList/system[name='\''retropie'\'']/theme' -v retropie /etc/emulationstation/es_systems.cfg
- + local conf_local=/opt/retropie/configs/all/emulationstation/es_systems.cfg
- + [[ -f /opt/retropie/configs/all/emulationstation/es_systems.cfg ]]
- + _sort_systems_emulationstation name
- + local field=name
- + cp /etc/emulationstation/es_systems.cfg /etc/emulationstation/es_systems.cfg.bak
- + xmlstarlet sel -D -I -t -m / -e systemList -m //system -s A:T:U name -c . /etc/emulationstation/es_systems.cfg.bak
- + for function in $(compgen -A function _add_system_)
- + _add_system_mehstation RetroPie retropie /home/pi/RetroPie/retropiemenu '.rp .sh' 'sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty' '' retropie
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + local file
- + local name
- + local desc
- + local image
- + local i
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + isPlatform rpi
- + local flag=rpi
- + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
- + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
- + local flag=rpi
- + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
- + [[ -z rpi ]]
- + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
- + return 0
- + return 0
- + file=audiosettings
- + name=Audio
- + desc='Configure audio settings. Choose default of auto, 3.5mm jack, or HDMI. Mixer controls, and apply default settings.'
- + image=/home/pi/RetroPie/retropiemenu/icons/audiosettings.png
- + touch /home/pi/RetroPie/retropiemenu/audiosettings.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie audiosettings.rp Audio 'Configure audio settings. Choose default of auto, 3.5mm jack, or HDMI. Mixer controls, and apply default settings.' /home/pi/RetroPie/retropiemenu/icons/audiosettings.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie audiosettings.rp Audio 'Configure audio settings. Choose default of auto, 3.5mm jack, or HDMI. Mixer controls, and apply default settings.' /home/pi/RetroPie/retropiemenu/icons/audiosettings.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./audiosettings.rp
- + local name=Audio
- + local 'desc=Configure audio settings. Choose default of auto, 3.5mm jack, or HDMI. Mixer controls, and apply default settings.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/audiosettings.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./audiosettings.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''Audio'\'']/path' -v ./audiosettings.rp -u '/gameList/game[name='\''Audio'\'']/name' -v Audio -u '/gameList/game[name='\''Audio'\'']/desc' -v 'Configure audio settings. Choose default of auto, 3.5mm jack, or HDMI. Mixer controls, and apply default settings.' -u '/gameList/game[name='\''Audio'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/audiosettings.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie audiosettings.rp Audio 'Configure audio settings. Choose default of auto, 3.5mm jack, or HDMI. Mixer controls, and apply default settings.' /home/pi/RetroPie/retropiemenu/icons/audiosettings.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + file=bluetooth
- + name=Bluetooth
- + desc='Register and connect to Bluetooth devices. Unregister and remove devices, and display registered and connected devices.'
- + image=/home/pi/RetroPie/retropiemenu/icons/bluetooth.png
- + touch /home/pi/RetroPie/retropiemenu/bluetooth.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie bluetooth.rp Bluetooth 'Register and connect to Bluetooth devices. Unregister and remove devices, and display registered and connected devices.' /home/pi/RetroPie/retropiemenu/icons/bluetooth.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie bluetooth.rp Bluetooth 'Register and connect to Bluetooth devices. Unregister and remove devices, and display registered and connected devices.' /home/pi/RetroPie/retropiemenu/icons/bluetooth.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./bluetooth.rp
- + local name=Bluetooth
- + local 'desc=Register and connect to Bluetooth devices. Unregister and remove devices, and display registered and connected devices.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/bluetooth.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./bluetooth.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''Bluetooth'\'']/path' -v ./bluetooth.rp -u '/gameList/game[name='\''Bluetooth'\'']/name' -v Bluetooth -u '/gameList/game[name='\''Bluetooth'\'']/desc' -v 'Register and connect to Bluetooth devices. Unregister and remove devices, and display registered and connected devices.' -u '/gameList/game[name='\''Bluetooth'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/bluetooth.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie bluetooth.rp Bluetooth 'Register and connect to Bluetooth devices. Unregister and remove devices, and display registered and connected devices.' /home/pi/RetroPie/retropiemenu/icons/bluetooth.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + file=configedit
- + name='Configuration Editor'
- + desc='Change common RetroArch options, and manually edit RetroArch configs, global configs, and non-RetroArch configs.'
- + image=/home/pi/RetroPie/retropiemenu/icons/configedit.png
- + touch /home/pi/RetroPie/retropiemenu/configedit.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie configedit.rp 'Configuration Editor' 'Change common RetroArch options, and manually edit RetroArch configs, global configs, and non-RetroArch configs.' /home/pi/RetroPie/retropiemenu/icons/configedit.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie configedit.rp 'Configuration Editor' 'Change common RetroArch options, and manually edit RetroArch configs, global configs, and non-RetroArch configs.' /home/pi/RetroPie/retropiemenu/icons/configedit.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./configedit.rp
- + local 'name=Configuration Editor'
- + local 'desc=Change common RetroArch options, and manually edit RetroArch configs, global configs, and non-RetroArch configs.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/configedit.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./configedit.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''Configuration Editor'\'']/path' -v ./configedit.rp -u '/gameList/game[name='\''Configuration Editor'\'']/name' -v 'Configuration Editor' -u '/gameList/game[name='\''Configuration Editor'\'']/desc' -v 'Change common RetroArch options, and manually edit RetroArch configs, global configs, and non-RetroArch configs.' -u '/gameList/game[name='\''Configuration Editor'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/configedit.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie configedit.rp 'Configuration Editor' 'Change common RetroArch options, and manually edit RetroArch configs, global configs, and non-RetroArch configs.' /home/pi/RetroPie/retropiemenu/icons/configedit.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + file=esthemes
- + name='ES Themes'
- + desc='Install, uninstall, or update EmulationStation themes. Most themes can be previewed at https://retropie.org.uk/docs/Themes/.'
- + image=/home/pi/RetroPie/retropiemenu/icons/esthemes.png
- + touch /home/pi/RetroPie/retropiemenu/esthemes.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie esthemes.rp 'ES Themes' 'Install, uninstall, or update EmulationStation themes. Most themes can be previewed at https://retropie.org.uk/docs/Themes/.' /home/pi/RetroPie/retropiemenu/icons/esthemes.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie esthemes.rp 'ES Themes' 'Install, uninstall, or update EmulationStation themes. Most themes can be previewed at https://retropie.org.uk/docs/Themes/.' /home/pi/RetroPie/retropiemenu/icons/esthemes.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./esthemes.rp
- + local 'name=ES Themes'
- + local 'desc=Install, uninstall, or update EmulationStation themes. Most themes can be previewed at https://retropie.org.uk/docs/Themes/.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/esthemes.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./esthemes.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''ES Themes'\'']/path' -v ./esthemes.rp -u '/gameList/game[name='\''ES Themes'\'']/name' -v 'ES Themes' -u '/gameList/game[name='\''ES Themes'\'']/desc' -v 'Install, uninstall, or update EmulationStation themes. Most themes can be previewed at https://retropie.org.uk/docs/Themes/.' -u '/gameList/game[name='\''ES Themes'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/esthemes.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie esthemes.rp 'ES Themes' 'Install, uninstall, or update EmulationStation themes. Most themes can be previewed at https://retropie.org.uk/docs/Themes/.' /home/pi/RetroPie/retropiemenu/icons/esthemes.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + file=filemanager
- + name='File Manager'
- + desc='Basic ASCII file manager for Linux allowing you to browse, copy, delete, and move files.'
- + image=/home/pi/RetroPie/retropiemenu/icons/filemanager.png
- + touch /home/pi/RetroPie/retropiemenu/filemanager.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie filemanager.rp 'File Manager' 'Basic ASCII file manager for Linux allowing you to browse, copy, delete, and move files.' /home/pi/RetroPie/retropiemenu/icons/filemanager.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie filemanager.rp 'File Manager' 'Basic ASCII file manager for Linux allowing you to browse, copy, delete, and move files.' /home/pi/RetroPie/retropiemenu/icons/filemanager.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./filemanager.rp
- + local 'name=File Manager'
- + local 'desc=Basic ASCII file manager for Linux allowing you to browse, copy, delete, and move files.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/filemanager.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./filemanager.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''File Manager'\'']/path' -v ./filemanager.rp -u '/gameList/game[name='\''File Manager'\'']/name' -v 'File Manager' -u '/gameList/game[name='\''File Manager'\'']/desc' -v 'Basic ASCII file manager for Linux allowing you to browse, copy, delete, and move files.' -u '/gameList/game[name='\''File Manager'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/filemanager.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie filemanager.rp 'File Manager' 'Basic ASCII file manager for Linux allowing you to browse, copy, delete, and move files.' /home/pi/RetroPie/retropiemenu/icons/filemanager.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + isPlatform rpi
- + local flag=rpi
- + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
- + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
- + local flag=rpi
- + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
- + [[ -z rpi ]]
- + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
- + return 0
- + return 0
- + file=raspiconfig
- + name=Raspi-Config
- + desc='Change user password, boot options, internationalization, camera, add your Pi to Rastrack, overclock, overscan, memory split, SSH and more.'
- + image=/home/pi/RetroPie/retropiemenu/icons/raspiconfig.png
- + touch /home/pi/RetroPie/retropiemenu/raspiconfig.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie raspiconfig.rp Raspi-Config 'Change user password, boot options, internationalization, camera, add your Pi to Rastrack, overclock, overscan, memory split, SSH and more.' /home/pi/RetroPie/retropiemenu/icons/raspiconfig.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie raspiconfig.rp Raspi-Config 'Change user password, boot options, internationalization, camera, add your Pi to Rastrack, overclock, overscan, memory split, SSH and more.' /home/pi/RetroPie/retropiemenu/icons/raspiconfig.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./raspiconfig.rp
- + local name=Raspi-Config
- + local 'desc=Change user password, boot options, internationalization, camera, add your Pi to Rastrack, overclock, overscan, memory split, SSH and more.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/raspiconfig.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./raspiconfig.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''Raspi-Config'\'']/path' -v ./raspiconfig.rp -u '/gameList/game[name='\''Raspi-Config'\'']/name' -v Raspi-Config -u '/gameList/game[name='\''Raspi-Config'\'']/desc' -v 'Change user password, boot options, internationalization, camera, add your Pi to Rastrack, overclock, overscan, memory split, SSH and more.' -u '/gameList/game[name='\''Raspi-Config'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/raspiconfig.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie raspiconfig.rp Raspi-Config 'Change user password, boot options, internationalization, camera, add your Pi to Rastrack, overclock, overscan, memory split, SSH and more.' /home/pi/RetroPie/retropiemenu/icons/raspiconfig.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + file=retroarch
- + name=Retroarch
- + desc='Launches the RetroArch GUI so you can change RetroArch options. Note: Changes will not be saved unless you have enabled the "Save Configuration On Exit" option.'
- + image=/home/pi/RetroPie/retropiemenu/icons/retroarch.png
- + touch /home/pi/RetroPie/retropiemenu/retroarch.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie retroarch.rp Retroarch 'Launches the RetroArch GUI so you can change RetroArch options. Note: Changes will not be saved unless you have enabled the "Save Configuration On Exit" option.' /home/pi/RetroPie/retropiemenu/icons/retroarch.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie retroarch.rp Retroarch 'Launches the RetroArch GUI so you can change RetroArch options. Note: Changes will not be saved unless you have enabled the "Save Configuration On Exit" option.' /home/pi/RetroPie/retropiemenu/icons/retroarch.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./retroarch.rp
- + local name=Retroarch
- + local 'desc=Launches the RetroArch GUI so you can change RetroArch options. Note: Changes will not be saved unless you have enabled the "Save Configuration On Exit" option.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/retroarch.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./retroarch.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''Retroarch'\'']/path' -v ./retroarch.rp -u '/gameList/game[name='\''Retroarch'\'']/name' -v Retroarch -u '/gameList/game[name='\''Retroarch'\'']/desc' -v 'Launches the RetroArch GUI so you can change RetroArch options. Note: Changes will not be saved unless you have enabled the "Save Configuration On Exit" option.' -u '/gameList/game[name='\''Retroarch'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/retroarch.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie retroarch.rp Retroarch 'Launches the RetroArch GUI so you can change RetroArch options. Note: Changes will not be saved unless you have enabled the "Save Configuration On Exit" option.' /home/pi/RetroPie/retropiemenu/icons/retroarch.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + file=retronetplay
- + name='RetroArch Net Play'
- + desc='Set up RetroArch Netplay options, choose host or client, port, host IP, delay frames, and your nickname.'
- + image=/home/pi/RetroPie/retropiemenu/icons/retronetplay.png
- + touch /home/pi/RetroPie/retropiemenu/retronetplay.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie retronetplay.rp 'RetroArch Net Play' 'Set up RetroArch Netplay options, choose host or client, port, host IP, delay frames, and your nickname.' /home/pi/RetroPie/retropiemenu/icons/retronetplay.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie retronetplay.rp 'RetroArch Net Play' 'Set up RetroArch Netplay options, choose host or client, port, host IP, delay frames, and your nickname.' /home/pi/RetroPie/retropiemenu/icons/retronetplay.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./retronetplay.rp
- + local 'name=RetroArch Net Play'
- + local 'desc=Set up RetroArch Netplay options, choose host or client, port, host IP, delay frames, and your nickname.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/retronetplay.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./retronetplay.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''RetroArch Net Play'\'']/path' -v ./retronetplay.rp -u '/gameList/game[name='\''RetroArch Net Play'\'']/name' -v 'RetroArch Net Play' -u '/gameList/game[name='\''RetroArch Net Play'\'']/desc' -v 'Set up RetroArch Netplay options, choose host or client, port, host IP, delay frames, and your nickname.' -u '/gameList/game[name='\''RetroArch Net Play'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/retronetplay.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie retronetplay.rp 'RetroArch Net Play' 'Set up RetroArch Netplay options, choose host or client, port, host IP, delay frames, and your nickname.' /home/pi/RetroPie/retropiemenu/icons/retronetplay.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + file=rpsetup
- + name='RetroPie Setup'
- + desc='Install RetroPie from binary or source, install experimental packages, additional drivers, edit Samba shares, custom scraper, as well as other RetroPie-related configurations.'
- + image=/home/pi/RetroPie/retropiemenu/icons/rpsetup.png
- + touch /home/pi/RetroPie/retropiemenu/rpsetup.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie rpsetup.rp 'RetroPie Setup' 'Install RetroPie from binary or source, install experimental packages, additional drivers, edit Samba shares, custom scraper, as well as other RetroPie-related configurations.' /home/pi/RetroPie/retropiemenu/icons/rpsetup.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie rpsetup.rp 'RetroPie Setup' 'Install RetroPie from binary or source, install experimental packages, additional drivers, edit Samba shares, custom scraper, as well as other RetroPie-related configurations.' /home/pi/RetroPie/retropiemenu/icons/rpsetup.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./rpsetup.rp
- + local 'name=RetroPie Setup'
- + local 'desc=Install RetroPie from binary or source, install experimental packages, additional drivers, edit Samba shares, custom scraper, as well as other RetroPie-related configurations.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/rpsetup.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./rpsetup.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''RetroPie Setup'\'']/path' -v ./rpsetup.rp -u '/gameList/game[name='\''RetroPie Setup'\'']/name' -v 'RetroPie Setup' -u '/gameList/game[name='\''RetroPie Setup'\'']/desc' -v 'Install RetroPie from binary or source, install experimental packages, additional drivers, edit Samba shares, custom scraper, as well as other RetroPie-related configurations.' -u '/gameList/game[name='\''RetroPie Setup'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/rpsetup.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie rpsetup.rp 'RetroPie Setup' 'Install RetroPie from binary or source, install experimental packages, additional drivers, edit Samba shares, custom scraper, as well as other RetroPie-related configurations.' /home/pi/RetroPie/retropiemenu/icons/rpsetup.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + file=runcommand
- + name='Run Command Configuration'
- + desc='Change what appears on the runcommand screen. Enable or disable the menu, enable or disable box art, and change CPU configuration.'
- + image=/home/pi/RetroPie/retropiemenu/icons/runcommand.png
- + touch /home/pi/RetroPie/retropiemenu/runcommand.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie runcommand.rp 'Run Command Configuration' 'Change what appears on the runcommand screen. Enable or disable the menu, enable or disable box art, and change CPU configuration.' /home/pi/RetroPie/retropiemenu/icons/runcommand.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie runcommand.rp 'Run Command Configuration' 'Change what appears on the runcommand screen. Enable or disable the menu, enable or disable box art, and change CPU configuration.' /home/pi/RetroPie/retropiemenu/icons/runcommand.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./runcommand.rp
- + local 'name=Run Command Configuration'
- + local 'desc=Change what appears on the runcommand screen. Enable or disable the menu, enable or disable box art, and change CPU configuration.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/runcommand.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./runcommand.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''Run Command Configuration'\'']/path' -v ./runcommand.rp -u '/gameList/game[name='\''Run Command Configuration'\'']/name' -v 'Run Command Configuration' -u '/gameList/game[name='\''Run Command Configuration'\'']/desc' -v 'Change what appears on the runcommand screen. Enable or disable the menu, enable or disable box art, and change CPU configuration.' -u '/gameList/game[name='\''Run Command Configuration'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/runcommand.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie runcommand.rp 'Run Command Configuration' 'Change what appears on the runcommand screen. Enable or disable the menu, enable or disable box art, and change CPU configuration.' /home/pi/RetroPie/retropiemenu/icons/runcommand.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + file=showip
- + name='Show IP'
- + desc='Displays your current IP address, as well as other information provided by the command "ip addr show."'
- + image=/home/pi/RetroPie/retropiemenu/icons/showip.png
- + touch /home/pi/RetroPie/retropiemenu/showip.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie showip.rp 'Show IP' 'Displays your current IP address, as well as other information provided by the command "ip addr show."' /home/pi/RetroPie/retropiemenu/icons/showip.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie showip.rp 'Show IP' 'Displays your current IP address, as well as other information provided by the command "ip addr show."' /home/pi/RetroPie/retropiemenu/icons/showip.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./showip.rp
- + local 'name=Show IP'
- + local 'desc=Displays your current IP address, as well as other information provided by the command "ip addr show."'
- + local image=/home/pi/RetroPie/retropiemenu/icons/showip.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./showip.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''Show IP'\'']/path' -v ./showip.rp -u '/gameList/game[name='\''Show IP'\'']/name' -v 'Show IP' -u '/gameList/game[name='\''Show IP'\'']/desc' -v 'Displays your current IP address, as well as other information provided by the command "ip addr show."' -u '/gameList/game[name='\''Show IP'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/showip.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie showip.rp 'Show IP' 'Displays your current IP address, as well as other information provided by the command "ip addr show."' /home/pi/RetroPie/retropiemenu/icons/showip.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + isPlatform rpi
- + local flag=rpi
- + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
- + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
- + local flag=rpi
- + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
- + [[ -z rpi ]]
- + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
- + return 0
- + return 0
- + file=splashscreen
- + name='Splash Screens'
- + desc='Enable or disable the splashscreen on RetroPie boot. Choose a splashscreen, download new splashscreens, and return splashscreen to default.'
- + image=/home/pi/RetroPie/retropiemenu/icons/splashscreen.png
- + touch /home/pi/RetroPie/retropiemenu/splashscreen.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie splashscreen.rp 'Splash Screens' 'Enable or disable the splashscreen on RetroPie boot. Choose a splashscreen, download new splashscreens, and return splashscreen to default.' /home/pi/RetroPie/retropiemenu/icons/splashscreen.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie splashscreen.rp 'Splash Screens' 'Enable or disable the splashscreen on RetroPie boot. Choose a splashscreen, download new splashscreens, and return splashscreen to default.' /home/pi/RetroPie/retropiemenu/icons/splashscreen.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./splashscreen.rp
- + local 'name=Splash Screens'
- + local 'desc=Enable or disable the splashscreen on RetroPie boot. Choose a splashscreen, download new splashscreens, and return splashscreen to default.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/splashscreen.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./splashscreen.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''Splash Screens'\'']/path' -v ./splashscreen.rp -u '/gameList/game[name='\''Splash Screens'\'']/name' -v 'Splash Screens' -u '/gameList/game[name='\''Splash Screens'\'']/desc' -v 'Enable or disable the splashscreen on RetroPie boot. Choose a splashscreen, download new splashscreens, and return splashscreen to default.' -u '/gameList/game[name='\''Splash Screens'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/splashscreen.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie splashscreen.rp 'Splash Screens' 'Enable or disable the splashscreen on RetroPie boot. Choose a splashscreen, download new splashscreens, and return splashscreen to default.' /home/pi/RetroPie/retropiemenu/icons/splashscreen.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + for i in "${!files[@]}"
- + case "${files[i]}" in
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- + file=wifi
- + name=WiFi
- + desc='Connect to or disconnect from a WiFi network and configure WiFi settings.'
- + image=/home/pi/RetroPie/retropiemenu/icons/wifi.png
- + touch /home/pi/RetroPie/retropiemenu/wifi.rp
- + local function
- ++ compgen -A function _add_rom_
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_attractmode retropie RetroPie wifi.rp WiFi 'Connect to or disconnect from a WiFi network and configure WiFi settings.' /home/pi/RetroPie/retropiemenu/icons/wifi.png
- ++ _get_configdir_attractmode
- ++ echo /opt/retropie/configs/all/attractmode
- + local attract_dir=/opt/retropie/configs/all/attractmode
- + [[ ! -d /opt/retropie/configs/all/attractmode ]]
- + return 0
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_emulationstation retropie RetroPie wifi.rp WiFi 'Connect to or disconnect from a WiFi network and configure WiFi settings.' /home/pi/RetroPie/retropiemenu/icons/wifi.png
- + local system_name=retropie
- + local system_fullname=RetroPie
- + local path=./wifi.rp
- + local name=WiFi
- + local 'desc=Connect to or disconnect from a WiFi network and configure WiFi settings.'
- + local image=/home/pi/RetroPie/retropiemenu/icons/wifi.png
- + local config_dir=/opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation
- + mkdir -p /opt/retropie/configs/all/emulationstation
- + chown pi:pi /opt/retropie/configs/all/emulationstation
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
- + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
- + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
- ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./wifi.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + [[ 1 -eq 0 ]]
- + xmlstarlet ed -L -u '/gameList/game[name='\''WiFi'\'']/path' -v ./wifi.rp -u '/gameList/game[name='\''WiFi'\'']/name' -v WiFi -u '/gameList/game[name='\''WiFi'\'']/desc' -v 'Connect to or disconnect from a WiFi network and configure WiFi settings.' -u '/gameList/game[name='\''WiFi'\'']/image' -v /home/pi/RetroPie/retropiemenu/icons/wifi.png /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
- + for function in $(compgen -A function _add_rom_)
- + _add_rom_mehstation retropie RetroPie wifi.rp WiFi 'Connect to or disconnect from a WiFi network and configure WiFi settings.' /home/pi/RetroPie/retropiemenu/icons/wifi.png
- ++ _get_database_mehstation
- ++ echo /opt/retropie/configs/all/mehstation/database.db
- + local db=/opt/retropie/configs/all/mehstation/database.db
- + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
- + return 0
- + [[ -n '' ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/retropiemenu ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ configure == \i\n\s\t\a\l\l\_\b\i\n ]]
- + [[ configure == \i\n\s\t\a\l\l ]]
- + fnExists install_retropiemenu
- + declare -f install_retropiemenu
- + return 1
- + [[ configure == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 0 -eq 0 ]]
- + popd
- /home/pi/RetroPie-Setup
- + return 0
- + return 0
- + return 0
- + return 0
- + for id in ${__mod_id[@]}
- + rp_isInstalled runcommand
- + local id=runcommand
- + local md_inst=/opt/retropie/supplementary/runcommand
- + [[ -d /opt/retropie/supplementary/runcommand ]]
- + return 0
- + [[ core != \d\e\p\e\n\d\s ]]
- + rp_installModule runcommand _update_
- + local id=runcommand
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule runcommand _update_
- + local md_id=runcommand
- + local mode=_update_
- + shift 2
- + rp_hasModule runcommand
- + local id=runcommand
- + [[ -n 218 ]]
- + return 0
- + rp_isEnabled runcommand
- + local id=runcommand
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled runcommand
- + local id=runcommand
- + local md_inst=/opt/retropie/supplementary/runcommand
- + [[ -d /opt/retropie/supplementary/runcommand ]]
- + return 0
- + rp_loadPackageInfo runcommand pkg_origin
- + local id=runcommand
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath runcommand
- ++ local id=runcommand
- ++ echo /opt/retropie/supplementary/runcommand
- + local pkg_file=/opt/retropie/supplementary/runcommand/retropie.pkg
- + [[ -f /opt/retropie/supplementary/runcommand/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag nonet nonet
- + local string=nonet
- + local flag=nonet
- + [[ -z nonet ]]
- + [[ -z nonet ]]
- + [[ nonet =~ (^| )nonet($| ) ]]
- + return 0
- + has_net=1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary runcommand
- + local id=runcommand
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl runcommand
- ++ local id=runcommand
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/runcommand.tar.gz
- ++ fnExists install_bin_runcommand
- ++ declare -f install_bin_runcommand
- ++ return 0
- ++ fnExists __binary_url_runcommand
- ++ declare -f __binary_url_runcommand
- ++ return 1
- ++ url=notest
- ++ echo notest
- + local url=notest
- + [[ notest == \n\o\t\e\s\t ]]
- + return 0
- + local ret=0
- + [[ 0 -eq 0 ]]
- + has_binary=1
- + [[ 0 -eq 2 ]]
- + [[ 1 -eq 0 ]]
- + local do_update=0
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + printMsgs heading 'Checking for updates for runcommand'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nChecking for updates for runcommand\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Checking for updates for runcommand
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + rp_hasNewerModule runcommand binary
- + local id=runcommand
- + local type=binary
- + [[ -n '' ]]
- + rp_loadPackageInfo runcommand
- + local id=runcommand
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z '' ]]
- + keys=(pkg_origin pkg_date pkg_repo_type pkg_repo_url pkg_repo_branch pkg_repo_commit pkg_repo_date pkg_repo_extra)
- + local load=0
- ++ rp_getInstallPath runcommand
- ++ local id=runcommand
- ++ echo /opt/retropie/supplementary/runcommand
- + local pkg_file=/opt/retropie/supplementary/runcommand/retropie.pkg
- + [[ -f /opt/retropie/supplementary/runcommand/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_date == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_date="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_type == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_type="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_url == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_url="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_branch == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_branch="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_commit == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_commit="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_date == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_date="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_extra == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_extra="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
- + data=
- + [[ -n '' ]]
- + [[ 1 -eq 1 ]]
- + __mod_info[$id/pkg_info]=1
- + local pkg_origin=binary
- + local pkg_date=
- + local pkg_repo_date=
- + local pkg_repo_commit=
- + local ret=1
- + case "$type" in
- + ret=
- + [[ -n '' ]]
- + [[ -z '' ]]
- + ret=2
- + __mod_info[$id/has_newer]=2
- + return 2
- + [[ 2 -eq 0 ]]
- + [[ 2 == 2 ]]
- + do_update=1
- + [[ 0 -eq 3 ]]
- + [[ 1 -eq 1 ]]
- + printMsgs console 'Update is available - updating ...'
- + local type=console
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ console == \d\i\a\l\o\g ]]
- + [[ console == \c\o\n\s\o\l\e ]]
- + echo -e 'Update is available - updating ...'
- Update is available - updating ...
- + [[ console == \h\e\a\d\i\n\g ]]
- + return 0
- + [[ 1 -eq 1 ]]
- + [[ binary != \s\o\u\r\c\e ]]
- + [[ 1 -eq 1 ]]
- + rp_callModule runcommand _binary_
- + local md_id=runcommand
- + local mode=_binary_
- + shift 2
- + rp_hasModule runcommand
- + local id=runcommand
- + [[ -n 218 ]]
- + return 0
- + rp_isEnabled runcommand
- + local id=runcommand
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + for mode in depends install_bin configure
- + rp_callModule runcommand depends
- + local md_id=runcommand
- + local mode=depends
- + shift 2
- + rp_hasModule runcommand
- + local id=runcommand
- + [[ -n 218 ]]
- + return 0
- + rp_isEnabled runcommand
- + local id=runcommand
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars runcommand
- ++ local id=runcommand
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath runcommand
- +++ local id=runcommand
- +++ echo /opt/retropie/supplementary/runcommand
- ++ echo 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
- local md_inst="/opt/retropie/supplementary/runcommand"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
- + eval 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
- local md_inst="/opt/retropie/supplementary/runcommand"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
- ++ local 'md_desc=The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local md_flags=nonet
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh
- ++ local md_repo_type=
- ++ local md_repo_url=
- ++ local md_repo_branch=
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/runcommand
- ++ local md_inst=/opt/retropie/supplementary/runcommand
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=depends_runcommand
- + fnExists depends_runcommand
- + declare -f depends_runcommand
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + [[ '' == \r\e\m\o\v\e ]]
- + action=Installing
- + action+=' dependencies for'
- + [[ -n Installing dependencies for ]]
- + printHeading 'Installing dependencies for '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
- + printMsgs heading 'Installing dependencies for '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling dependencies for '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Installing dependencies for 'runcommand' : The 'runcommand' launch script - needed for launching the emulators from the frontend
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + depends_runcommand
- + depends=()
- + local depends
- + isPlatform rpi
- + local flag=rpi
- + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
- + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
- + local flag=rpi
- + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
- + [[ -z rpi ]]
- + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
- + return 0
- + return 0
- + depends+=(libraspberrypi-bin)
- + isPlatform rpi
- + local flag=rpi
- + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
- + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
- + local flag=rpi
- + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
- + [[ -z rpi ]]
- + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
- + return 0
- + return 0
- + depends+=(fbi fbset)
- + isPlatform x11
- + local flag=x11
- + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' x11
- + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
- + local flag=x11
- + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
- + [[ -z x11 ]]
- + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )x11($| ) ]]
- + return 1
- + return 1
- + getDepends libraspberrypi-bin fbi fbset
- + own_pkgs=()
- + local own_pkgs
- + apt_pkgs=()
- + local apt_pkgs
- + all_pkgs=()
- + local all_pkgs
- + local pkg
- + for pkg in "$@"
- + pkg=($(_mapPackage "$pkg"))
- ++ _mapPackage libraspberrypi-bin
- ++ local pkg=libraspberrypi-bin
- ++ case "$pkg" in
- ++ isPlatform osmc
- ++ local flag=osmc
- ++ hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' osmc
- ++ local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
- ++ local flag=osmc
- ++ [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
- ++ [[ -z osmc ]]
- ++ [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )osmc($| ) ]]
- ++ return 1
- ++ return 1
- ++ isPlatform xbian
- ++ local flag=xbian
- ++ hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' xbian
- ++ local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
- ++ local flag=xbian
- ++ [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
- ++ [[ -z xbian ]]
- ++ [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )xbian($| ) ]]
- ++ return 1
- ++ return 1
- ++ echo libraspberrypi-bin
- + [[ libraspberrypi-bin == \R\P ]]
- + [[ install == \r\e\m\o\v\e ]]
- + hasPackage libraspberrypi-bin
- + local pkg=libraspberrypi-bin
- + local req_ver=
- + local comp=
- + [[ -z '' ]]
- + comp=ge
- + local ver
- + local status
- ++ dpkg-query -W '--showformat=${Status} ${Version}' libraspberrypi-bin
- + local 'out=install ok installed 1.20210201-1'
- + [[ 0 -eq 0 ]]
- + ver=1.20210201-1
- + status='install ok installed'
- + local installed=0
- + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
- + installed=1
- + [[ -z '' ]]
- + [[ 1 -eq 1 ]]
- + return 0
- + for pkg in "$@"
- + pkg=($(_mapPackage "$pkg"))
- ++ _mapPackage fbi
- ++ local pkg=fbi
- ++ case "$pkg" in
- ++ echo fbi
- + [[ fbi == \R\P ]]
- + [[ install == \r\e\m\o\v\e ]]
- + hasPackage fbi
- + local pkg=fbi
- + local req_ver=
- + local comp=
- + [[ -z '' ]]
- + comp=ge
- + local ver
- + local status
- ++ dpkg-query -W '--showformat=${Status} ${Version}' fbi
- + local 'out=install ok installed 2.10-3'
- + [[ 0 -eq 0 ]]
- + ver=2.10-3
- + status='install ok installed'
- + local installed=0
- + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
- + installed=1
- + [[ -z '' ]]
- + [[ 1 -eq 1 ]]
- + return 0
- + for pkg in "$@"
- + pkg=($(_mapPackage "$pkg"))
- ++ _mapPackage fbset
- ++ local pkg=fbset
- ++ case "$pkg" in
- ++ echo fbset
- + [[ fbset == \R\P ]]
- + [[ install == \r\e\m\o\v\e ]]
- + hasPackage fbset
- + local pkg=fbset
- + local req_ver=
- + local comp=
- + [[ -z '' ]]
- + comp=ge
- + local ver
- + local status
- ++ dpkg-query -W '--showformat=${Status} ${Version}' fbset
- + local 'out=install ok installed 2.1-30'
- + [[ 0 -eq 0 ]]
- + ver=2.1-30
- + status='install ok installed'
- + local installed=0
- + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
- + installed=1
- + [[ -z '' ]]
- + [[ 1 -eq 1 ]]
- + return 0
- + [[ 0 -eq 0 ]]
- + [[ 0 -eq 0 ]]
- + return
- + [[ -n '' ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/runcommand ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ depends == \i\n\s\t\a\l\l\_\b\i\n ]]
- + [[ depends == \i\n\s\t\a\l\l ]]
- + fnExists install_runcommand
- + declare -f install_runcommand
- + return 1
- + [[ depends == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 1 -eq 0 ]]
- + return 0
- + for mode in depends install_bin configure
- + rp_callModule runcommand install_bin
- + local md_id=runcommand
- + local mode=install_bin
- + shift 2
- + rp_hasModule runcommand
- + local id=runcommand
- + [[ -n 218 ]]
- + return 0
- + rp_isEnabled runcommand
- + local id=runcommand
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars runcommand
- ++ local id=runcommand
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath runcommand
- +++ local id=runcommand
- +++ echo /opt/retropie/supplementary/runcommand
- ++ echo 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
- local md_inst="/opt/retropie/supplementary/runcommand"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
- + eval 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
- local md_inst="/opt/retropie/supplementary/runcommand"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
- ++ local 'md_desc=The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local md_flags=nonet
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh
- ++ local md_repo_type=
- ++ local md_repo_url=
- ++ local md_repo_branch=
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/runcommand
- ++ local md_inst=/opt/retropie/supplementary/runcommand
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=install_bin_runcommand
- + fnExists install_bin_runcommand
- + declare -f install_bin_runcommand
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + action='Installing (binary)'
- + [[ -n Installing (binary) ]]
- + printHeading 'Installing (binary) '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
- + printMsgs heading 'Installing (binary) '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling (binary) '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Installing (binary) 'runcommand' : The 'runcommand' launch script - needed for launching the emulators from the frontend
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + fnExists install_bin_runcommand
- + declare -f install_bin_runcommand
- + return 0
- + mkdir -p /opt/retropie/supplementary/runcommand
- + install_bin_runcommand
- + cp /home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand/runcommand.sh /opt/retropie/supplementary/runcommand/
- + cp /home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand/joy2key.py /opt/retropie/supplementary/runcommand/
- + chmod a+x /opt/retropie/supplementary/runcommand/runcommand.sh
- + chmod a+x /opt/retropie/supplementary/runcommand/joy2key.py
- + python3 -m compileall /opt/retropie/supplementary/runcommand/joy2key.py
- Compiling '/opt/retropie/supplementary/runcommand/joy2key.py'...
- + [[ ! -f /opt/retropie/configs/all/runcommand.cfg ]]
- + [[ ! -f /opt/retropie/configs/all/runcommand-launch-dialog.cfg ]]
- + compareVersions 10 ge 10
- + dpkg --compare-versions 10 ge 10
- + return 0
- + rp_installModule mesa-drm _autoupdate_
- + local id=mesa-drm
- + local mode=_autoupdate_
- + [[ -z _autoupdate_ ]]
- + rp_callModule mesa-drm _autoupdate_
- + local md_id=mesa-drm
- + local mode=_autoupdate_
- + shift 2
- + rp_hasModule mesa-drm
- + local id=mesa-drm
- + [[ -n 205 ]]
- + return 0
- + rp_isEnabled mesa-drm
- + local id=mesa-drm
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + rp_isInstalled mesa-drm
- + local id=mesa-drm
- + local md_inst=/opt/retropie/supplementary/mesa-drm
- + [[ -d /opt/retropie/supplementary/mesa-drm ]]
- + return 0
- + rp_callModule mesa-drm _update_
- + local md_id=mesa-drm
- + local mode=_update_
- + shift 2
- + rp_hasModule mesa-drm
- + local id=mesa-drm
- + [[ -n 205 ]]
- + return 0
- + rp_isEnabled mesa-drm
- + local id=mesa-drm
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled mesa-drm
- + local id=mesa-drm
- + local md_inst=/opt/retropie/supplementary/mesa-drm
- + [[ -d /opt/retropie/supplementary/mesa-drm ]]
- + return 0
- + rp_loadPackageInfo mesa-drm pkg_origin
- + local id=mesa-drm
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath mesa-drm
- ++ local id=mesa-drm
- ++ echo /opt/retropie/supplementary/mesa-drm
- + local pkg_file=/opt/retropie/supplementary/mesa-drm/retropie.pkg
- + [[ -f /opt/retropie/supplementary/mesa-drm/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/mesa-drm/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary mesa-drm
- + local id=mesa-drm
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl mesa-drm
- ++ local id=mesa-drm
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
- ++ fnExists install_bin_mesa-drm
- ++ declare -f install_bin_mesa-drm
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + return 1
- + md_ret_require=/opt/retropie/supplementary/runcommand/runcommand.sh
- + [[ -n /opt/retropie/supplementary/runcommand/runcommand.sh ]]
- + for file in "${md_ret_require[@]}"
- + [[ ! -e /opt/retropie/supplementary/runcommand/runcommand.sh ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/runcommand ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ install_bin == \i\n\s\t\a\l\l\_\b\i\n ]]
- + rp_setPackageInfo runcommand binary
- + local id=runcommand
- ++ rp_getInstallPath runcommand
- ++ local id=runcommand
- ++ echo /opt/retropie/supplementary/runcommand
- + local install_path=/opt/retropie/supplementary/runcommand
- + [[ ! -d /opt/retropie/supplementary/runcommand ]]
- + local pkg=/opt/retropie/supplementary/runcommand/retropie.pkg
- + local origin=binary
- + rp_clearCachedInfo runcommand
- + local id=runcommand
- + __mod_info[$id/pkg_info]=0
- + __mod_info[$id/has_binary]=
- + __mod_info[$id/has_newer]=
- + iniConfig = '"' /opt/retropie/supplementary/runcommand/retropie.pkg
- + __ini_cfg_delim==
- + __ini_cfg_quote='"'
- + __ini_cfg_file=/opt/retropie/supplementary/runcommand/retropie.pkg
- + iniSet pkg_origin binary
- + iniProcess set pkg_origin binary ''
- + local cmd=set
- + local key=pkg_origin
- + local value=binary
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/runcommand/retropie.pkg
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/runcommand/retropie.pkg ]]
- + [[ -z pkg_origin ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*pkg_origin[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/runcommand/retropie.pkg ]]
- ++ egrep -i '^[[:space:]#]*pkg_origin[[:space:]]*=.*$' /opt/retropie/supplementary/runcommand/retropie.pkg
- ++ tail -1
- + match='pkg_origin="binary"'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=pkg_origin="binary"'
- + [[ -z pkg_origin="binary" ]]
- ++ sedQuote 'pkg_origin="binary"'
- ++ local 'string=pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ echo 'pkg_origin="binary"'
- ++ sedQuote 'pkg_origin="binary"'
- ++ local 'string=pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ echo 'pkg_origin="binary"'
- + sed -i --follow-symlinks 's|pkg_origin="binary"|pkg_origin="binary"|g' /opt/retropie/supplementary/runcommand/retropie.pkg
- + [[ /opt/retropie/supplementary/runcommand/retropie.pkg =~ retroarch\.cfg$ ]]
- + return 0
- + local pkg_date
- + local pkg_repo_type
- + local pkg_repo_url
- + local pkg_repo_branch
- + local pkg_repo_commit
- + local pkg_repo_date
- + local pkg_repo_extra
- + [[ binary == \b\i\n\a\r\y ]]
- ++ rp_getBinaryDate runcommand
- ++ local id=runcommand
- +++ rp_getBinaryUrl runcommand
- +++ local id=runcommand
- +++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/runcommand.tar.gz
- +++ fnExists install_bin_runcommand
- +++ declare -f install_bin_runcommand
- +++ return 0
- +++ fnExists __binary_url_runcommand
- +++ declare -f __binary_url_runcommand
- +++ return 1
- +++ url=notest
- +++ echo notest
- ++ local url=notest
- ++ [[ -z notest ]]
- ++ [[ notest == \n\o\t\e\s\t ]]
- ++ return 1
- + pkg_date=
- + iniSet pkg_date ''
- + iniProcess set pkg_date '' ''
- + local cmd=set
- + local key=pkg_date
- + local value=
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/runcommand/retropie.pkg
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/runcommand/retropie.pkg ]]
- + [[ -z pkg_date ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*pkg_date[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/runcommand/retropie.pkg ]]
- ++ egrep -i '^[[:space:]#]*pkg_date[[:space:]]*=.*$' /opt/retropie/supplementary/runcommand/retropie.pkg
- ++ tail -1
- + match='pkg_date=""'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=pkg_date=""'
- + [[ -z pkg_date="" ]]
- ++ sedQuote 'pkg_date=""'
- ++ local 'string=pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ echo 'pkg_date=""'
- ++ sedQuote 'pkg_date=""'
- ++ local 'string=pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ echo 'pkg_date=""'
- + sed -i --follow-symlinks 's|pkg_date=""|pkg_date=""|g' /opt/retropie/supplementary/runcommand/retropie.pkg
- + [[ /opt/retropie/supplementary/runcommand/retropie.pkg =~ retroarch\.cfg$ ]]
- + return 0
- + [[ install_bin == \i\n\s\t\a\l\l ]]
- + fnExists install_runcommand
- + declare -f install_runcommand
- + return 1
- + [[ install_bin == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 1 -eq 0 ]]
- + return 0
- + for mode in depends install_bin configure
- + rp_callModule runcommand configure
- + local md_id=runcommand
- + local mode=configure
- + shift 2
- + rp_hasModule runcommand
- + local id=runcommand
- + [[ -n 218 ]]
- + return 0
- + rp_isEnabled runcommand
- + local id=runcommand
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars runcommand
- ++ local id=runcommand
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath runcommand
- +++ local id=runcommand
- +++ echo /opt/retropie/supplementary/runcommand
- ++ echo 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
- local md_inst="/opt/retropie/supplementary/runcommand"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
- + eval 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
- local md_help=""
- local md_type="supplementary"
- local md_flags="nonet"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
- local md_inst="/opt/retropie/supplementary/runcommand"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
- ++ local 'md_desc=The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local md_flags=nonet
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh
- ++ local md_repo_type=
- ++ local md_repo_url=
- ++ local md_repo_branch=
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/runcommand
- ++ local md_inst=/opt/retropie/supplementary/runcommand
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=configure_runcommand
- + fnExists configure_runcommand
- + declare -f configure_runcommand
- + return 1
- + [[ configure == \i\n\s\t\a\l\l ]]
- + [[ configure != \i\n\s\t\a\l\l\_\b\i\n ]]
- + [[ configure != \r\e\m\o\v\e ]]
- + return 0
- + return 0
- + return 0
- + return 0
- + for id in ${__mod_id[@]}
- + rp_isInstalled samba
- + local id=samba
- + local md_inst=/opt/retropie/supplementary/samba
- + [[ -d /opt/retropie/supplementary/samba ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled scraper
- + local id=scraper
- + local md_inst=/opt/retropie/supplementary/scraper
- + [[ -d /opt/retropie/supplementary/scraper ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled sdl1
- + local id=sdl1
- + local md_inst=/opt/retropie/supplementary/sdl1
- + [[ -d /opt/retropie/supplementary/sdl1 ]]
- + return 0
- + [[ depends != \d\e\p\e\n\d\s ]]
- + for id in ${__mod_id[@]}
- + rp_isInstalled sdl2
- + local id=sdl2
- + local md_inst=/opt/retropie/supplementary/sdl2
- + [[ -d /opt/retropie/supplementary/sdl2 ]]
- + return 0
- + [[ depends != \d\e\p\e\n\d\s ]]
- + for id in ${__mod_id[@]}
- + rp_isInstalled sixaxis
- + local id=sixaxis
- + local md_inst=/opt/retropie/supplementary/sixaxis
- + [[ -d /opt/retropie/supplementary/sixaxis ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled skyscraper
- + local id=skyscraper
- + local md_inst=/opt/retropie/supplementary/skyscraper
- + [[ -d /opt/retropie/supplementary/skyscraper ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled snesdev
- + local id=snesdev
- + local md_inst=/opt/retropie/supplementary/snesdev
- + [[ -d /opt/retropie/supplementary/snesdev ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled splashscreen
- + local id=splashscreen
- + local md_inst=/opt/retropie/supplementary/splashscreen
- + [[ -d /opt/retropie/supplementary/splashscreen ]]
- + return 0
- + [[ main != \d\e\p\e\n\d\s ]]
- + rp_installModule splashscreen _update_
- + local id=splashscreen
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule splashscreen _update_
- + local md_id=splashscreen
- + local mode=_update_
- + shift 2
- + rp_hasModule splashscreen
- + local id=splashscreen
- + [[ -n 226 ]]
- + return 0
- + rp_isEnabled splashscreen
- + local id=splashscreen
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled splashscreen
- + local id=splashscreen
- + local md_inst=/opt/retropie/supplementary/splashscreen
- + [[ -d /opt/retropie/supplementary/splashscreen ]]
- + return 0
- + rp_loadPackageInfo splashscreen pkg_origin
- + local id=splashscreen
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath splashscreen
- ++ local id=splashscreen
- ++ echo /opt/retropie/supplementary/splashscreen
- + local pkg_file=/opt/retropie/supplementary/splashscreen/retropie.pkg
- + [[ -f /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag 'noinstclean !all rpi !osmc !xbian !aarch64' nonet
- + local 'string=noinstclean !all rpi !osmc !xbian !aarch64'
- + local flag=nonet
- + [[ -z noinstclean !all rpi !osmc !xbian !aarch64 ]]
- + [[ -z nonet ]]
- + [[ noinstclean !all rpi !osmc !xbian !aarch64 =~ (^| )nonet($| ) ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary splashscreen
- + local id=splashscreen
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl splashscreen
- ++ local id=splashscreen
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/splashscreen.tar.gz
- ++ fnExists install_bin_splashscreen
- ++ declare -f install_bin_splashscreen
- ++ return 0
- ++ fnExists __binary_url_splashscreen
- ++ declare -f __binary_url_splashscreen
- ++ return 1
- ++ url=notest
- ++ echo notest
- + local url=notest
- + [[ notest == \n\o\t\e\s\t ]]
- + return 0
- + local ret=0
- + [[ 0 -eq 0 ]]
- + has_binary=1
- + [[ 0 -eq 2 ]]
- + [[ 1 -eq 0 ]]
- + local do_update=0
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + printMsgs heading 'Checking for updates for splashscreen'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nChecking for updates for splashscreen\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Checking for updates for splashscreen
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + rp_hasNewerModule splashscreen binary
- + local id=splashscreen
- + local type=binary
- + [[ -n '' ]]
- + rp_loadPackageInfo splashscreen
- + local id=splashscreen
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z '' ]]
- + keys=(pkg_origin pkg_date pkg_repo_type pkg_repo_url pkg_repo_branch pkg_repo_commit pkg_repo_date pkg_repo_extra)
- + local load=0
- ++ rp_getInstallPath splashscreen
- ++ local id=splashscreen
- ++ echo /opt/retropie/supplementary/splashscreen
- + local pkg_file=/opt/retropie/supplementary/splashscreen/retropie.pkg
- + [[ -f /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_date == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_date="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_type == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_type="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_url == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_url="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_branch == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_branch="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_commit == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_commit="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_date == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_date="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_extra == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_extra="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + data=
- + [[ -n '' ]]
- + [[ 1 -eq 1 ]]
- + __mod_info[$id/pkg_info]=1
- + local pkg_origin=binary
- + local pkg_date=
- + local pkg_repo_date=
- + local pkg_repo_commit=
- + local ret=1
- + case "$type" in
- + ret=
- + [[ -n '' ]]
- + [[ -z '' ]]
- + ret=2
- + __mod_info[$id/has_newer]=2
- + return 2
- + [[ 2 -eq 0 ]]
- + [[ 2 == 2 ]]
- + do_update=1
- + [[ 0 -eq 3 ]]
- + [[ 1 -eq 1 ]]
- + printMsgs console 'Update is available - updating ...'
- + local type=console
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ console == \d\i\a\l\o\g ]]
- + [[ console == \c\o\n\s\o\l\e ]]
- + echo -e 'Update is available - updating ...'
- Update is available - updating ...
- + [[ console == \h\e\a\d\i\n\g ]]
- + return 0
- + [[ 1 -eq 1 ]]
- + [[ binary != \s\o\u\r\c\e ]]
- + [[ 1 -eq 1 ]]
- + rp_callModule splashscreen _binary_
- + local md_id=splashscreen
- + local mode=_binary_
- + shift 2
- + rp_hasModule splashscreen
- + local id=splashscreen
- + [[ -n 226 ]]
- + return 0
- + rp_isEnabled splashscreen
- + local id=splashscreen
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + for mode in depends install_bin configure
- + rp_callModule splashscreen depends
- + local md_id=splashscreen
- + local mode=depends
- + shift 2
- + rp_hasModule splashscreen
- + local id=splashscreen
- + [[ -n 226 ]]
- + return 0
- + rp_isEnabled splashscreen
- + local id=splashscreen
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars splashscreen
- ++ local id=splashscreen
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath splashscreen
- +++ local id=splashscreen
- +++ echo /opt/retropie/supplementary/splashscreen
- ++ echo 'local md_desc="Configure Splashscreen"
- local md_help=""
- local md_type="supplementary"
- local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
- local md_repo_type="git"
- local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
- local md_repo_branch="master"
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
- local md_inst="/opt/retropie/supplementary/splashscreen"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
- + eval 'local md_desc="Configure Splashscreen"
- local md_help=""
- local md_type="supplementary"
- local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
- local md_repo_type="git"
- local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
- local md_repo_branch="master"
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
- local md_inst="/opt/retropie/supplementary/splashscreen"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
- ++ local 'md_desc=Configure Splashscreen'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local 'md_flags=noinstclean !all rpi !osmc !xbian !aarch64'
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh
- ++ local md_repo_type=git
- ++ local md_repo_url=https://github.com/RetroPie/retropie-splashscreens.git
- ++ local md_repo_branch=master
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/splashscreen
- ++ local md_inst=/opt/retropie/supplementary/splashscreen
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=depends_splashscreen
- + fnExists depends_splashscreen
- + declare -f depends_splashscreen
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + [[ '' == \r\e\m\o\v\e ]]
- + action=Installing
- + action+=' dependencies for'
- + [[ -n Installing dependencies for ]]
- + printHeading 'Installing dependencies for '\''splashscreen'\'' : Configure Splashscreen'
- + printMsgs heading 'Installing dependencies for '\''splashscreen'\'' : Configure Splashscreen'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling dependencies for '\''splashscreen'\'' : Configure Splashscreen\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Installing dependencies for 'splashscreen' : Configure Splashscreen
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + depends_splashscreen
- + params=(insserv)
- + local params
- + isPlatform 32bit
- + local flag=32bit
- + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' 32bit
- + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
- + local flag=32bit
- + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
- + [[ -z 32bit ]]
- + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )32bit($| ) ]]
- + return 0
- + return 0
- + params+=(omxplayer)
- + getDepends insserv omxplayer
- + own_pkgs=()
- + local own_pkgs
- + apt_pkgs=()
- + local apt_pkgs
- + all_pkgs=()
- + local all_pkgs
- + local pkg
- + for pkg in "$@"
- + pkg=($(_mapPackage "$pkg"))
- ++ _mapPackage insserv
- ++ local pkg=insserv
- ++ case "$pkg" in
- ++ echo insserv
- + [[ insserv == \R\P ]]
- + [[ install == \r\e\m\o\v\e ]]
- + hasPackage insserv
- + local pkg=insserv
- + local req_ver=
- + local comp=
- + [[ -z '' ]]
- + comp=ge
- + local ver
- + local status
- ++ dpkg-query -W '--showformat=${Status} ${Version}' insserv
- + local 'out=install ok installed 1.18.0-2'
- + [[ 0 -eq 0 ]]
- + ver=1.18.0-2
- + status='install ok installed'
- + local installed=0
- + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
- + installed=1
- + [[ -z '' ]]
- + [[ 1 -eq 1 ]]
- + return 0
- + for pkg in "$@"
- + pkg=($(_mapPackage "$pkg"))
- ++ _mapPackage omxplayer
- ++ local pkg=omxplayer
- ++ case "$pkg" in
- ++ echo omxplayer
- + [[ omxplayer == \R\P ]]
- + [[ install == \r\e\m\o\v\e ]]
- + hasPackage omxplayer
- + local pkg=omxplayer
- + local req_ver=
- + local comp=
- + [[ -z '' ]]
- + comp=ge
- + local ver
- + local status
- ++ dpkg-query -W '--showformat=${Status} ${Version}' omxplayer
- + local 'out=install ok installed 20190723+gitf543a0d-1'
- + [[ 0 -eq 0 ]]
- + ver=20190723+gitf543a0d-1
- + status='install ok installed'
- + local installed=0
- + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
- + installed=1
- + [[ -z '' ]]
- + [[ 1 -eq 1 ]]
- + return 0
- + [[ 0 -eq 0 ]]
- + [[ 0 -eq 0 ]]
- + return
- + [[ -n '' ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/splashscreen ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ depends == \i\n\s\t\a\l\l\_\b\i\n ]]
- + [[ depends == \i\n\s\t\a\l\l ]]
- + fnExists install_splashscreen
- + declare -f install_splashscreen
- + return 1
- + [[ depends == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 1 -eq 0 ]]
- + return 0
- + for mode in depends install_bin configure
- + rp_callModule splashscreen install_bin
- + local md_id=splashscreen
- + local mode=install_bin
- + shift 2
- + rp_hasModule splashscreen
- + local id=splashscreen
- + [[ -n 226 ]]
- + return 0
- + rp_isEnabled splashscreen
- + local id=splashscreen
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars splashscreen
- ++ local id=splashscreen
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath splashscreen
- +++ local id=splashscreen
- +++ echo /opt/retropie/supplementary/splashscreen
- ++ echo 'local md_desc="Configure Splashscreen"
- local md_help=""
- local md_type="supplementary"
- local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
- local md_repo_type="git"
- local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
- local md_repo_branch="master"
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
- local md_inst="/opt/retropie/supplementary/splashscreen"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
- + eval 'local md_desc="Configure Splashscreen"
- local md_help=""
- local md_type="supplementary"
- local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
- local md_repo_type="git"
- local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
- local md_repo_branch="master"
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
- local md_inst="/opt/retropie/supplementary/splashscreen"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
- ++ local 'md_desc=Configure Splashscreen'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local 'md_flags=noinstclean !all rpi !osmc !xbian !aarch64'
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh
- ++ local md_repo_type=git
- ++ local md_repo_url=https://github.com/RetroPie/retropie-splashscreens.git
- ++ local md_repo_branch=master
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/splashscreen
- ++ local md_inst=/opt/retropie/supplementary/splashscreen
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=install_bin_splashscreen
- + fnExists install_bin_splashscreen
- + declare -f install_bin_splashscreen
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + action='Installing (binary)'
- + [[ -n Installing (binary) ]]
- + printHeading 'Installing (binary) '\''splashscreen'\'' : Configure Splashscreen'
- + printMsgs heading 'Installing (binary) '\''splashscreen'\'' : Configure Splashscreen'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling (binary) '\''splashscreen'\'' : Configure Splashscreen\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Installing (binary) 'splashscreen' : Configure Splashscreen
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + fnExists install_bin_splashscreen
- + declare -f install_bin_splashscreen
- + return 0
- + mkdir -p /opt/retropie/supplementary/splashscreen
- + install_bin_splashscreen
- + cat
- + rp_installModule omxiv _autoupdate_
- + local id=omxiv
- + local mode=_autoupdate_
- + [[ -z _autoupdate_ ]]
- + rp_callModule omxiv _autoupdate_
- + local md_id=omxiv
- + local mode=_autoupdate_
- + shift 2
- + rp_hasModule omxiv
- + local id=omxiv
- + [[ -n 209 ]]
- + return 0
- + rp_isEnabled omxiv
- + local id=omxiv
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + rp_isInstalled omxiv
- + local id=omxiv
- + local md_inst=/opt/retropie/supplementary/omxiv
- + [[ -d /opt/retropie/supplementary/omxiv ]]
- + return 0
- + rp_callModule omxiv _update_
- + local md_id=omxiv
- + local mode=_update_
- + shift 2
- + rp_hasModule omxiv
- + local id=omxiv
- + [[ -n 209 ]]
- + return 0
- + rp_isEnabled omxiv
- + local id=omxiv
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled omxiv
- + local id=omxiv
- + local md_inst=/opt/retropie/supplementary/omxiv
- + [[ -d /opt/retropie/supplementary/omxiv ]]
- + return 0
- + rp_loadPackageInfo omxiv pkg_origin
- + local id=omxiv
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath omxiv
- ++ local id=omxiv
- ++ echo /opt/retropie/supplementary/omxiv
- + local pkg_file=/opt/retropie/supplementary/omxiv/retropie.pkg
- + [[ -f /opt/retropie/supplementary/omxiv/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/omxiv/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '!all rpi' nonet
- + local 'string=!all rpi'
- + local flag=nonet
- + [[ -z !all rpi ]]
- + [[ -z nonet ]]
- + [[ !all rpi =~ (^| )nonet($| ) ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary omxiv
- + local id=omxiv
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl omxiv
- ++ local id=omxiv
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
- ++ fnExists install_bin_omxiv
- ++ declare -f install_bin_omxiv
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + return 1
- + gitPullOrClone /opt/retropie/supplementary/splashscreen
- + local dir=/opt/retropie/supplementary/splashscreen
- + [[ -z /opt/retropie/supplementary/splashscreen ]]
- + local repo=
- + local branch=
- + local commit=
- + local depth=
- + [[ -z '' ]]
- + [[ -n https://github.com/RetroPie/retropie-splashscreens.git ]]
- ++ rp_resolveRepoParam https://github.com/RetroPie/retropie-splashscreens.git
- ++ local param=https://github.com/RetroPie/retropie-splashscreens.git
- ++ [[ https://github.com/RetroPie/retropie-splashscreens.git == :* ]]
- ++ echo https://github.com/RetroPie/retropie-splashscreens.git
- + repo=https://github.com/RetroPie/retropie-splashscreens.git
- ++ rp_resolveRepoParam master
- ++ local param=master
- ++ [[ master == :* ]]
- ++ echo master
- + branch=master
- ++ rp_resolveRepoParam ''
- ++ local param=
- ++ [[ '' == :* ]]
- ++ echo ''
- + commit=
- + [[ -z https://github.com/RetroPie/retropie-splashscreens.git ]]
- + [[ -z master ]]
- + [[ -z '' ]]
- + [[ '' -ne 1 ]]
- + [[ -z '' ]]
- + depth=1
- + [[ -z /opt/retropie/supplementary/splashscreen ]]
- + [[ -d /opt/retropie/supplementary/splashscreen/.git ]]
- + pushd /opt/retropie/supplementary/splashscreen
- + runCmd git checkout master
- + local ret
- + git checkout master
- Already on 'master'
- Your branch is up to date with 'origin/master'.
- + ret=0
- + [[ 0 -ne 0 ]]
- + return 0
- + runCmd git pull --ff-only
- + local ret
- + git pull --ff-only
- Already up to date.
- + ret=0
- + [[ 0 -ne 0 ]]
- + return 0
- + runCmd git submodule update --init --recursive
- + local ret
- + git submodule update --init --recursive
- + ret=0
- + [[ 0 -ne 0 ]]
- + return 0
- + popd
- + [[ -n '' ]]
- ++ runCmd git -C /opt/retropie/supplementary/splashscreen rev-parse --abbrev-ref HEAD
- ++ local ret
- ++ git -C /opt/retropie/supplementary/splashscreen rev-parse --abbrev-ref HEAD
- ++ ret=0
- ++ [[ 0 -ne 0 ]]
- ++ return 0
- + branch=master
- ++ runCmd git -C /opt/retropie/supplementary/splashscreen rev-parse HEAD
- ++ local ret
- ++ git -C /opt/retropie/supplementary/splashscreen rev-parse HEAD
- ++ ret=0
- ++ [[ 0 -ne 0 ]]
- ++ return 0
- + commit=b8645a8197d977a0492fc56341dc7248f7d7bb10
- + printMsgs console 'HEAD is now in branch '\''master'\'' at commit '\''b8645a8197d977a0492fc56341dc7248f7d7bb10'\'''
- + local type=console
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ console == \d\i\a\l\o\g ]]
- + [[ console == \c\o\n\s\o\l\e ]]
- + echo -e 'HEAD is now in branch '\''master'\'' at commit '\''b8645a8197d977a0492fc56341dc7248f7d7bb10'\'''
- HEAD is now in branch 'master' at commit 'b8645a8197d977a0492fc56341dc7248f7d7bb10'
- + [[ console == \h\e\a\d\i\n\g ]]
- + return 0
- + cp /home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen/asplashscreen.sh /opt/retropie/supplementary/splashscreen
- + iniConfig = '"' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
- + __ini_cfg_delim==
- + __ini_cfg_quote='"'
- + __ini_cfg_file=/opt/retropie/supplementary/splashscreen/asplashscreen.sh
- + iniSet ROOTDIR /opt/retropie
- + iniProcess set ROOTDIR /opt/retropie ''
- + local cmd=set
- + local key=ROOTDIR
- + local value=/opt/retropie
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/splashscreen/asplashscreen.sh
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
- + [[ -z ROOTDIR ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*ROOTDIR[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
- ++ egrep -i '^[[:space:]#]*ROOTDIR[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
- ++ tail -1
- + match='ROOTDIR=""'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=ROOTDIR="/opt/retropie"'
- + [[ -z ROOTDIR="" ]]
- ++ sedQuote 'ROOTDIR=""'
- ++ local 'string=ROOTDIR=""'
- ++ string='ROOTDIR=""'
- ++ string='ROOTDIR=""'
- ++ string='ROOTDIR=""'
- ++ string='ROOTDIR=""'
- ++ echo 'ROOTDIR=""'
- ++ sedQuote 'ROOTDIR="/opt/retropie"'
- ++ local 'string=ROOTDIR="/opt/retropie"'
- ++ string='ROOTDIR="/opt/retropie"'
- ++ string='ROOTDIR="/opt/retropie"'
- ++ string='ROOTDIR="/opt/retropie"'
- ++ string='ROOTDIR="/opt/retropie"'
- ++ echo 'ROOTDIR="/opt/retropie"'
- + sed -i --follow-symlinks 's|ROOTDIR=""|ROOTDIR="/opt/retropie"|g' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
- + [[ /opt/retropie/supplementary/splashscreen/asplashscreen.sh =~ retroarch\.cfg$ ]]
- + return 0
- + iniSet DATADIR /home/pi/RetroPie
- + iniProcess set DATADIR /home/pi/RetroPie ''
- + local cmd=set
- + local key=DATADIR
- + local value=/home/pi/RetroPie
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/splashscreen/asplashscreen.sh
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
- + [[ -z DATADIR ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*DATADIR[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
- ++ egrep -i '^[[:space:]#]*DATADIR[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
- ++ tail -1
- + match='DATADIR=""'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=DATADIR="/home/pi/RetroPie"'
- + [[ -z DATADIR="" ]]
- ++ sedQuote 'DATADIR=""'
- ++ local 'string=DATADIR=""'
- ++ string='DATADIR=""'
- ++ string='DATADIR=""'
- ++ string='DATADIR=""'
- ++ string='DATADIR=""'
- ++ echo 'DATADIR=""'
- ++ sedQuote 'DATADIR="/home/pi/RetroPie"'
- ++ local 'string=DATADIR="/home/pi/RetroPie"'
- ++ string='DATADIR="/home/pi/RetroPie"'
- ++ string='DATADIR="/home/pi/RetroPie"'
- ++ string='DATADIR="/home/pi/RetroPie"'
- ++ string='DATADIR="/home/pi/RetroPie"'
- ++ echo 'DATADIR="/home/pi/RetroPie"'
- + sed -i --follow-symlinks 's|DATADIR=""|DATADIR="/home/pi/RetroPie"|g' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
- + [[ /opt/retropie/supplementary/splashscreen/asplashscreen.sh =~ retroarch\.cfg$ ]]
- + return 0
- ++ _image_exts_splashscreen
- ++ echo '\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp'
- + iniSet REGEX_IMAGE '\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp'
- + iniProcess set REGEX_IMAGE '\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp' ''
- + local cmd=set
- + local key=REGEX_IMAGE
- + local 'value=\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp'
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/splashscreen/asplashscreen.sh
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
- + [[ -z REGEX_IMAGE ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*REGEX_IMAGE[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
- ++ egrep -i '^[[:space:]#]*REGEX_IMAGE[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
- ++ tail -1
- + match='REGEX_IMAGE=""'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=REGEX_IMAGE="\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp"'
- + [[ -z REGEX_IMAGE="" ]]
- ++ sedQuote 'REGEX_IMAGE=""'
- ++ local 'string=REGEX_IMAGE=""'
- ++ string='REGEX_IMAGE=""'
- ++ string='REGEX_IMAGE=""'
- ++ string='REGEX_IMAGE=""'
- ++ string='REGEX_IMAGE=""'
- ++ echo 'REGEX_IMAGE=""'
- ++ sedQuote 'REGEX_IMAGE="\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp"'
- ++ local 'string=REGEX_IMAGE="\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp"'
- ++ string='REGEX_IMAGE="\\.bmp\\|\\.jpg\\|\\.jpeg\\|\\.gif\\|\\.png\\|\\.ppm\\|\\.tiff\\|\\.webp"'
- ++ string='REGEX_IMAGE="\\.bmp\\\|\\.jpg\\\|\\.jpeg\\\|\\.gif\\\|\\.png\\\|\\.ppm\\\|\\.tiff\\\|\\.webp"'
- ++ string='REGEX_IMAGE="\\.bmp\\\|\\.jpg\\\|\\.jpeg\\\|\\.gif\\\|\\.png\\\|\\.ppm\\\|\\.tiff\\\|\\.webp"'
- ++ string='REGEX_IMAGE="\\.bmp\\\|\\.jpg\\\|\\.jpeg\\\|\\.gif\\\|\\.png\\\|\\.ppm\\\|\\.tiff\\\|\\.webp"'
- ++ echo 'REGEX_IMAGE="\\.bmp\\\|\\.jpg\\\|\\.jpeg\\\|\\.gif\\\|\\.png\\\|\\.ppm\\\|\\.tiff\\\|\\.webp"'
- + sed -i --follow-symlinks 's|REGEX_IMAGE=""|REGEX_IMAGE="\\.bmp\\\|\\.jpg\\\|\\.jpeg\\\|\\.gif\\\|\\.png\\\|\\.ppm\\\|\\.tiff\\\|\\.webp"|g' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
- + [[ /opt/retropie/supplementary/splashscreen/asplashscreen.sh =~ retroarch\.cfg$ ]]
- + return 0
- ++ _video_exts_splashscreen
- ++ echo '\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac'
- + iniSet REGEX_VIDEO '\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac'
- + iniProcess set REGEX_VIDEO '\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac' ''
- + local cmd=set
- + local key=REGEX_VIDEO
- + local 'value=\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac'
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/splashscreen/asplashscreen.sh
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
- + [[ -z REGEX_VIDEO ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*REGEX_VIDEO[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
- ++ egrep -i '^[[:space:]#]*REGEX_VIDEO[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
- ++ tail -1
- + match='REGEX_VIDEO=""'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=REGEX_VIDEO="\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac"'
- + [[ -z REGEX_VIDEO="" ]]
- ++ sedQuote 'REGEX_VIDEO=""'
- ++ local 'string=REGEX_VIDEO=""'
- ++ string='REGEX_VIDEO=""'
- ++ string='REGEX_VIDEO=""'
- ++ string='REGEX_VIDEO=""'
- ++ string='REGEX_VIDEO=""'
- ++ echo 'REGEX_VIDEO=""'
- ++ sedQuote 'REGEX_VIDEO="\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac"'
- ++ local 'string=REGEX_VIDEO="\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac"'
- ++ string='REGEX_VIDEO="\\.avi\\|\\.mov\\|\\.mp4\\|\\.mkv\\|\\.3gp\\|\\.mpg\\|\\.mp3\\|\\.wav\\|\\.m4a\\|\\.aac\\|\\.ogg\\|\\.flac"'
- ++ string='REGEX_VIDEO="\\.avi\\\|\\.mov\\\|\\.mp4\\\|\\.mkv\\\|\\.3gp\\\|\\.mpg\\\|\\.mp3\\\|\\.wav\\\|\\.m4a\\\|\\.aac\\\|\\.ogg\\\|\\.flac"'
- ++ string='REGEX_VIDEO="\\.avi\\\|\\.mov\\\|\\.mp4\\\|\\.mkv\\\|\\.3gp\\\|\\.mpg\\\|\\.mp3\\\|\\.wav\\\|\\.m4a\\\|\\.aac\\\|\\.ogg\\\|\\.flac"'
- ++ string='REGEX_VIDEO="\\.avi\\\|\\.mov\\\|\\.mp4\\\|\\.mkv\\\|\\.3gp\\\|\\.mpg\\\|\\.mp3\\\|\\.wav\\\|\\.m4a\\\|\\.aac\\\|\\.ogg\\\|\\.flac"'
- ++ echo 'REGEX_VIDEO="\\.avi\\\|\\.mov\\\|\\.mp4\\\|\\.mkv\\\|\\.3gp\\\|\\.mpg\\\|\\.mp3\\\|\\.wav\\\|\\.m4a\\\|\\.aac\\\|\\.ogg\\\|\\.flac"'
- + sed -i --follow-symlinks 's|REGEX_VIDEO=""|REGEX_VIDEO="\\.avi\\\|\\.mov\\\|\\.mp4\\\|\\.mkv\\\|\\.3gp\\\|\\.mpg\\\|\\.mp3\\\|\\.wav\\\|\\.m4a\\\|\\.aac\\\|\\.ogg\\\|\\.flac"|g' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
- + [[ /opt/retropie/supplementary/splashscreen/asplashscreen.sh =~ retroarch\.cfg$ ]]
- + return 0
- + [[ ! -f /opt/retropie/configs/all/splashscreen.cfg ]]
- + chown pi:pi /opt/retropie/configs/all/splashscreen.cfg
- + mkUserDir /home/pi/RetroPie/splashscreens
- + mkdir -p /home/pi/RetroPie/splashscreens
- + chown pi:pi /home/pi/RetroPie/splashscreens
- + echo 'Place your own splashscreens in here.'
- + chown pi:pi /home/pi/RetroPie/splashscreens/README.txt
- + [[ -n '' ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/splashscreen ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ install_bin == \i\n\s\t\a\l\l\_\b\i\n ]]
- + rp_setPackageInfo splashscreen binary
- + local id=splashscreen
- ++ rp_getInstallPath splashscreen
- ++ local id=splashscreen
- ++ echo /opt/retropie/supplementary/splashscreen
- + local install_path=/opt/retropie/supplementary/splashscreen
- + [[ ! -d /opt/retropie/supplementary/splashscreen ]]
- + local pkg=/opt/retropie/supplementary/splashscreen/retropie.pkg
- + local origin=binary
- + rp_clearCachedInfo splashscreen
- + local id=splashscreen
- + __mod_info[$id/pkg_info]=0
- + __mod_info[$id/has_binary]=
- + __mod_info[$id/has_newer]=
- + iniConfig = '"' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + __ini_cfg_delim==
- + __ini_cfg_quote='"'
- + __ini_cfg_file=/opt/retropie/supplementary/splashscreen/retropie.pkg
- + iniSet pkg_origin binary
- + iniProcess set pkg_origin binary ''
- + local cmd=set
- + local key=pkg_origin
- + local value=binary
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/splashscreen/retropie.pkg
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
- + [[ -z pkg_origin ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*pkg_origin[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
- ++ egrep -i '^[[:space:]#]*pkg_origin[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/retropie.pkg
- ++ tail -1
- + match='pkg_origin="binary"'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=pkg_origin="binary"'
- + [[ -z pkg_origin="binary" ]]
- ++ sedQuote 'pkg_origin="binary"'
- ++ local 'string=pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ echo 'pkg_origin="binary"'
- ++ sedQuote 'pkg_origin="binary"'
- ++ local 'string=pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ echo 'pkg_origin="binary"'
- + sed -i --follow-symlinks 's|pkg_origin="binary"|pkg_origin="binary"|g' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + [[ /opt/retropie/supplementary/splashscreen/retropie.pkg =~ retroarch\.cfg$ ]]
- + return 0
- + local pkg_date
- + local pkg_repo_type
- + local pkg_repo_url
- + local pkg_repo_branch
- + local pkg_repo_commit
- + local pkg_repo_date
- + local pkg_repo_extra
- + [[ binary == \b\i\n\a\r\y ]]
- ++ rp_getBinaryDate splashscreen
- ++ local id=splashscreen
- +++ rp_getBinaryUrl splashscreen
- +++ local id=splashscreen
- +++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/splashscreen.tar.gz
- +++ fnExists install_bin_splashscreen
- +++ declare -f install_bin_splashscreen
- +++ return 0
- +++ fnExists __binary_url_splashscreen
- +++ declare -f __binary_url_splashscreen
- +++ return 1
- +++ url=notest
- +++ echo notest
- ++ local url=notest
- ++ [[ -z notest ]]
- ++ [[ notest == \n\o\t\e\s\t ]]
- ++ return 1
- + pkg_date=
- + iniSet pkg_date ''
- + iniProcess set pkg_date '' ''
- + local cmd=set
- + local key=pkg_date
- + local value=
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/splashscreen/retropie.pkg
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
- + [[ -z pkg_date ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*pkg_date[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
- ++ egrep -i '^[[:space:]#]*pkg_date[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/retropie.pkg
- ++ tail -1
- + match='pkg_date=""'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=pkg_date=""'
- + [[ -z pkg_date="" ]]
- ++ sedQuote 'pkg_date=""'
- ++ local 'string=pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ echo 'pkg_date=""'
- ++ sedQuote 'pkg_date=""'
- ++ local 'string=pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ echo 'pkg_date=""'
- + sed -i --follow-symlinks 's|pkg_date=""|pkg_date=""|g' /opt/retropie/supplementary/splashscreen/retropie.pkg
- + [[ /opt/retropie/supplementary/splashscreen/retropie.pkg =~ retroarch\.cfg$ ]]
- + return 0
- + [[ install_bin == \i\n\s\t\a\l\l ]]
- + fnExists install_splashscreen
- + declare -f install_splashscreen
- + return 1
- + [[ install_bin == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 1 -eq 0 ]]
- + return 0
- + for mode in depends install_bin configure
- + rp_callModule splashscreen configure
- + local md_id=splashscreen
- + local mode=configure
- + shift 2
- + rp_hasModule splashscreen
- + local id=splashscreen
- + [[ -n 226 ]]
- + return 0
- + rp_isEnabled splashscreen
- + local id=splashscreen
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars splashscreen
- ++ local id=splashscreen
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath splashscreen
- +++ local id=splashscreen
- +++ echo /opt/retropie/supplementary/splashscreen
- ++ echo 'local md_desc="Configure Splashscreen"
- local md_help=""
- local md_type="supplementary"
- local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
- local md_repo_type="git"
- local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
- local md_repo_branch="master"
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
- local md_inst="/opt/retropie/supplementary/splashscreen"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
- + eval 'local md_desc="Configure Splashscreen"
- local md_help=""
- local md_type="supplementary"
- local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
- local md_repo_type="git"
- local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
- local md_repo_branch="master"
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
- local md_inst="/opt/retropie/supplementary/splashscreen"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
- ++ local 'md_desc=Configure Splashscreen'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local 'md_flags=noinstclean !all rpi !osmc !xbian !aarch64'
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh
- ++ local md_repo_type=git
- ++ local md_repo_url=https://github.com/RetroPie/retropie-splashscreens.git
- ++ local md_repo_branch=master
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/splashscreen
- ++ local md_inst=/opt/retropie/supplementary/splashscreen
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=configure_splashscreen
- + fnExists configure_splashscreen
- + declare -f configure_splashscreen
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + action=Configuring
- + pushd /opt/retropie/supplementary/splashscreen
- /opt/retropie/supplementary/splashscreen /home/pi/RetroPie-Setup
- + pushed=0
- + [[ -n Configuring ]]
- + printHeading 'Configuring '\''splashscreen'\'' : Configure Splashscreen'
- + printMsgs heading 'Configuring '\''splashscreen'\'' : Configure Splashscreen'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nConfiguring '\''splashscreen'\'' : Configure Splashscreen\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Configuring 'splashscreen' : Configure Splashscreen
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + configure_splashscreen
- + [[ install == \r\e\m\o\v\e ]]
- + [[ -f /etc/init.d/asplashscreen ]]
- + disable_plymouth_splashscreen
- + local config=/boot/cmdline.txt
- + [[ -f /boot/cmdline.txt ]]
- + grep -q plymouth.enable /boot/cmdline.txt
- + enable_splashscreen
- + systemctl enable asplashscreen
- + [[ ! -f /etc/splashscreen.list ]]
- + [[ -n '' ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/splashscreen ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ configure == \i\n\s\t\a\l\l\_\b\i\n ]]
- + [[ configure == \i\n\s\t\a\l\l ]]
- + fnExists install_splashscreen
- + declare -f install_splashscreen
- + return 1
- + [[ configure == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 0 -eq 0 ]]
- + popd
- /home/pi/RetroPie-Setup
- + return 0
- + return 0
- + return 0
- + return 0
- + for id in ${__mod_id[@]}
- + rp_isInstalled steamcontroller
- + local id=steamcontroller
- + local md_inst=/opt/retropie/supplementary/steamcontroller
- + [[ -d /opt/retropie/supplementary/steamcontroller ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled usbromservice
- + local id=usbromservice
- + local md_inst=/opt/retropie/supplementary/usbromservice
- + [[ -d /opt/retropie/supplementary/usbromservice ]]
- + return 0
- + [[ opt != \d\e\p\e\n\d\s ]]
- + rp_installModule usbromservice _update_
- + local id=usbromservice
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule usbromservice _update_
- + local md_id=usbromservice
- + local mode=_update_
- + shift 2
- + rp_hasModule usbromservice
- + local id=usbromservice
- + [[ -n 228 ]]
- + return 0
- + rp_isEnabled usbromservice
- + local id=usbromservice
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled usbromservice
- + local id=usbromservice
- + local md_inst=/opt/retropie/supplementary/usbromservice
- + [[ -d /opt/retropie/supplementary/usbromservice ]]
- + return 0
- + rp_loadPackageInfo usbromservice pkg_origin
- + local id=usbromservice
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath usbromservice
- ++ local id=usbromservice
- ++ echo /opt/retropie/supplementary/usbromservice
- + local pkg_file=/opt/retropie/supplementary/usbromservice/retropie.pkg
- + [[ -f /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + [[ 0 -eq 1 ]]
- + local pkg_origin=binary
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag '' nonet
- + local string=
- + local flag=nonet
- + [[ -z '' ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary usbromservice
- + local id=usbromservice
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl usbromservice
- ++ local id=usbromservice
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/usbromservice.tar.gz
- ++ fnExists install_bin_usbromservice
- ++ declare -f install_bin_usbromservice
- ++ return 0
- ++ fnExists __binary_url_usbromservice
- ++ declare -f __binary_url_usbromservice
- ++ return 1
- ++ url=notest
- ++ echo notest
- + local url=notest
- + [[ notest == \n\o\t\e\s\t ]]
- + return 0
- + local ret=0
- + [[ 0 -eq 0 ]]
- + has_binary=1
- + [[ 0 -eq 2 ]]
- + [[ 1 -eq 0 ]]
- + local do_update=0
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + printMsgs heading 'Checking for updates for usbromservice'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nChecking for updates for usbromservice\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Checking for updates for usbromservice
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + rp_hasNewerModule usbromservice binary
- + local id=usbromservice
- + local type=binary
- + [[ -n '' ]]
- + rp_loadPackageInfo usbromservice
- + local id=usbromservice
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z '' ]]
- + keys=(pkg_origin pkg_date pkg_repo_type pkg_repo_url pkg_repo_branch pkg_repo_commit pkg_repo_date pkg_repo_extra)
- + local load=0
- ++ rp_getInstallPath usbromservice
- ++ local id=usbromservice
- ++ echo /opt/retropie/supplementary/usbromservice
- + local pkg_file=/opt/retropie/supplementary/usbromservice/retropie.pkg
- + [[ -f /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + data=binary
- + [[ -n binary ]]
- + __mod_info[$id/$key]=binary
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_date == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_date="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_type == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_type="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_url == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_url="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_branch == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_branch="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_commit == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_commit="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_date == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_date="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + data=
- + [[ -n '' ]]
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_repo_extra == \p\k\g\_\o\r\i\g\i\n ]]
- + __mod_info[$id/$key]=
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_repo_extra="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + data=
- + [[ -n '' ]]
- + [[ 1 -eq 1 ]]
- + __mod_info[$id/pkg_info]=1
- + local pkg_origin=binary
- + local pkg_date=
- + local pkg_repo_date=
- + local pkg_repo_commit=
- + local ret=1
- + case "$type" in
- + ret=
- + [[ -n '' ]]
- + [[ -z '' ]]
- + ret=2
- + __mod_info[$id/has_newer]=2
- + return 2
- + [[ 2 -eq 0 ]]
- + [[ 2 == 2 ]]
- + do_update=1
- + [[ 0 -eq 3 ]]
- + [[ 1 -eq 1 ]]
- + printMsgs console 'Update is available - updating ...'
- + local type=console
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ console == \d\i\a\l\o\g ]]
- + [[ console == \c\o\n\s\o\l\e ]]
- + echo -e 'Update is available - updating ...'
- Update is available - updating ...
- + [[ console == \h\e\a\d\i\n\g ]]
- + return 0
- + [[ 1 -eq 1 ]]
- + [[ binary != \s\o\u\r\c\e ]]
- + [[ 1 -eq 1 ]]
- + rp_callModule usbromservice _binary_
- + local md_id=usbromservice
- + local mode=_binary_
- + shift 2
- + rp_hasModule usbromservice
- + local id=usbromservice
- + [[ -n 228 ]]
- + return 0
- + rp_isEnabled usbromservice
- + local id=usbromservice
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + for mode in depends install_bin configure
- + rp_callModule usbromservice depends
- + local md_id=usbromservice
- + local mode=depends
- + shift 2
- + rp_hasModule usbromservice
- + local id=usbromservice
- + [[ -n 228 ]]
- + return 0
- + rp_isEnabled usbromservice
- + local id=usbromservice
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars usbromservice
- ++ local id=usbromservice
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath usbromservice
- +++ local id=usbromservice
- +++ echo /opt/retropie/supplementary/usbromservice
- ++ echo 'local md_desc="USB ROM Service"
- local md_help=""
- local md_type="supplementary"
- local md_flags=""
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
- local md_inst="/opt/retropie/supplementary/usbromservice"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
- + eval 'local md_desc="USB ROM Service"
- local md_help=""
- local md_type="supplementary"
- local md_flags=""
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
- local md_inst="/opt/retropie/supplementary/usbromservice"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
- ++ local 'md_desc=USB ROM Service'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local md_flags=
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh
- ++ local md_repo_type=
- ++ local md_repo_url=
- ++ local md_repo_branch=
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/usbromservice
- ++ local md_inst=/opt/retropie/supplementary/usbromservice
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=depends_usbromservice
- + fnExists depends_usbromservice
- + declare -f depends_usbromservice
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + [[ '' == \r\e\m\o\v\e ]]
- + action=Installing
- + action+=' dependencies for'
- + [[ -n Installing dependencies for ]]
- + printHeading 'Installing dependencies for '\''usbromservice'\'' : USB ROM Service'
- + printMsgs heading 'Installing dependencies for '\''usbromservice'\'' : USB ROM Service'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling dependencies for '\''usbromservice'\'' : USB ROM Service\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Installing dependencies for 'usbromservice' : USB ROM Service
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + depends_usbromservice
- + depends=(rsync ntfs-3g exfat-fuse)
- + local depends
- ++ _get_ver_usbromservice
- ++ echo 0.0.24
- + hasPackage usbmount 0.0.24
- + local pkg=usbmount
- + local req_ver=0.0.24
- + local comp=
- + [[ -z '' ]]
- + comp=ge
- + local ver
- + local status
- ++ dpkg-query -W '--showformat=${Status} ${Version}' usbmount
- + local 'out=install ok installed 0.0.24'
- + [[ 0 -eq 0 ]]
- + ver=0.0.24
- + status='install ok installed'
- + local installed=0
- + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
- + installed=1
- + [[ -z 0.0.24 ]]
- + [[ 1 -eq 0 ]]
- + compareVersions 0.0.24 ge 0.0.24
- + dpkg --compare-versions 0.0.24 ge 0.0.24
- + return 0
- + return 0
- + [[ -n '' ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/usbromservice ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ depends == \i\n\s\t\a\l\l\_\b\i\n ]]
- + [[ depends == \i\n\s\t\a\l\l ]]
- + fnExists install_usbromservice
- + declare -f install_usbromservice
- + return 1
- + [[ depends == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 1 -eq 0 ]]
- + return 0
- + for mode in depends install_bin configure
- + rp_callModule usbromservice install_bin
- + local md_id=usbromservice
- + local mode=install_bin
- + shift 2
- + rp_hasModule usbromservice
- + local id=usbromservice
- + [[ -n 228 ]]
- + return 0
- + rp_isEnabled usbromservice
- + local id=usbromservice
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars usbromservice
- ++ local id=usbromservice
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath usbromservice
- +++ local id=usbromservice
- +++ echo /opt/retropie/supplementary/usbromservice
- ++ echo 'local md_desc="USB ROM Service"
- local md_help=""
- local md_type="supplementary"
- local md_flags=""
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
- local md_inst="/opt/retropie/supplementary/usbromservice"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
- + eval 'local md_desc="USB ROM Service"
- local md_help=""
- local md_type="supplementary"
- local md_flags=""
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
- local md_inst="/opt/retropie/supplementary/usbromservice"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
- ++ local 'md_desc=USB ROM Service'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local md_flags=
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh
- ++ local md_repo_type=
- ++ local md_repo_url=
- ++ local md_repo_branch=
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/usbromservice
- ++ local md_inst=/opt/retropie/supplementary/usbromservice
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=install_bin_usbromservice
- + fnExists install_bin_usbromservice
- + declare -f install_bin_usbromservice
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + action='Installing (binary)'
- + [[ -n Installing (binary) ]]
- + printHeading 'Installing (binary) '\''usbromservice'\'' : USB ROM Service'
- + printMsgs heading 'Installing (binary) '\''usbromservice'\'' : USB ROM Service'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling (binary) '\''usbromservice'\'' : USB ROM Service\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Installing (binary) 'usbromservice' : USB ROM Service
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + fnExists install_bin_usbromservice
- + declare -f install_bin_usbromservice
- + return 0
- + mkdir -p /opt/retropie/supplementary/usbromservice
- + install_bin_usbromservice
- + [[ ! -f /opt/retropie/supplementary/usbromservice/disabled ]]
- + install_scripts_usbromservice
- + local file
- + local dest
- + for file in "$md_data/"*
- + dest=/etc/usbmount/mount.d/01_retropie_copyroms
- + sed s/USERTOBECHOSEN/pi/g /home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice/01_retropie_copyroms
- + chmod +x /etc/usbmount/mount.d/01_retropie_copyroms
- + for file in "$md_data/"*
- + dest=/etc/usbmount/mount.d/10_retropie_mount
- + sed s/USERTOBECHOSEN/pi/g /home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice/10_retropie_mount
- + chmod +x /etc/usbmount/mount.d/10_retropie_mount
- + touch /opt/retropie/supplementary/usbromservice/installed
- + [[ -n '' ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/usbromservice ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ install_bin == \i\n\s\t\a\l\l\_\b\i\n ]]
- + rp_setPackageInfo usbromservice binary
- + local id=usbromservice
- ++ rp_getInstallPath usbromservice
- ++ local id=usbromservice
- ++ echo /opt/retropie/supplementary/usbromservice
- + local install_path=/opt/retropie/supplementary/usbromservice
- + [[ ! -d /opt/retropie/supplementary/usbromservice ]]
- + local pkg=/opt/retropie/supplementary/usbromservice/retropie.pkg
- + local origin=binary
- + rp_clearCachedInfo usbromservice
- + local id=usbromservice
- + __mod_info[$id/pkg_info]=0
- + __mod_info[$id/has_binary]=
- + __mod_info[$id/has_newer]=
- + iniConfig = '"' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + __ini_cfg_delim==
- + __ini_cfg_quote='"'
- + __ini_cfg_file=/opt/retropie/supplementary/usbromservice/retropie.pkg
- + iniSet pkg_origin binary
- + iniProcess set pkg_origin binary ''
- + local cmd=set
- + local key=pkg_origin
- + local value=binary
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/usbromservice/retropie.pkg
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
- + [[ -z pkg_origin ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*pkg_origin[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
- ++ egrep -i '^[[:space:]#]*pkg_origin[[:space:]]*=.*$' /opt/retropie/supplementary/usbromservice/retropie.pkg
- ++ tail -1
- + match='pkg_origin="binary"'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=pkg_origin="binary"'
- + [[ -z pkg_origin="binary" ]]
- ++ sedQuote 'pkg_origin="binary"'
- ++ local 'string=pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ echo 'pkg_origin="binary"'
- ++ sedQuote 'pkg_origin="binary"'
- ++ local 'string=pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ string='pkg_origin="binary"'
- ++ echo 'pkg_origin="binary"'
- + sed -i --follow-symlinks 's|pkg_origin="binary"|pkg_origin="binary"|g' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + [[ /opt/retropie/supplementary/usbromservice/retropie.pkg =~ retroarch\.cfg$ ]]
- + return 0
- + local pkg_date
- + local pkg_repo_type
- + local pkg_repo_url
- + local pkg_repo_branch
- + local pkg_repo_commit
- + local pkg_repo_date
- + local pkg_repo_extra
- + [[ binary == \b\i\n\a\r\y ]]
- ++ rp_getBinaryDate usbromservice
- ++ local id=usbromservice
- +++ rp_getBinaryUrl usbromservice
- +++ local id=usbromservice
- +++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/usbromservice.tar.gz
- +++ fnExists install_bin_usbromservice
- +++ declare -f install_bin_usbromservice
- +++ return 0
- +++ fnExists __binary_url_usbromservice
- +++ declare -f __binary_url_usbromservice
- +++ return 1
- +++ url=notest
- +++ echo notest
- ++ local url=notest
- ++ [[ -z notest ]]
- ++ [[ notest == \n\o\t\e\s\t ]]
- ++ return 1
- + pkg_date=
- + iniSet pkg_date ''
- + iniProcess set pkg_date '' ''
- + local cmd=set
- + local key=pkg_date
- + local value=
- + local file=
- + [[ -z '' ]]
- + file=/opt/retropie/supplementary/usbromservice/retropie.pkg
- + local delim==
- + local 'quote="'
- + [[ -z /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
- + [[ -z pkg_date ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*pkg_date[[:space:]]*=.*$'
- + local match
- + [[ -f /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
- ++ egrep -i '^[[:space:]#]*pkg_date[[:space:]]*=.*$' /opt/retropie/supplementary/usbromservice/retropie.pkg
- ++ tail -1
- + match='pkg_date=""'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=pkg_date=""'
- + [[ -z pkg_date="" ]]
- ++ sedQuote 'pkg_date=""'
- ++ local 'string=pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ echo 'pkg_date=""'
- ++ sedQuote 'pkg_date=""'
- ++ local 'string=pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ string='pkg_date=""'
- ++ echo 'pkg_date=""'
- + sed -i --follow-symlinks 's|pkg_date=""|pkg_date=""|g' /opt/retropie/supplementary/usbromservice/retropie.pkg
- + [[ /opt/retropie/supplementary/usbromservice/retropie.pkg =~ retroarch\.cfg$ ]]
- + return 0
- + [[ install_bin == \i\n\s\t\a\l\l ]]
- + fnExists install_usbromservice
- + declare -f install_usbromservice
- + return 1
- + [[ install_bin == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 1 -eq 0 ]]
- + return 0
- + for mode in depends install_bin configure
- + rp_callModule usbromservice configure
- + local md_id=usbromservice
- + local mode=configure
- + shift 2
- + rp_hasModule usbromservice
- + local id=usbromservice
- + [[ -n 228 ]]
- + return 0
- + rp_isEnabled usbromservice
- + local id=usbromservice
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- ++ rp_moduleVars usbromservice
- ++ local id=usbromservice
- ++ local code
- ++ read -d '' -r code
- +++ rp_getInstallPath usbromservice
- +++ local id=usbromservice
- +++ echo /opt/retropie/supplementary/usbromservice
- ++ echo 'local md_desc="USB ROM Service"
- local md_help=""
- local md_type="supplementary"
- local md_flags=""
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
- local md_inst="/opt/retropie/supplementary/usbromservice"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
- + eval 'local md_desc="USB ROM Service"
- local md_help=""
- local md_type="supplementary"
- local md_flags=""
- local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
- local md_repo_type=""
- local md_repo_url=""
- local md_repo_branch=""
- local md_repo_commit=""
- local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
- local md_inst="/opt/retropie/supplementary/usbromservice"
- # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
- local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
- ++ local 'md_desc=USB ROM Service'
- ++ local md_help=
- ++ local md_type=supplementary
- ++ local md_flags=
- ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh
- ++ local md_repo_type=
- ++ local md_repo_url=
- ++ local md_repo_branch=
- ++ local md_repo_commit=
- ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/usbromservice
- ++ local md_inst=/opt/retropie/supplementary/usbromservice
- ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice
- + local md_mode=install
- + local md_conf_root
- + [[ supplementary == \p\o\r\t\s ]]
- + setConfigRoot ''
- + local dir=
- + md_conf_root=/opt/retropie/configs
- + [[ -n '' ]]
- + mkUserDir /opt/retropie/configs
- + mkdir -p /opt/retropie/configs
- + chown pi:pi /opt/retropie/configs
- + case "$mode" in
- + function=configure_usbromservice
- + fnExists configure_usbromservice
- + declare -f configure_usbromservice
- + return 0
- + md_ret_require=()
- + local md_ret_require
- + md_ret_files=()
- + local md_ret_files
- + md_ret_errors=()
- + local md_ret_errors
- + md_ret_info=()
- + local md_ret_info
- + local action
- + local pushed=1
- + case "$mode" in
- + action=Configuring
- + pushd /opt/retropie/supplementary/usbromservice
- /opt/retropie/supplementary/usbromservice /home/pi/RetroPie-Setup
- + pushed=0
- + [[ -n Configuring ]]
- + printHeading 'Configuring '\''usbromservice'\'' : USB ROM Service'
- + printMsgs heading 'Configuring '\''usbromservice'\'' : USB ROM Service'
- + local type=heading
- + shift
- + [[ 0 == \1 ]]
- + for msg in "$@"
- + [[ heading == \d\i\a\l\o\g ]]
- + [[ heading == \c\o\n\s\o\l\e ]]
- + [[ heading == \h\e\a\d\i\n\g ]]
- + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nConfiguring '\''usbromservice'\'' : USB ROM Service\n= = = = = = = = = = = = = = = = = = = = =\n'
- = = = = = = = = = = = = = = = = = = = = =
- Configuring 'usbromservice' : USB ROM Service
- = = = = = = = = = = = = = = = = = = = = =
- + return 0
- + case "$mode" in
- + configure_usbromservice
- + [[ install == \r\e\m\o\v\e ]]
- + iniConfig = '"' /etc/usbmount/usbmount.conf
- + __ini_cfg_delim==
- + __ini_cfg_quote='"'
- + __ini_cfg_file=/etc/usbmount/usbmount.conf
- + local fs
- + for fs in ntfs exfat
- + iniGet FILESYSTEMS
- + local key=FILESYSTEMS
- + local file=
- + [[ -z '' ]]
- + file=/etc/usbmount/usbmount.conf
- + [[ ! -f /etc/usbmount/usbmount.conf ]]
- + local delim==
- + local 'quote="'
- + local delim_strip==
- + [[ -z = ]]
- + local value_m
- + [[ -n " ]]
- + value_m='"*\([^"|\r]*\)"*'
- ++ sed -n 's/^[ |\t]*FILESYSTEMS[ |\t]*=[ |\t]*"*\([^"|\r]*\)"*.*/\1/p' /etc/usbmount/usbmount.conf
- ++ tail -1
- + ini_value='vfat ext2 ext3 ext4 hfsplus ntfs exfat'
- + [[ vfat ext2 ext3 ext4 hfsplus ntfs exfat != *ntfs* ]]
- + for fs in ntfs exfat
- + iniGet FILESYSTEMS
- + local key=FILESYSTEMS
- + local file=
- + [[ -z '' ]]
- + file=/etc/usbmount/usbmount.conf
- + [[ ! -f /etc/usbmount/usbmount.conf ]]
- + local delim==
- + local 'quote="'
- + local delim_strip==
- + [[ -z = ]]
- + local value_m
- + [[ -n " ]]
- + value_m='"*\([^"|\r]*\)"*'
- ++ sed -n 's/^[ |\t]*FILESYSTEMS[ |\t]*=[ |\t]*"*\([^"|\r]*\)"*.*/\1/p' /etc/usbmount/usbmount.conf
- ++ tail -1
- + ini_value='vfat ext2 ext3 ext4 hfsplus ntfs exfat'
- + [[ vfat ext2 ext3 ext4 hfsplus ntfs exfat != *exfat* ]]
- + iniSet MOUNTOPTIONS nodev,noexec,noatime
- + iniProcess set MOUNTOPTIONS nodev,noexec,noatime ''
- + local cmd=set
- + local key=MOUNTOPTIONS
- + local value=nodev,noexec,noatime
- + local file=
- + [[ -z '' ]]
- + file=/etc/usbmount/usbmount.conf
- + local delim==
- + local 'quote="'
- + [[ -z /etc/usbmount/usbmount.conf ]]
- + [[ -z MOUNTOPTIONS ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*MOUNTOPTIONS[[:space:]]*=.*$'
- + local match
- + [[ -f /etc/usbmount/usbmount.conf ]]
- ++ egrep -i '^[[:space:]#]*MOUNTOPTIONS[[:space:]]*=.*$' /etc/usbmount/usbmount.conf
- ++ tail -1
- + match='MOUNTOPTIONS="nodev,noexec,noatime"'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=MOUNTOPTIONS="nodev,noexec,noatime"'
- + [[ -z MOUNTOPTIONS="nodev,noexec,noatime" ]]
- ++ sedQuote 'MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ local 'string=MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ echo 'MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ sedQuote 'MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ local 'string=MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
- ++ echo 'MOUNTOPTIONS="nodev,noexec,noatime"'
- + sed -i --follow-symlinks 's|MOUNTOPTIONS="nodev,noexec,noatime"|MOUNTOPTIONS="nodev,noexec,noatime"|g' /etc/usbmount/usbmount.conf
- + [[ /etc/usbmount/usbmount.conf =~ retroarch\.cfg$ ]]
- + return 0
- ++ id -u pi
- ++ id -g pi
- + local options=uid=1000,gid=1000
- + local fs_options
- + local fs
- + for fs in vfat hfsplus ntfs exfat
- + fs_options+=("-fstype=${fs},${options}")
- + for fs in vfat hfsplus ntfs exfat
- + fs_options+=("-fstype=${fs},${options}")
- + for fs in vfat hfsplus ntfs exfat
- + fs_options+=("-fstype=${fs},${options}")
- + for fs in vfat hfsplus ntfs exfat
- + fs_options+=("-fstype=${fs},${options}")
- + iniSet FS_MOUNTOPTIONS '-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000'
- + iniProcess set FS_MOUNTOPTIONS '-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000' ''
- + local cmd=set
- + local key=FS_MOUNTOPTIONS
- + local 'value=-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000'
- + local file=
- + [[ -z '' ]]
- + file=/etc/usbmount/usbmount.conf
- + local delim==
- + local 'quote="'
- + [[ -z /etc/usbmount/usbmount.conf ]]
- + [[ -z FS_MOUNTOPTIONS ]]
- + local delim_strip==
- + [[ -z = ]]
- + local 'match_re=^[[:space:]#]*FS_MOUNTOPTIONS[[:space:]]*=.*$'
- + local match
- + [[ -f /etc/usbmount/usbmount.conf ]]
- ++ egrep -i '^[[:space:]#]*FS_MOUNTOPTIONS[[:space:]]*=.*$' /etc/usbmount/usbmount.conf
- ++ tail -1
- + match='FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- + [[ set == \d\e\l ]]
- + [[ set == \u\n\s\e\t ]]
- + local 'replace=FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- + [[ -z FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000" ]]
- ++ sedQuote 'FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ local 'string=FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ string='FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ string='FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ string='FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ string='FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ echo 'FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ sedQuote 'FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ local 'string=FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ string='FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ string='FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ string='FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ string='FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- ++ echo 'FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"'
- + sed -i --follow-symlinks 's|FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"|FS_MOUNTOPTIONS="-fstype=vfat,uid=1000,gid=1000 -fstype=hfsplus,uid=1000,gid=1000 -fstype=ntfs,uid=1000,gid=1000 -fstype=exfat,uid=1000,gid=1000"|g' /etc/usbmount/usbmount.conf
- + [[ /etc/usbmount/usbmount.conf =~ retroarch\.cfg$ ]]
- + return 0
- + [[ -n '' ]]
- + [[ 0 -eq 0 ]]
- + [[ -n '' ]]
- + [[ -d /home/pi/RetroPie-Setup/tmp/build/usbromservice ]]
- + local ret=0
- + [[ 0 -gt 0 ]]
- + [[ configure == \i\n\s\t\a\l\l\_\b\i\n ]]
- + [[ configure == \i\n\s\t\a\l\l ]]
- + fnExists install_usbromservice
- + declare -f install_usbromservice
- + return 1
- + [[ configure == \b\u\i\l\d ]]
- + [[ 0 -gt 0 ]]
- + [[ 0 -eq 0 ]]
- + popd
- /home/pi/RetroPie-Setup
- + return 0
- + return 0
- + return 0
- + return 0
- + for id in ${__mod_id[@]}
- + rp_isInstalled virtualgamepad
- + local id=virtualgamepad
- + local md_inst=/opt/retropie/supplementary/virtualgamepad
- + [[ -d /opt/retropie/supplementary/virtualgamepad ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled wifi
- + local id=wifi
- + local md_inst=/opt/retropie/supplementary/wifi
- + [[ -d /opt/retropie/supplementary/wifi ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled xarcade2jstick
- + local id=xarcade2jstick
- + local md_inst=/opt/retropie/supplementary/xarcade2jstick
- + [[ -d /opt/retropie/supplementary/xarcade2jstick ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled xboxdrv
- + local id=xboxdrv
- + local md_inst=/opt/retropie/supplementary/xboxdrv
- + [[ -d /opt/retropie/supplementary/xboxdrv ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled xpadneo
- + local id=xpadneo
- + local md_inst=/opt/retropie/supplementary/xpadneo
- + [[ -d /opt/retropie/supplementary/xpadneo ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled xpad
- + local id=xpad
- + local md_inst=/opt/retropie/supplementary/xpad
- + [[ -d /opt/retropie/supplementary/xpad ]]
- + return 0
- + [[ driver != \d\e\p\e\n\d\s ]]
- + rp_installModule xpad _update_
- + local id=xpad
- + local mode=_update_
- + [[ -z _update_ ]]
- + rp_callModule xpad _update_
- + local md_id=xpad
- + local mode=_update_
- + shift 2
- + rp_hasModule xpad
- + local id=xpad
- + [[ -n 234 ]]
- + return 0
- + rp_isEnabled xpad
- + local id=xpad
- + [[ 1 -eq 0 ]]
- + return 0
- + case "$mode" in
- + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
- + rp_isInstalled xpad
- + local id=xpad
- + local md_inst=/opt/retropie/supplementary/xpad
- + [[ -d /opt/retropie/supplementary/xpad ]]
- + return 0
- + rp_loadPackageInfo xpad pkg_origin
- + local id=xpad
- + [[ '' -eq 1 ]]
- + local keys
- + local cache=1
- + [[ -z pkg_origin ]]
- + shift
- + keys=("$@")
- + cache=0
- + local load=0
- ++ rp_getInstallPath xpad
- ++ local id=xpad
- ++ echo /opt/retropie/supplementary/xpad
- + local pkg_file=/opt/retropie/supplementary/xpad/retropie.pkg
- + [[ -f /opt/retropie/supplementary/xpad/retropie.pkg ]]
- + load=1
- + local key
- + local data
- + for key in "${keys[@]}"
- + data=
- + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
- + data=unknown
- + __mod_info[$id/$key]=unknown
- + [[ 1 -eq 1 ]]
- ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/xpad/retropie.pkg
- + data=source
- + [[ -n source ]]
- + __mod_info[$id/$key]=source
- + [[ 0 -eq 1 ]]
- + local pkg_origin=source
- + local has_binary=0
- + local has_net=0
- ++ getIPAddress
- ++ local dev=
- ++ local ip_route
- +++ ip -4 route get 8.8.8.8
- ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache '
- ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
- cache ]]
- ++ grep -oP 'src \K[^\s]+'
- + local ip=192.168.2.5
- + [[ -n 192.168.2.5 ]]
- + has_net=1
- + hasFlag 'noinstclean !mali' nonet
- + local 'string=noinstclean !mali'
- + local flag=nonet
- + [[ -z noinstclean !mali ]]
- + [[ -z nonet ]]
- + [[ noinstclean !mali =~ (^| )nonet($| ) ]]
- + return 1
- + [[ 1 -eq 1 ]]
- + rp_hasBinary xpad
- + local id=xpad
- + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
- ++ rp_getBinaryUrl xpad
- ++ local id=xpad
- ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
- ++ fnExists install_bin_xpad
- ++ declare -f install_bin_xpad
- ++ return 1
- ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
- + [[ https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz == \n\o\t\e\s\t ]]
- + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz ]]
- + [[ -n '' ]]
- + local ret=1
- + rp_hasBinaries
- + [[ 1 -eq 1 ]]
- + return 0
- + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
- + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
- + local ret
- + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
- + ret=28
- + [[ 28 -eq 0 ]]
- + [[ 28 -eq 22 ]]
- + return 2
- + ret=2
- + [[ 2 -ne 2 ]]
- + return 2
- + local ret=2
- + [[ 2 -eq 0 ]]
- + [[ 2 -eq 2 ]]
- + has_net=0
- + [[ 0 -eq 0 ]]
- + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
- + return 1
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled apidocs
- + local id=apidocs
- + local md_inst=/opt/retropie/admin/apidocs
- + [[ -d /opt/retropie/admin/apidocs ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled builder
- + local id=builder
- + local md_inst=/opt/retropie/admin/builder
- + [[ -d /opt/retropie/admin/builder ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled crosscomp
- + local id=crosscomp
- + local md_inst=/opt/retropie/admin/crosscomp
- + [[ -d /opt/retropie/admin/crosscomp ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled image
- + local id=image
- + local md_inst=/opt/retropie/admin/image
- + [[ -d /opt/retropie/admin/image ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled setup
- + local id=setup
- + local md_inst=/opt/retropie/admin/setup
- + [[ -d /opt/retropie/admin/setup ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled stats
- + local id=stats
- + local md_inst=/opt/retropie/admin/stats
- + [[ -d /opt/retropie/admin/stats ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled tools
- + local id=tools
- + local md_inst=/opt/retropie/admin/tools
- + [[ -d /opt/retropie/admin/tools ]]
- + return 1
- + for id in ${__mod_id[@]}
- + rp_isInstalled wikidocs
- + local id=wikidocs
- + local md_inst=/opt/retropie/admin/wikidocs
- + [[ -d /opt/retropie/admin/wikidocs ]]
- + return 1
- + rps_logEnd
- ++ date +%s
- + time_end=1614511459
- + echo
- ++ date -d @1614511459
- + echo 'Log ended at: Sun 28 Feb 13:24:19 EET 2021'
- Log ended at: Sun 28 Feb 13:24:19 EET 2021
- + date_total=260
- + local hours=0
- + local mins=4
- + local secs=20
- + echo 'Total running time: 0 hours, 4 mins, 20 secs'
- Total running time: 0 hours, 4 mins, 20 secs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement