Advertisement
Guest User

RetroPie-Setup Debug Log 2

a guest
Feb 28th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 366.18 KB | None | 0 0
  1. + rps_logStart
  2. ++ date -d @1614511199
  3. + echo -e 'Log started at: Sun 28 Feb 13:19:59 EET 2021\n'
  4. Log started at: Sun 28 Feb 13:19:59 EET 2021
  5.  
  6. ++ git -C /home/pi/RetroPie-Setup log -1 --pretty=format:%h
  7. + echo 'RetroPie-Setup version: 4.7.9 (b3c1d15f)'
  8. RetroPie-Setup version: 4.7.9 (b3c1d15f)
  9. ++ uname -a
  10. + 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'
  11. 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
  12. + [[ 1 -eq 1 ]]
  13. + rp_isEnabled raspbiantools
  14. + local id=raspbiantools
  15. + [[ 1 -eq 0 ]]
  16. + return 0
  17. + rp_callModule raspbiantools apt_upgrade
  18. + local md_id=raspbiantools
  19. + local mode=apt_upgrade
  20. + shift 2
  21. + rp_hasModule raspbiantools
  22. + local id=raspbiantools
  23. + [[ -n 213 ]]
  24. + return 0
  25. + rp_isEnabled raspbiantools
  26. + local id=raspbiantools
  27. + [[ 1 -eq 0 ]]
  28. + return 0
  29. + case "$mode" in
  30. ++ rp_moduleVars raspbiantools
  31. ++ local id=raspbiantools
  32. ++ local code
  33. ++ read -d '' -r code
  34. +++ rp_getInstallPath raspbiantools
  35. +++ local id=raspbiantools
  36. +++ echo /opt/retropie/supplementary/raspbiantools
  37. ++ echo 'local md_desc="Raspbian related tools"
  38. local md_help=""
  39. local md_type="supplementary"
  40. local md_flags="!all rpi"
  41. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools.sh"
  42.  
  43. local md_repo_type=""
  44. local md_repo_url=""
  45. local md_repo_branch=""
  46. local md_repo_commit=""
  47.  
  48. local md_build="/home/pi/RetroPie-Setup/tmp/build/raspbiantools"
  49. local md_inst="/opt/retropie/supplementary/raspbiantools"
  50. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  51. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools"'
  52. + eval 'local md_desc="Raspbian related tools"
  53. local md_help=""
  54. local md_type="supplementary"
  55. local md_flags="!all rpi"
  56. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools.sh"
  57.  
  58. local md_repo_type=""
  59. local md_repo_url=""
  60. local md_repo_branch=""
  61. local md_repo_commit=""
  62.  
  63. local md_build="/home/pi/RetroPie-Setup/tmp/build/raspbiantools"
  64. local md_inst="/opt/retropie/supplementary/raspbiantools"
  65. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  66. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools"'
  67. ++ local 'md_desc=Raspbian related tools'
  68. ++ local md_help=
  69. ++ local md_type=supplementary
  70. ++ local 'md_flags=!all rpi'
  71. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools.sh
  72. ++ local md_repo_type=
  73. ++ local md_repo_url=
  74. ++ local md_repo_branch=
  75. ++ local md_repo_commit=
  76. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/raspbiantools
  77. ++ local md_inst=/opt/retropie/supplementary/raspbiantools
  78. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/raspbiantools
  79. + local md_mode=install
  80. + local md_conf_root
  81. + [[ supplementary == \p\o\r\t\s ]]
  82. + setConfigRoot ''
  83. + local dir=
  84. + md_conf_root=/opt/retropie/configs
  85. + [[ -n '' ]]
  86. + mkUserDir /opt/retropie/configs
  87. + mkdir -p /opt/retropie/configs
  88. + chown pi:pi /opt/retropie/configs
  89. + case "$mode" in
  90. + function=apt_upgrade_raspbiantools
  91. + fnExists apt_upgrade_raspbiantools
  92. + declare -f apt_upgrade_raspbiantools
  93. + return 0
  94. + md_ret_require=()
  95. + local md_ret_require
  96. + md_ret_files=()
  97. + local md_ret_files
  98. + md_ret_errors=()
  99. + local md_ret_errors
  100. + md_ret_info=()
  101. + local md_ret_info
  102. + local action
  103. + local pushed=1
  104. + case "$mode" in
  105. + action='Running action '\''apt_upgrade'\'' for'
  106. + [[ -n Running action 'apt_upgrade' for ]]
  107. + printHeading 'Running action '\''apt_upgrade'\'' for '\''raspbiantools'\'' : Raspbian related tools'
  108. + printMsgs heading 'Running action '\''apt_upgrade'\'' for '\''raspbiantools'\'' : Raspbian related tools'
  109. + local type=heading
  110. + shift
  111. + [[ 0 == \1 ]]
  112. + for msg in "$@"
  113. + [[ heading == \d\i\a\l\o\g ]]
  114. + [[ heading == \c\o\n\s\o\l\e ]]
  115. + [[ heading == \h\e\a\d\i\n\g ]]
  116. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nRunning action '\''apt_upgrade'\'' for '\''raspbiantools'\'' : Raspbian related tools\n= = = = = = = = = = = = = = = = = = = = =\n'
  117.  
  118. = = = = = = = = = = = = = = = = = = = = =
  119. Running action 'apt_upgrade' for 'raspbiantools' : Raspbian related tools
  120. = = = = = = = = = = = = = = = = = = = = =
  121.  
  122. + return 0
  123. + case "$mode" in
  124. + apt_upgrade_raspbiantools
  125. + stretch_fix_raspbiantools
  126. + local ver=1.20190401-1
  127. + isPlatform rpi
  128. + local flag=rpi
  129. + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
  130. + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
  131. + local flag=rpi
  132. + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
  133. + [[ -z rpi ]]
  134. + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
  135. + return 0
  136. + return 0
  137. + hasPackage raspberrypi-kernel
  138. + local pkg=raspberrypi-kernel
  139. + local req_ver=
  140. + local comp=
  141. + [[ -z '' ]]
  142. + comp=ge
  143. + local ver
  144. + local status
  145. ++ dpkg-query -W '--showformat=${Status} ${Version}' raspberrypi-kernel
  146. + local 'out=install ok installed 1.20210201-1'
  147. + [[ 0 -eq 0 ]]
  148. + ver=1.20210201-1
  149. + status='install ok installed'
  150. + local installed=0
  151. + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
  152. + installed=1
  153. + [[ -z '' ]]
  154. + [[ 1 -eq 1 ]]
  155. + return 0
  156. + [[ 10 -eq 9 ]]
  157. + hasPackage raspberrypi-kernel 1.20190401-1 eq
  158. + local pkg=raspberrypi-kernel
  159. + local req_ver=1.20190401-1
  160. + local comp=eq
  161. + [[ -z eq ]]
  162. + local ver
  163. + local status
  164. ++ dpkg-query -W '--showformat=${Status} ${Version}' raspberrypi-kernel
  165. + local 'out=install ok installed 1.20210201-1'
  166. + [[ 0 -eq 0 ]]
  167. + ver=1.20210201-1
  168. + status='install ok installed'
  169. + local installed=0
  170. + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
  171. + installed=1
  172. + [[ -z 1.20190401-1 ]]
  173. + [[ 1 -eq 0 ]]
  174. + compareVersions 1.20210201-1 eq 1.20190401-1
  175. + dpkg --compare-versions 1.20210201-1 eq 1.20190401-1
  176. + return 1
  177. + return 1
  178. + aptUpdate
  179. + [[ '' != \1 ]]
  180. + apt-get update
  181. Hit:1 http://packages.microsoft.com/repos/code stable InRelease
  182. Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
  183. Hit:3 http://archive.raspberrypi.org/debian buster InRelease
  184. Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
  185. Fetched 13.0 MB in 19s (686 kB/s)
  186. Reading package lists...
  187. + __apt_update=1
  188. + apt-get -y dist-upgrade
  189. Reading package lists...
  190. Building dependency tree...
  191. Reading state information...
  192. Calculating upgrade...
  193. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  194. + [[ -n '' ]]
  195. + [[ 0 -eq 0 ]]
  196. + [[ -n '' ]]
  197. + [[ -d /home/pi/RetroPie-Setup/tmp/build/raspbiantools ]]
  198. + local ret=0
  199. + [[ 0 -gt 0 ]]
  200. + [[ apt_upgrade == \i\n\s\t\a\l\l\_\b\i\n ]]
  201. + [[ apt_upgrade == \i\n\s\t\a\l\l ]]
  202. + fnExists install_raspbiantools
  203. + declare -f install_raspbiantools
  204. + return 1
  205. + [[ apt_upgrade == \b\u\i\l\d ]]
  206. + [[ 0 -gt 0 ]]
  207. + [[ 1 -eq 0 ]]
  208. + return 0
  209. + update_packages_setup
  210. + clear
  211. + local id
  212. + for id in ${__mod_id[@]}
  213. + rp_isInstalled advmame-0.94
  214. + local id=advmame-0.94
  215. + local md_inst=/opt/retropie/emulators/advmame-0.94
  216. + [[ -d /opt/retropie/emulators/advmame-0.94 ]]
  217. + return 1
  218. + for id in ${__mod_id[@]}
  219. + rp_isInstalled advmame-1.4
  220. + local id=advmame-1.4
  221. + local md_inst=/opt/retropie/emulators/advmame-1.4
  222. + [[ -d /opt/retropie/emulators/advmame-1.4 ]]
  223. + return 1
  224. + for id in ${__mod_id[@]}
  225. + rp_isInstalled advmame
  226. + local id=advmame
  227. + local md_inst=/opt/retropie/emulators/advmame
  228. + [[ -d /opt/retropie/emulators/advmame ]]
  229. + return 1
  230. + for id in ${__mod_id[@]}
  231. + rp_isInstalled ags
  232. + local id=ags
  233. + local md_inst=/opt/retropie/emulators/ags
  234. + [[ -d /opt/retropie/emulators/ags ]]
  235. + return 1
  236. + for id in ${__mod_id[@]}
  237. + rp_isInstalled amiberry
  238. + local id=amiberry
  239. + local md_inst=/opt/retropie/emulators/amiberry
  240. + [[ -d /opt/retropie/emulators/amiberry ]]
  241. + return 1
  242. + for id in ${__mod_id[@]}
  243. + rp_isInstalled atari800
  244. + local id=atari800
  245. + local md_inst=/opt/retropie/emulators/atari800
  246. + [[ -d /opt/retropie/emulators/atari800 ]]
  247. + return 1
  248. + for id in ${__mod_id[@]}
  249. + rp_isInstalled basilisk
  250. + local id=basilisk
  251. + local md_inst=/opt/retropie/emulators/basilisk
  252. + [[ -d /opt/retropie/emulators/basilisk ]]
  253. + return 1
  254. + for id in ${__mod_id[@]}
  255. + rp_isInstalled capricerpi
  256. + local id=capricerpi
  257. + local md_inst=/opt/retropie/emulators/capricerpi
  258. + [[ -d /opt/retropie/emulators/capricerpi ]]
  259. + return 1
  260. + for id in ${__mod_id[@]}
  261. + rp_isInstalled coolcv
  262. + local id=coolcv
  263. + local md_inst=/opt/retropie/emulators/coolcv
  264. + [[ -d /opt/retropie/emulators/coolcv ]]
  265. + return 1
  266. + for id in ${__mod_id[@]}
  267. + rp_isInstalled daphne
  268. + local id=daphne
  269. + local md_inst=/opt/retropie/emulators/daphne
  270. + [[ -d /opt/retropie/emulators/daphne ]]
  271. + return 1
  272. + for id in ${__mod_id[@]}
  273. + rp_isInstalled dgen
  274. + local id=dgen
  275. + local md_inst=/opt/retropie/emulators/dgen
  276. + [[ -d /opt/retropie/emulators/dgen ]]
  277. + return 1
  278. + for id in ${__mod_id[@]}
  279. + rp_isInstalled dolphin
  280. + local id=dolphin
  281. + local md_inst=/opt/retropie/emulators/dolphin
  282. + [[ -d /opt/retropie/emulators/dolphin ]]
  283. + return 1
  284. + for id in ${__mod_id[@]}
  285. + rp_isInstalled dosbox-sdl2
  286. + local id=dosbox-sdl2
  287. + local md_inst=/opt/retropie/emulators/dosbox-sdl2
  288. + [[ -d /opt/retropie/emulators/dosbox-sdl2 ]]
  289. + return 1
  290. + for id in ${__mod_id[@]}
  291. + rp_isInstalled dosbox
  292. + local id=dosbox
  293. + local md_inst=/opt/retropie/emulators/dosbox
  294. + [[ -d /opt/retropie/emulators/dosbox ]]
  295. + return 1
  296. + for id in ${__mod_id[@]}
  297. + rp_isInstalled drastic
  298. + local id=drastic
  299. + local md_inst=/opt/retropie/emulators/drastic
  300. + [[ -d /opt/retropie/emulators/drastic ]]
  301. + return 1
  302. + for id in ${__mod_id[@]}
  303. + rp_isInstalled fbzx
  304. + local id=fbzx
  305. + local md_inst=/opt/retropie/emulators/fbzx
  306. + [[ -d /opt/retropie/emulators/fbzx ]]
  307. + return 1
  308. + for id in ${__mod_id[@]}
  309. + rp_isInstalled frotz
  310. + local id=frotz
  311. + local md_inst=/opt/retropie/emulators/frotz
  312. + [[ -d /opt/retropie/emulators/frotz ]]
  313. + return 1
  314. + for id in ${__mod_id[@]}
  315. + rp_isInstalled fs-uae
  316. + local id=fs-uae
  317. + local md_inst=/opt/retropie/emulators/fs-uae
  318. + [[ -d /opt/retropie/emulators/fs-uae ]]
  319. + return 1
  320. + for id in ${__mod_id[@]}
  321. + rp_isInstalled fuse
  322. + local id=fuse
  323. + local md_inst=/opt/retropie/emulators/fuse
  324. + [[ -d /opt/retropie/emulators/fuse ]]
  325. + return 1
  326. + for id in ${__mod_id[@]}
  327. + rp_isInstalled gngeopi
  328. + local id=gngeopi
  329. + local md_inst=/opt/retropie/emulators/gngeopi
  330. + [[ -d /opt/retropie/emulators/gngeopi ]]
  331. + return 1
  332. + for id in ${__mod_id[@]}
  333. + rp_isInstalled gpsp
  334. + local id=gpsp
  335. + local md_inst=/opt/retropie/emulators/gpsp
  336. + [[ -d /opt/retropie/emulators/gpsp ]]
  337. + return 1
  338. + for id in ${__mod_id[@]}
  339. + rp_isInstalled hatari
  340. + local id=hatari
  341. + local md_inst=/opt/retropie/emulators/hatari
  342. + [[ -d /opt/retropie/emulators/hatari ]]
  343. + return 1
  344. + for id in ${__mod_id[@]}
  345. + rp_isInstalled jzintv
  346. + local id=jzintv
  347. + local md_inst=/opt/retropie/emulators/jzintv
  348. + [[ -d /opt/retropie/emulators/jzintv ]]
  349. + return 1
  350. + for id in ${__mod_id[@]}
  351. + rp_isInstalled linapple
  352. + local id=linapple
  353. + local md_inst=/opt/retropie/emulators/linapple
  354. + [[ -d /opt/retropie/emulators/linapple ]]
  355. + return 1
  356. + for id in ${__mod_id[@]}
  357. + rp_isInstalled mame4all
  358. + local id=mame4all
  359. + local md_inst=/opt/retropie/emulators/mame4all
  360. + [[ -d /opt/retropie/emulators/mame4all ]]
  361. + return 1
  362. + for id in ${__mod_id[@]}
  363. + rp_isInstalled mame
  364. + local id=mame
  365. + local md_inst=/opt/retropie/emulators/mame
  366. + [[ -d /opt/retropie/emulators/mame ]]
  367. + return 1
  368. + for id in ${__mod_id[@]}
  369. + rp_isInstalled minivmac
  370. + local id=minivmac
  371. + local md_inst=/opt/retropie/emulators/minivmac
  372. + [[ -d /opt/retropie/emulators/minivmac ]]
  373. + return 1
  374. + for id in ${__mod_id[@]}
  375. + rp_isInstalled mupen64plus
  376. + local id=mupen64plus
  377. + local md_inst=/opt/retropie/emulators/mupen64plus
  378. + [[ -d /opt/retropie/emulators/mupen64plus ]]
  379. + return 0
  380. + [[ main != \d\e\p\e\n\d\s ]]
  381. + rp_installModule mupen64plus _update_
  382. + local id=mupen64plus
  383. + local mode=_update_
  384. + [[ -z _update_ ]]
  385. + rp_callModule mupen64plus _update_
  386. + local md_id=mupen64plus
  387. + local mode=_update_
  388. + shift 2
  389. + rp_hasModule mupen64plus
  390. + local id=mupen64plus
  391. + [[ -n 27 ]]
  392. + return 0
  393. + rp_isEnabled mupen64plus
  394. + local id=mupen64plus
  395. + [[ 1 -eq 0 ]]
  396. + return 0
  397. + case "$mode" in
  398. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  399. + rp_isInstalled mupen64plus
  400. + local id=mupen64plus
  401. + local md_inst=/opt/retropie/emulators/mupen64plus
  402. + [[ -d /opt/retropie/emulators/mupen64plus ]]
  403. + return 0
  404. + rp_loadPackageInfo mupen64plus pkg_origin
  405. + local id=mupen64plus
  406. + [[ '' -eq 1 ]]
  407. + local keys
  408. + local cache=1
  409. + [[ -z pkg_origin ]]
  410. + shift
  411. + keys=("$@")
  412. + cache=0
  413. + local load=0
  414. ++ rp_getInstallPath mupen64plus
  415. ++ local id=mupen64plus
  416. ++ echo /opt/retropie/emulators/mupen64plus
  417. + local pkg_file=/opt/retropie/emulators/mupen64plus/retropie.pkg
  418. + [[ -f /opt/retropie/emulators/mupen64plus/retropie.pkg ]]
  419. + load=1
  420. + local key
  421. + local data
  422. + for key in "${keys[@]}"
  423. + data=
  424. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  425. + data=unknown
  426. + __mod_info[$id/$key]=unknown
  427. + [[ 1 -eq 1 ]]
  428. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/emulators/mupen64plus/retropie.pkg
  429. + data=binary
  430. + [[ -n binary ]]
  431. + __mod_info[$id/$key]=binary
  432. + [[ 0 -eq 1 ]]
  433. + local pkg_origin=binary
  434. + local has_binary=0
  435. + local has_net=0
  436. ++ getIPAddress
  437. ++ local dev=
  438. ++ local ip_route
  439. +++ ip -4 route get 8.8.8.8
  440. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  441. cache '
  442. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  443. cache ]]
  444. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  445. cache ]]
  446. ++ grep -oP 'src \K[^\s]+'
  447. + local ip=192.168.2.5
  448. + [[ -n 192.168.2.5 ]]
  449. + has_net=1
  450. + hasFlag '' nonet
  451. + local string=
  452. + local flag=nonet
  453. + [[ -z '' ]]
  454. + return 1
  455. + [[ 1 -eq 1 ]]
  456. + rp_hasBinary mupen64plus
  457. + local id=mupen64plus
  458. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  459. ++ rp_getBinaryUrl mupen64plus
  460. ++ local id=mupen64plus
  461. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
  462. ++ fnExists install_bin_mupen64plus
  463. ++ declare -f install_bin_mupen64plus
  464. ++ return 1
  465. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
  466. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
  467. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz == \n\o\t\e\s\t ]]
  468. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz ]]
  469. + [[ -n '' ]]
  470. + local ret=1
  471. + rp_hasBinaries
  472. + [[ 1 -eq 1 ]]
  473. + return 0
  474. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
  475. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
  476. + local ret
  477. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/emulators/mupen64plus.tar.gz
  478. + ret=28
  479. + [[ 28 -eq 0 ]]
  480. + [[ 28 -eq 22 ]]
  481. + return 2
  482. + ret=2
  483. + [[ 2 -ne 2 ]]
  484. + return 2
  485. + local ret=2
  486. + [[ 2 -eq 0 ]]
  487. + [[ 2 -eq 2 ]]
  488. + has_net=0
  489. + [[ 0 -eq 0 ]]
  490. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  491. + return 1
  492. + return 1
  493. + for id in ${__mod_id[@]}
  494. + rp_isInstalled np2pi
  495. + local id=np2pi
  496. + local md_inst=/opt/retropie/emulators/np2pi
  497. + [[ -d /opt/retropie/emulators/np2pi ]]
  498. + return 1
  499. + for id in ${__mod_id[@]}
  500. + rp_isInstalled openmsx
  501. + local id=openmsx
  502. + local md_inst=/opt/retropie/emulators/openmsx
  503. + [[ -d /opt/retropie/emulators/openmsx ]]
  504. + return 1
  505. + for id in ${__mod_id[@]}
  506. + rp_isInstalled oricutron
  507. + local id=oricutron
  508. + local md_inst=/opt/retropie/emulators/oricutron
  509. + [[ -d /opt/retropie/emulators/oricutron ]]
  510. + return 1
  511. + for id in ${__mod_id[@]}
  512. + rp_isInstalled osmose
  513. + local id=osmose
  514. + local md_inst=/opt/retropie/emulators/osmose
  515. + [[ -d /opt/retropie/emulators/osmose ]]
  516. + return 1
  517. + for id in ${__mod_id[@]}
  518. + rp_isInstalled pcsx2
  519. + local id=pcsx2
  520. + local md_inst=/opt/retropie/emulators/pcsx2
  521. + [[ -d /opt/retropie/emulators/pcsx2 ]]
  522. + return 1
  523. + for id in ${__mod_id[@]}
  524. + rp_isInstalled pcsx-rearmed
  525. + local id=pcsx-rearmed
  526. + local md_inst=/opt/retropie/emulators/pcsx-rearmed
  527. + [[ -d /opt/retropie/emulators/pcsx-rearmed ]]
  528. + return 1
  529. + for id in ${__mod_id[@]}
  530. + rp_isInstalled pifba
  531. + local id=pifba
  532. + local md_inst=/opt/retropie/emulators/pifba
  533. + [[ -d /opt/retropie/emulators/pifba ]]
  534. + return 1
  535. + for id in ${__mod_id[@]}
  536. + rp_isInstalled pisnes
  537. + local id=pisnes
  538. + local md_inst=/opt/retropie/emulators/pisnes
  539. + [[ -d /opt/retropie/emulators/pisnes ]]
  540. + return 1
  541. + for id in ${__mod_id[@]}
  542. + rp_isInstalled ppsspp-1.5.4
  543. + local id=ppsspp-1.5.4
  544. + local md_inst=/opt/retropie/emulators/ppsspp-1.5.4
  545. + [[ -d /opt/retropie/emulators/ppsspp-1.5.4 ]]
  546. + return 1
  547. + for id in ${__mod_id[@]}
  548. + rp_isInstalled ppsspp
  549. + local id=ppsspp
  550. + local md_inst=/opt/retropie/emulators/ppsspp
  551. + [[ -d /opt/retropie/emulators/ppsspp ]]
  552. + return 1
  553. + for id in ${__mod_id[@]}
  554. + rp_isInstalled px68k
  555. + local id=px68k
  556. + local md_inst=/opt/retropie/emulators/px68k
  557. + [[ -d /opt/retropie/emulators/px68k ]]
  558. + return 1
  559. + for id in ${__mod_id[@]}
  560. + rp_isInstalled quasi88
  561. + local id=quasi88
  562. + local md_inst=/opt/retropie/emulators/quasi88
  563. + [[ -d /opt/retropie/emulators/quasi88 ]]
  564. + return 1
  565. + for id in ${__mod_id[@]}
  566. + rp_isInstalled redream
  567. + local id=redream
  568. + local md_inst=/opt/retropie/emulators/redream
  569. + [[ -d /opt/retropie/emulators/redream ]]
  570. + return 1
  571. + for id in ${__mod_id[@]}
  572. + rp_isInstalled reicast
  573. + local id=reicast
  574. + local md_inst=/opt/retropie/emulators/reicast
  575. + [[ -d /opt/retropie/emulators/reicast ]]
  576. + return 1
  577. + for id in ${__mod_id[@]}
  578. + rp_isInstalled residualvm
  579. + local id=residualvm
  580. + local md_inst=/opt/retropie/emulators/residualvm
  581. + [[ -d /opt/retropie/emulators/residualvm ]]
  582. + return 1
  583. + for id in ${__mod_id[@]}
  584. + rp_isInstalled retroarch
  585. + local id=retroarch
  586. + local md_inst=/opt/retropie/emulators/retroarch
  587. + [[ -d /opt/retropie/emulators/retroarch ]]
  588. + return 0
  589. + [[ core != \d\e\p\e\n\d\s ]]
  590. + rp_installModule retroarch _update_
  591. + local id=retroarch
  592. + local mode=_update_
  593. + [[ -z _update_ ]]
  594. + rp_callModule retroarch _update_
  595. + local md_id=retroarch
  596. + local mode=_update_
  597. + shift 2
  598. + rp_hasModule retroarch
  599. + local id=retroarch
  600. + [[ -n 43 ]]
  601. + return 0
  602. + rp_isEnabled retroarch
  603. + local id=retroarch
  604. + [[ 1 -eq 0 ]]
  605. + return 0
  606. + case "$mode" in
  607. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  608. + rp_isInstalled retroarch
  609. + local id=retroarch
  610. + local md_inst=/opt/retropie/emulators/retroarch
  611. + [[ -d /opt/retropie/emulators/retroarch ]]
  612. + return 0
  613. + rp_loadPackageInfo retroarch pkg_origin
  614. + local id=retroarch
  615. + [[ '' -eq 1 ]]
  616. + local keys
  617. + local cache=1
  618. + [[ -z pkg_origin ]]
  619. + shift
  620. + keys=("$@")
  621. + cache=0
  622. + local load=0
  623. ++ rp_getInstallPath retroarch
  624. ++ local id=retroarch
  625. ++ echo /opt/retropie/emulators/retroarch
  626. + local pkg_file=/opt/retropie/emulators/retroarch/retropie.pkg
  627. + [[ -f /opt/retropie/emulators/retroarch/retropie.pkg ]]
  628. + load=1
  629. + local key
  630. + local data
  631. + for key in "${keys[@]}"
  632. + data=
  633. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  634. + data=unknown
  635. + __mod_info[$id/$key]=unknown
  636. + [[ 1 -eq 1 ]]
  637. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/emulators/retroarch/retropie.pkg
  638. + data=binary
  639. + [[ -n binary ]]
  640. + __mod_info[$id/$key]=binary
  641. + [[ 0 -eq 1 ]]
  642. + local pkg_origin=binary
  643. + local has_binary=0
  644. + local has_net=0
  645. ++ getIPAddress
  646. ++ local dev=
  647. ++ local ip_route
  648. +++ ip -4 route get 8.8.8.8
  649. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  650. cache '
  651. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  652. cache ]]
  653. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  654. cache ]]
  655. ++ grep -oP 'src \K[^\s]+'
  656. + local ip=192.168.2.5
  657. + [[ -n 192.168.2.5 ]]
  658. + has_net=1
  659. + hasFlag '' nonet
  660. + local string=
  661. + local flag=nonet
  662. + [[ -z '' ]]
  663. + return 1
  664. + [[ 1 -eq 1 ]]
  665. + rp_hasBinary retroarch
  666. + local id=retroarch
  667. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  668. ++ rp_getBinaryUrl retroarch
  669. ++ local id=retroarch
  670. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
  671. ++ fnExists install_bin_retroarch
  672. ++ declare -f install_bin_retroarch
  673. ++ return 1
  674. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
  675. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
  676. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz == \n\o\t\e\s\t ]]
  677. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz ]]
  678. + [[ -n '' ]]
  679. + local ret=1
  680. + rp_hasBinaries
  681. + [[ 1 -eq 1 ]]
  682. + return 0
  683. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
  684. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
  685. + local ret
  686. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/emulators/retroarch.tar.gz
  687. + ret=28
  688. + [[ 28 -eq 0 ]]
  689. + [[ 28 -eq 22 ]]
  690. + return 2
  691. + ret=2
  692. + [[ 2 -ne 2 ]]
  693. + return 2
  694. + local ret=2
  695. + [[ 2 -eq 0 ]]
  696. + [[ 2 -eq 2 ]]
  697. + has_net=0
  698. + [[ 0 -eq 0 ]]
  699. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  700. + return 1
  701. + return 1
  702. + for id in ${__mod_id[@]}
  703. + rp_isInstalled rpix86
  704. + local id=rpix86
  705. + local md_inst=/opt/retropie/emulators/rpix86
  706. + [[ -d /opt/retropie/emulators/rpix86 ]]
  707. + return 1
  708. + for id in ${__mod_id[@]}
  709. + rp_isInstalled scummvm-sdl1
  710. + local id=scummvm-sdl1
  711. + local md_inst=/opt/retropie/emulators/scummvm-sdl1
  712. + [[ -d /opt/retropie/emulators/scummvm-sdl1 ]]
  713. + return 1
  714. + for id in ${__mod_id[@]}
  715. + rp_isInstalled scummvm
  716. + local id=scummvm
  717. + local md_inst=/opt/retropie/emulators/scummvm
  718. + [[ -d /opt/retropie/emulators/scummvm ]]
  719. + return 1
  720. + for id in ${__mod_id[@]}
  721. + rp_isInstalled sdltrs
  722. + local id=sdltrs
  723. + local md_inst=/opt/retropie/emulators/sdltrs
  724. + [[ -d /opt/retropie/emulators/sdltrs ]]
  725. + return 1
  726. + for id in ${__mod_id[@]}
  727. + rp_isInstalled simcoupe
  728. + local id=simcoupe
  729. + local md_inst=/opt/retropie/emulators/simcoupe
  730. + [[ -d /opt/retropie/emulators/simcoupe ]]
  731. + return 1
  732. + for id in ${__mod_id[@]}
  733. + rp_isInstalled snes9x
  734. + local id=snes9x
  735. + local md_inst=/opt/retropie/emulators/snes9x
  736. + [[ -d /opt/retropie/emulators/snes9x ]]
  737. + return 1
  738. + for id in ${__mod_id[@]}
  739. + rp_isInstalled stella
  740. + local id=stella
  741. + local md_inst=/opt/retropie/emulators/stella
  742. + [[ -d /opt/retropie/emulators/stella ]]
  743. + return 1
  744. + for id in ${__mod_id[@]}
  745. + rp_isInstalled stratagus
  746. + local id=stratagus
  747. + local md_inst=/opt/retropie/emulators/stratagus
  748. + [[ -d /opt/retropie/emulators/stratagus ]]
  749. + return 1
  750. + for id in ${__mod_id[@]}
  751. + rp_isInstalled ti99sim-sdl1
  752. + local id=ti99sim-sdl1
  753. + local md_inst=/opt/retropie/emulators/ti99sim-sdl1
  754. + [[ -d /opt/retropie/emulators/ti99sim-sdl1 ]]
  755. + return 1
  756. + for id in ${__mod_id[@]}
  757. + rp_isInstalled ti99sim
  758. + local id=ti99sim
  759. + local md_inst=/opt/retropie/emulators/ti99sim
  760. + [[ -d /opt/retropie/emulators/ti99sim ]]
  761. + return 1
  762. + for id in ${__mod_id[@]}
  763. + rp_isInstalled uae4all
  764. + local id=uae4all
  765. + local md_inst=/opt/retropie/emulators/uae4all
  766. + [[ -d /opt/retropie/emulators/uae4all ]]
  767. + return 1
  768. + for id in ${__mod_id[@]}
  769. + rp_isInstalled uae4arm
  770. + local id=uae4arm
  771. + local md_inst=/opt/retropie/emulators/uae4arm
  772. + [[ -d /opt/retropie/emulators/uae4arm ]]
  773. + return 1
  774. + for id in ${__mod_id[@]}
  775. + rp_isInstalled vice
  776. + local id=vice
  777. + local md_inst=/opt/retropie/emulators/vice
  778. + [[ -d /opt/retropie/emulators/vice ]]
  779. + return 1
  780. + for id in ${__mod_id[@]}
  781. + rp_isInstalled xm7
  782. + local id=xm7
  783. + local md_inst=/opt/retropie/emulators/xm7
  784. + [[ -d /opt/retropie/emulators/xm7 ]]
  785. + return 1
  786. + for id in ${__mod_id[@]}
  787. + rp_isInstalled xroar
  788. + local id=xroar
  789. + local md_inst=/opt/retropie/emulators/xroar
  790. + [[ -d /opt/retropie/emulators/xroar ]]
  791. + return 1
  792. + for id in ${__mod_id[@]}
  793. + rp_isInstalled zesarux
  794. + local id=zesarux
  795. + local md_inst=/opt/retropie/emulators/zesarux
  796. + [[ -d /opt/retropie/emulators/zesarux ]]
  797. + return 1
  798. + for id in ${__mod_id[@]}
  799. + rp_isInstalled lr-81
  800. + local id=lr-81
  801. + local md_inst=/opt/retropie/libretrocores/lr-81
  802. + [[ -d /opt/retropie/libretrocores/lr-81 ]]
  803. + return 1
  804. + for id in ${__mod_id[@]}
  805. + rp_isInstalled lr-atari800
  806. + local id=lr-atari800
  807. + local md_inst=/opt/retropie/libretrocores/lr-atari800
  808. + [[ -d /opt/retropie/libretrocores/lr-atari800 ]]
  809. + return 0
  810. + [[ main != \d\e\p\e\n\d\s ]]
  811. + rp_installModule lr-atari800 _update_
  812. + local id=lr-atari800
  813. + local mode=_update_
  814. + [[ -z _update_ ]]
  815. + rp_callModule lr-atari800 _update_
  816. + local md_id=lr-atari800
  817. + local mode=_update_
  818. + shift 2
  819. + rp_hasModule lr-atari800
  820. + local id=lr-atari800
  821. + [[ -n 61 ]]
  822. + return 0
  823. + rp_isEnabled lr-atari800
  824. + local id=lr-atari800
  825. + [[ 1 -eq 0 ]]
  826. + return 0
  827. + case "$mode" in
  828. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  829. + rp_isInstalled lr-atari800
  830. + local id=lr-atari800
  831. + local md_inst=/opt/retropie/libretrocores/lr-atari800
  832. + [[ -d /opt/retropie/libretrocores/lr-atari800 ]]
  833. + return 0
  834. + rp_loadPackageInfo lr-atari800 pkg_origin
  835. + local id=lr-atari800
  836. + [[ '' -eq 1 ]]
  837. + local keys
  838. + local cache=1
  839. + [[ -z pkg_origin ]]
  840. + shift
  841. + keys=("$@")
  842. + cache=0
  843. + local load=0
  844. ++ rp_getInstallPath lr-atari800
  845. ++ local id=lr-atari800
  846. ++ echo /opt/retropie/libretrocores/lr-atari800
  847. + local pkg_file=/opt/retropie/libretrocores/lr-atari800/retropie.pkg
  848. + [[ -f /opt/retropie/libretrocores/lr-atari800/retropie.pkg ]]
  849. + load=1
  850. + local key
  851. + local data
  852. + for key in "${keys[@]}"
  853. + data=
  854. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  855. + data=unknown
  856. + __mod_info[$id/$key]=unknown
  857. + [[ 1 -eq 1 ]]
  858. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-atari800/retropie.pkg
  859. + data=binary
  860. + [[ -n binary ]]
  861. + __mod_info[$id/$key]=binary
  862. + [[ 0 -eq 1 ]]
  863. + local pkg_origin=binary
  864. + local has_binary=0
  865. + local has_net=0
  866. ++ getIPAddress
  867. ++ local dev=
  868. ++ local ip_route
  869. +++ ip -4 route get 8.8.8.8
  870. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  871. cache '
  872. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  873. cache ]]
  874. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  875. cache ]]
  876. ++ grep -oP 'src \K[^\s]+'
  877. + local ip=192.168.2.5
  878. + [[ -n 192.168.2.5 ]]
  879. + has_net=1
  880. + hasFlag '' nonet
  881. + local string=
  882. + local flag=nonet
  883. + [[ -z '' ]]
  884. + return 1
  885. + [[ 1 -eq 1 ]]
  886. + rp_hasBinary lr-atari800
  887. + local id=lr-atari800
  888. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  889. ++ rp_getBinaryUrl lr-atari800
  890. ++ local id=lr-atari800
  891. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
  892. ++ fnExists install_bin_lr-atari800
  893. ++ declare -f install_bin_lr-atari800
  894. ++ return 1
  895. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
  896. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
  897. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz == \n\o\t\e\s\t ]]
  898. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz ]]
  899. + [[ -n '' ]]
  900. + local ret=1
  901. + rp_hasBinaries
  902. + [[ 1 -eq 1 ]]
  903. + return 0
  904. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
  905. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
  906. + local ret
  907. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-atari800.tar.gz
  908. + ret=28
  909. + [[ 28 -eq 0 ]]
  910. + [[ 28 -eq 22 ]]
  911. + return 2
  912. + ret=2
  913. + [[ 2 -ne 2 ]]
  914. + return 2
  915. + local ret=2
  916. + [[ 2 -eq 0 ]]
  917. + [[ 2 -eq 2 ]]
  918. + has_net=0
  919. + [[ 0 -eq 0 ]]
  920. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  921. + return 1
  922. + return 1
  923. + for id in ${__mod_id[@]}
  924. + rp_isInstalled lr-beetle-lynx
  925. + local id=lr-beetle-lynx
  926. + local md_inst=/opt/retropie/libretrocores/lr-beetle-lynx
  927. + [[ -d /opt/retropie/libretrocores/lr-beetle-lynx ]]
  928. + return 1
  929. + for id in ${__mod_id[@]}
  930. + rp_isInstalled lr-beetle-ngp
  931. + local id=lr-beetle-ngp
  932. + local md_inst=/opt/retropie/libretrocores/lr-beetle-ngp
  933. + [[ -d /opt/retropie/libretrocores/lr-beetle-ngp ]]
  934. + return 0
  935. + [[ main != \d\e\p\e\n\d\s ]]
  936. + rp_installModule lr-beetle-ngp _update_
  937. + local id=lr-beetle-ngp
  938. + local mode=_update_
  939. + [[ -z _update_ ]]
  940. + rp_callModule lr-beetle-ngp _update_
  941. + local md_id=lr-beetle-ngp
  942. + local mode=_update_
  943. + shift 2
  944. + rp_hasModule lr-beetle-ngp
  945. + local id=lr-beetle-ngp
  946. + [[ -n 63 ]]
  947. + return 0
  948. + rp_isEnabled lr-beetle-ngp
  949. + local id=lr-beetle-ngp
  950. + [[ 1 -eq 0 ]]
  951. + return 0
  952. + case "$mode" in
  953. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  954. + rp_isInstalled lr-beetle-ngp
  955. + local id=lr-beetle-ngp
  956. + local md_inst=/opt/retropie/libretrocores/lr-beetle-ngp
  957. + [[ -d /opt/retropie/libretrocores/lr-beetle-ngp ]]
  958. + return 0
  959. + rp_loadPackageInfo lr-beetle-ngp pkg_origin
  960. + local id=lr-beetle-ngp
  961. + [[ '' -eq 1 ]]
  962. + local keys
  963. + local cache=1
  964. + [[ -z pkg_origin ]]
  965. + shift
  966. + keys=("$@")
  967. + cache=0
  968. + local load=0
  969. ++ rp_getInstallPath lr-beetle-ngp
  970. ++ local id=lr-beetle-ngp
  971. ++ echo /opt/retropie/libretrocores/lr-beetle-ngp
  972. + local pkg_file=/opt/retropie/libretrocores/lr-beetle-ngp/retropie.pkg
  973. + [[ -f /opt/retropie/libretrocores/lr-beetle-ngp/retropie.pkg ]]
  974. + load=1
  975. + local key
  976. + local data
  977. + for key in "${keys[@]}"
  978. + data=
  979. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  980. + data=unknown
  981. + __mod_info[$id/$key]=unknown
  982. + [[ 1 -eq 1 ]]
  983. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-beetle-ngp/retropie.pkg
  984. + data=binary
  985. + [[ -n binary ]]
  986. + __mod_info[$id/$key]=binary
  987. + [[ 0 -eq 1 ]]
  988. + local pkg_origin=binary
  989. + local has_binary=0
  990. + local has_net=0
  991. ++ getIPAddress
  992. ++ local dev=
  993. ++ local ip_route
  994. +++ ip -4 route get 8.8.8.8
  995. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  996. cache '
  997. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  998. cache ]]
  999. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1000. cache ]]
  1001. ++ grep -oP 'src \K[^\s]+'
  1002. + local ip=192.168.2.5
  1003. + [[ -n 192.168.2.5 ]]
  1004. + has_net=1
  1005. + hasFlag '' nonet
  1006. + local string=
  1007. + local flag=nonet
  1008. + [[ -z '' ]]
  1009. + return 1
  1010. + [[ 1 -eq 1 ]]
  1011. + rp_hasBinary lr-beetle-ngp
  1012. + local id=lr-beetle-ngp
  1013. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  1014. ++ rp_getBinaryUrl lr-beetle-ngp
  1015. ++ local id=lr-beetle-ngp
  1016. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
  1017. ++ fnExists install_bin_lr-beetle-ngp
  1018. ++ declare -f install_bin_lr-beetle-ngp
  1019. ++ return 1
  1020. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
  1021. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
  1022. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz == \n\o\t\e\s\t ]]
  1023. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz ]]
  1024. + [[ -n '' ]]
  1025. + local ret=1
  1026. + rp_hasBinaries
  1027. + [[ 1 -eq 1 ]]
  1028. + return 0
  1029. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
  1030. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
  1031. + local ret
  1032. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-ngp.tar.gz
  1033. + ret=28
  1034. + [[ 28 -eq 0 ]]
  1035. + [[ 28 -eq 22 ]]
  1036. + return 2
  1037. + ret=2
  1038. + [[ 2 -ne 2 ]]
  1039. + return 2
  1040. + local ret=2
  1041. + [[ 2 -eq 0 ]]
  1042. + [[ 2 -eq 2 ]]
  1043. + has_net=0
  1044. + [[ 0 -eq 0 ]]
  1045. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  1046. + return 1
  1047. + return 1
  1048. + for id in ${__mod_id[@]}
  1049. + rp_isInstalled lr-beetle-pce-fast
  1050. + local id=lr-beetle-pce-fast
  1051. + local md_inst=/opt/retropie/libretrocores/lr-beetle-pce-fast
  1052. + [[ -d /opt/retropie/libretrocores/lr-beetle-pce-fast ]]
  1053. + return 0
  1054. + [[ main != \d\e\p\e\n\d\s ]]
  1055. + rp_installModule lr-beetle-pce-fast _update_
  1056. + local id=lr-beetle-pce-fast
  1057. + local mode=_update_
  1058. + [[ -z _update_ ]]
  1059. + rp_callModule lr-beetle-pce-fast _update_
  1060. + local md_id=lr-beetle-pce-fast
  1061. + local mode=_update_
  1062. + shift 2
  1063. + rp_hasModule lr-beetle-pce-fast
  1064. + local id=lr-beetle-pce-fast
  1065. + [[ -n 64 ]]
  1066. + return 0
  1067. + rp_isEnabled lr-beetle-pce-fast
  1068. + local id=lr-beetle-pce-fast
  1069. + [[ 1 -eq 0 ]]
  1070. + return 0
  1071. + case "$mode" in
  1072. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  1073. + rp_isInstalled lr-beetle-pce-fast
  1074. + local id=lr-beetle-pce-fast
  1075. + local md_inst=/opt/retropie/libretrocores/lr-beetle-pce-fast
  1076. + [[ -d /opt/retropie/libretrocores/lr-beetle-pce-fast ]]
  1077. + return 0
  1078. + rp_loadPackageInfo lr-beetle-pce-fast pkg_origin
  1079. + local id=lr-beetle-pce-fast
  1080. + [[ '' -eq 1 ]]
  1081. + local keys
  1082. + local cache=1
  1083. + [[ -z pkg_origin ]]
  1084. + shift
  1085. + keys=("$@")
  1086. + cache=0
  1087. + local load=0
  1088. ++ rp_getInstallPath lr-beetle-pce-fast
  1089. ++ local id=lr-beetle-pce-fast
  1090. ++ echo /opt/retropie/libretrocores/lr-beetle-pce-fast
  1091. + local pkg_file=/opt/retropie/libretrocores/lr-beetle-pce-fast/retropie.pkg
  1092. + [[ -f /opt/retropie/libretrocores/lr-beetle-pce-fast/retropie.pkg ]]
  1093. + load=1
  1094. + local key
  1095. + local data
  1096. + for key in "${keys[@]}"
  1097. + data=
  1098. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  1099. + data=unknown
  1100. + __mod_info[$id/$key]=unknown
  1101. + [[ 1 -eq 1 ]]
  1102. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-beetle-pce-fast/retropie.pkg
  1103. + data=binary
  1104. + [[ -n binary ]]
  1105. + __mod_info[$id/$key]=binary
  1106. + [[ 0 -eq 1 ]]
  1107. + local pkg_origin=binary
  1108. + local has_binary=0
  1109. + local has_net=0
  1110. ++ getIPAddress
  1111. ++ local dev=
  1112. ++ local ip_route
  1113. +++ ip -4 route get 8.8.8.8
  1114. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1115. cache '
  1116. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1117. cache ]]
  1118. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1119. cache ]]
  1120. ++ grep -oP 'src \K[^\s]+'
  1121. + local ip=192.168.2.5
  1122. + [[ -n 192.168.2.5 ]]
  1123. + has_net=1
  1124. + hasFlag '' nonet
  1125. + local string=
  1126. + local flag=nonet
  1127. + [[ -z '' ]]
  1128. + return 1
  1129. + [[ 1 -eq 1 ]]
  1130. + rp_hasBinary lr-beetle-pce-fast
  1131. + local id=lr-beetle-pce-fast
  1132. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  1133. ++ rp_getBinaryUrl lr-beetle-pce-fast
  1134. ++ local id=lr-beetle-pce-fast
  1135. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
  1136. ++ fnExists install_bin_lr-beetle-pce-fast
  1137. ++ declare -f install_bin_lr-beetle-pce-fast
  1138. ++ return 1
  1139. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
  1140. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
  1141. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz == \n\o\t\e\s\t ]]
  1142. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz ]]
  1143. + [[ -n '' ]]
  1144. + local ret=1
  1145. + rp_hasBinaries
  1146. + [[ 1 -eq 1 ]]
  1147. + return 0
  1148. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
  1149. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
  1150. + local ret
  1151. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-pce-fast.tar.gz
  1152. + ret=28
  1153. + [[ 28 -eq 0 ]]
  1154. + [[ 28 -eq 22 ]]
  1155. + return 2
  1156. + ret=2
  1157. + [[ 2 -ne 2 ]]
  1158. + return 2
  1159. + local ret=2
  1160. + [[ 2 -eq 0 ]]
  1161. + [[ 2 -eq 2 ]]
  1162. + has_net=0
  1163. + [[ 0 -eq 0 ]]
  1164. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  1165. + return 1
  1166. + return 1
  1167. + for id in ${__mod_id[@]}
  1168. + rp_isInstalled lr-beetle-pcfx
  1169. + local id=lr-beetle-pcfx
  1170. + local md_inst=/opt/retropie/libretrocores/lr-beetle-pcfx
  1171. + [[ -d /opt/retropie/libretrocores/lr-beetle-pcfx ]]
  1172. + return 1
  1173. + for id in ${__mod_id[@]}
  1174. + rp_isInstalled lr-beetle-psx
  1175. + local id=lr-beetle-psx
  1176. + local md_inst=/opt/retropie/libretrocores/lr-beetle-psx
  1177. + [[ -d /opt/retropie/libretrocores/lr-beetle-psx ]]
  1178. + return 1
  1179. + for id in ${__mod_id[@]}
  1180. + rp_isInstalled lr-beetle-saturn
  1181. + local id=lr-beetle-saturn
  1182. + local md_inst=/opt/retropie/libretrocores/lr-beetle-saturn
  1183. + [[ -d /opt/retropie/libretrocores/lr-beetle-saturn ]]
  1184. + return 1
  1185. + for id in ${__mod_id[@]}
  1186. + rp_isInstalled lr-beetle-supergrafx
  1187. + local id=lr-beetle-supergrafx
  1188. + local md_inst=/opt/retropie/libretrocores/lr-beetle-supergrafx
  1189. + [[ -d /opt/retropie/libretrocores/lr-beetle-supergrafx ]]
  1190. + return 0
  1191. + [[ main != \d\e\p\e\n\d\s ]]
  1192. + rp_installModule lr-beetle-supergrafx _update_
  1193. + local id=lr-beetle-supergrafx
  1194. + local mode=_update_
  1195. + [[ -z _update_ ]]
  1196. + rp_callModule lr-beetle-supergrafx _update_
  1197. + local md_id=lr-beetle-supergrafx
  1198. + local mode=_update_
  1199. + shift 2
  1200. + rp_hasModule lr-beetle-supergrafx
  1201. + local id=lr-beetle-supergrafx
  1202. + [[ -n 68 ]]
  1203. + return 0
  1204. + rp_isEnabled lr-beetle-supergrafx
  1205. + local id=lr-beetle-supergrafx
  1206. + [[ 1 -eq 0 ]]
  1207. + return 0
  1208. + case "$mode" in
  1209. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  1210. + rp_isInstalled lr-beetle-supergrafx
  1211. + local id=lr-beetle-supergrafx
  1212. + local md_inst=/opt/retropie/libretrocores/lr-beetle-supergrafx
  1213. + [[ -d /opt/retropie/libretrocores/lr-beetle-supergrafx ]]
  1214. + return 0
  1215. + rp_loadPackageInfo lr-beetle-supergrafx pkg_origin
  1216. + local id=lr-beetle-supergrafx
  1217. + [[ '' -eq 1 ]]
  1218. + local keys
  1219. + local cache=1
  1220. + [[ -z pkg_origin ]]
  1221. + shift
  1222. + keys=("$@")
  1223. + cache=0
  1224. + local load=0
  1225. ++ rp_getInstallPath lr-beetle-supergrafx
  1226. ++ local id=lr-beetle-supergrafx
  1227. ++ echo /opt/retropie/libretrocores/lr-beetle-supergrafx
  1228. + local pkg_file=/opt/retropie/libretrocores/lr-beetle-supergrafx/retropie.pkg
  1229. + [[ -f /opt/retropie/libretrocores/lr-beetle-supergrafx/retropie.pkg ]]
  1230. + load=1
  1231. + local key
  1232. + local data
  1233. + for key in "${keys[@]}"
  1234. + data=
  1235. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  1236. + data=unknown
  1237. + __mod_info[$id/$key]=unknown
  1238. + [[ 1 -eq 1 ]]
  1239. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-beetle-supergrafx/retropie.pkg
  1240. + data=binary
  1241. + [[ -n binary ]]
  1242. + __mod_info[$id/$key]=binary
  1243. + [[ 0 -eq 1 ]]
  1244. + local pkg_origin=binary
  1245. + local has_binary=0
  1246. + local has_net=0
  1247. ++ getIPAddress
  1248. ++ local dev=
  1249. ++ local ip_route
  1250. +++ ip -4 route get 8.8.8.8
  1251. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1252. cache '
  1253. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1254. cache ]]
  1255. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1256. cache ]]
  1257. ++ grep -oP 'src \K[^\s]+'
  1258. + local ip=192.168.2.5
  1259. + [[ -n 192.168.2.5 ]]
  1260. + has_net=1
  1261. + hasFlag '' nonet
  1262. + local string=
  1263. + local flag=nonet
  1264. + [[ -z '' ]]
  1265. + return 1
  1266. + [[ 1 -eq 1 ]]
  1267. + rp_hasBinary lr-beetle-supergrafx
  1268. + local id=lr-beetle-supergrafx
  1269. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  1270. ++ rp_getBinaryUrl lr-beetle-supergrafx
  1271. ++ local id=lr-beetle-supergrafx
  1272. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
  1273. ++ fnExists install_bin_lr-beetle-supergrafx
  1274. ++ declare -f install_bin_lr-beetle-supergrafx
  1275. ++ return 1
  1276. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
  1277. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
  1278. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz == \n\o\t\e\s\t ]]
  1279. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz ]]
  1280. + [[ -n '' ]]
  1281. + local ret=1
  1282. + rp_hasBinaries
  1283. + [[ 1 -eq 1 ]]
  1284. + return 0
  1285. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
  1286. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
  1287. + local ret
  1288. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-supergrafx.tar.gz
  1289. + ret=28
  1290. + [[ 28 -eq 0 ]]
  1291. + [[ 28 -eq 22 ]]
  1292. + return 2
  1293. + ret=2
  1294. + [[ 2 -ne 2 ]]
  1295. + return 2
  1296. + local ret=2
  1297. + [[ 2 -eq 0 ]]
  1298. + [[ 2 -eq 2 ]]
  1299. + has_net=0
  1300. + [[ 0 -eq 0 ]]
  1301. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  1302. + return 1
  1303. + return 1
  1304. + for id in ${__mod_id[@]}
  1305. + rp_isInstalled lr-beetle-vb
  1306. + local id=lr-beetle-vb
  1307. + local md_inst=/opt/retropie/libretrocores/lr-beetle-vb
  1308. + [[ -d /opt/retropie/libretrocores/lr-beetle-vb ]]
  1309. + return 0
  1310. + [[ opt != \d\e\p\e\n\d\s ]]
  1311. + rp_installModule lr-beetle-vb _update_
  1312. + local id=lr-beetle-vb
  1313. + local mode=_update_
  1314. + [[ -z _update_ ]]
  1315. + rp_callModule lr-beetle-vb _update_
  1316. + local md_id=lr-beetle-vb
  1317. + local mode=_update_
  1318. + shift 2
  1319. + rp_hasModule lr-beetle-vb
  1320. + local id=lr-beetle-vb
  1321. + [[ -n 69 ]]
  1322. + return 0
  1323. + rp_isEnabled lr-beetle-vb
  1324. + local id=lr-beetle-vb
  1325. + [[ 1 -eq 0 ]]
  1326. + return 0
  1327. + case "$mode" in
  1328. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  1329. + rp_isInstalled lr-beetle-vb
  1330. + local id=lr-beetle-vb
  1331. + local md_inst=/opt/retropie/libretrocores/lr-beetle-vb
  1332. + [[ -d /opt/retropie/libretrocores/lr-beetle-vb ]]
  1333. + return 0
  1334. + rp_loadPackageInfo lr-beetle-vb pkg_origin
  1335. + local id=lr-beetle-vb
  1336. + [[ '' -eq 1 ]]
  1337. + local keys
  1338. + local cache=1
  1339. + [[ -z pkg_origin ]]
  1340. + shift
  1341. + keys=("$@")
  1342. + cache=0
  1343. + local load=0
  1344. ++ rp_getInstallPath lr-beetle-vb
  1345. ++ local id=lr-beetle-vb
  1346. ++ echo /opt/retropie/libretrocores/lr-beetle-vb
  1347. + local pkg_file=/opt/retropie/libretrocores/lr-beetle-vb/retropie.pkg
  1348. + [[ -f /opt/retropie/libretrocores/lr-beetle-vb/retropie.pkg ]]
  1349. + load=1
  1350. + local key
  1351. + local data
  1352. + for key in "${keys[@]}"
  1353. + data=
  1354. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  1355. + data=unknown
  1356. + __mod_info[$id/$key]=unknown
  1357. + [[ 1 -eq 1 ]]
  1358. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-beetle-vb/retropie.pkg
  1359. + data=binary
  1360. + [[ -n binary ]]
  1361. + __mod_info[$id/$key]=binary
  1362. + [[ 0 -eq 1 ]]
  1363. + local pkg_origin=binary
  1364. + local has_binary=0
  1365. + local has_net=0
  1366. ++ getIPAddress
  1367. ++ local dev=
  1368. ++ local ip_route
  1369. +++ ip -4 route get 8.8.8.8
  1370. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1371. cache '
  1372. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1373. cache ]]
  1374. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1375. cache ]]
  1376. ++ grep -oP 'src \K[^\s]+'
  1377. + local ip=192.168.2.5
  1378. + [[ -n 192.168.2.5 ]]
  1379. + has_net=1
  1380. + hasFlag '' nonet
  1381. + local string=
  1382. + local flag=nonet
  1383. + [[ -z '' ]]
  1384. + return 1
  1385. + [[ 1 -eq 1 ]]
  1386. + rp_hasBinary lr-beetle-vb
  1387. + local id=lr-beetle-vb
  1388. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  1389. ++ rp_getBinaryUrl lr-beetle-vb
  1390. ++ local id=lr-beetle-vb
  1391. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
  1392. ++ fnExists install_bin_lr-beetle-vb
  1393. ++ declare -f install_bin_lr-beetle-vb
  1394. ++ return 1
  1395. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
  1396. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
  1397. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz == \n\o\t\e\s\t ]]
  1398. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz ]]
  1399. + [[ -n '' ]]
  1400. + local ret=1
  1401. + rp_hasBinaries
  1402. + [[ 1 -eq 1 ]]
  1403. + return 0
  1404. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
  1405. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
  1406. + local ret
  1407. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-beetle-vb.tar.gz
  1408. + ret=28
  1409. + [[ 28 -eq 0 ]]
  1410. + [[ 28 -eq 22 ]]
  1411. + return 2
  1412. + ret=2
  1413. + [[ 2 -ne 2 ]]
  1414. + return 2
  1415. + local ret=2
  1416. + [[ 2 -eq 0 ]]
  1417. + [[ 2 -eq 2 ]]
  1418. + has_net=0
  1419. + [[ 0 -eq 0 ]]
  1420. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  1421. + return 1
  1422. + return 1
  1423. + for id in ${__mod_id[@]}
  1424. + rp_isInstalled lr-beetle-wswan
  1425. + local id=lr-beetle-wswan
  1426. + local md_inst=/opt/retropie/libretrocores/lr-beetle-wswan
  1427. + [[ -d /opt/retropie/libretrocores/lr-beetle-wswan ]]
  1428. + return 1
  1429. + for id in ${__mod_id[@]}
  1430. + rp_isInstalled lr-bluemsx
  1431. + local id=lr-bluemsx
  1432. + local md_inst=/opt/retropie/libretrocores/lr-bluemsx
  1433. + [[ -d /opt/retropie/libretrocores/lr-bluemsx ]]
  1434. + return 1
  1435. + for id in ${__mod_id[@]}
  1436. + rp_isInstalled lr-bsnes
  1437. + local id=lr-bsnes
  1438. + local md_inst=/opt/retropie/libretrocores/lr-bsnes
  1439. + [[ -d /opt/retropie/libretrocores/lr-bsnes ]]
  1440. + return 1
  1441. + for id in ${__mod_id[@]}
  1442. + rp_isInstalled lr-caprice32
  1443. + local id=lr-caprice32
  1444. + local md_inst=/opt/retropie/libretrocores/lr-caprice32
  1445. + [[ -d /opt/retropie/libretrocores/lr-caprice32 ]]
  1446. + return 0
  1447. + [[ main != \d\e\p\e\n\d\s ]]
  1448. + rp_installModule lr-caprice32 _update_
  1449. + local id=lr-caprice32
  1450. + local mode=_update_
  1451. + [[ -z _update_ ]]
  1452. + rp_callModule lr-caprice32 _update_
  1453. + local md_id=lr-caprice32
  1454. + local mode=_update_
  1455. + shift 2
  1456. + rp_hasModule lr-caprice32
  1457. + local id=lr-caprice32
  1458. + [[ -n 73 ]]
  1459. + return 0
  1460. + rp_isEnabled lr-caprice32
  1461. + local id=lr-caprice32
  1462. + [[ 1 -eq 0 ]]
  1463. + return 0
  1464. + case "$mode" in
  1465. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  1466. + rp_isInstalled lr-caprice32
  1467. + local id=lr-caprice32
  1468. + local md_inst=/opt/retropie/libretrocores/lr-caprice32
  1469. + [[ -d /opt/retropie/libretrocores/lr-caprice32 ]]
  1470. + return 0
  1471. + rp_loadPackageInfo lr-caprice32 pkg_origin
  1472. + local id=lr-caprice32
  1473. + [[ '' -eq 1 ]]
  1474. + local keys
  1475. + local cache=1
  1476. + [[ -z pkg_origin ]]
  1477. + shift
  1478. + keys=("$@")
  1479. + cache=0
  1480. + local load=0
  1481. ++ rp_getInstallPath lr-caprice32
  1482. ++ local id=lr-caprice32
  1483. ++ echo /opt/retropie/libretrocores/lr-caprice32
  1484. + local pkg_file=/opt/retropie/libretrocores/lr-caprice32/retropie.pkg
  1485. + [[ -f /opt/retropie/libretrocores/lr-caprice32/retropie.pkg ]]
  1486. + load=1
  1487. + local key
  1488. + local data
  1489. + for key in "${keys[@]}"
  1490. + data=
  1491. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  1492. + data=unknown
  1493. + __mod_info[$id/$key]=unknown
  1494. + [[ 1 -eq 1 ]]
  1495. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-caprice32/retropie.pkg
  1496. + data=binary
  1497. + [[ -n binary ]]
  1498. + __mod_info[$id/$key]=binary
  1499. + [[ 0 -eq 1 ]]
  1500. + local pkg_origin=binary
  1501. + local has_binary=0
  1502. + local has_net=0
  1503. ++ getIPAddress
  1504. ++ local dev=
  1505. ++ local ip_route
  1506. +++ ip -4 route get 8.8.8.8
  1507. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1508. cache '
  1509. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1510. cache ]]
  1511. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1512. cache ]]
  1513. ++ grep -oP 'src \K[^\s]+'
  1514. + local ip=192.168.2.5
  1515. + [[ -n 192.168.2.5 ]]
  1516. + has_net=1
  1517. + hasFlag '' nonet
  1518. + local string=
  1519. + local flag=nonet
  1520. + [[ -z '' ]]
  1521. + return 1
  1522. + [[ 1 -eq 1 ]]
  1523. + rp_hasBinary lr-caprice32
  1524. + local id=lr-caprice32
  1525. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  1526. ++ rp_getBinaryUrl lr-caprice32
  1527. ++ local id=lr-caprice32
  1528. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
  1529. ++ fnExists install_bin_lr-caprice32
  1530. ++ declare -f install_bin_lr-caprice32
  1531. ++ return 1
  1532. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
  1533. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
  1534. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz == \n\o\t\e\s\t ]]
  1535. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz ]]
  1536. + [[ -n '' ]]
  1537. + local ret=1
  1538. + rp_hasBinaries
  1539. + [[ 1 -eq 1 ]]
  1540. + return 0
  1541. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
  1542. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
  1543. + local ret
  1544. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-caprice32.tar.gz
  1545. + ret=28
  1546. + [[ 28 -eq 0 ]]
  1547. + [[ 28 -eq 22 ]]
  1548. + return 2
  1549. + ret=2
  1550. + [[ 2 -ne 2 ]]
  1551. + return 2
  1552. + local ret=2
  1553. + [[ 2 -eq 0 ]]
  1554. + [[ 2 -eq 2 ]]
  1555. + has_net=0
  1556. + [[ 0 -eq 0 ]]
  1557. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  1558. + return 1
  1559. + return 1
  1560. + for id in ${__mod_id[@]}
  1561. + rp_isInstalled lr-desmume2015
  1562. + local id=lr-desmume2015
  1563. + local md_inst=/opt/retropie/libretrocores/lr-desmume2015
  1564. + [[ -d /opt/retropie/libretrocores/lr-desmume2015 ]]
  1565. + return 1
  1566. + for id in ${__mod_id[@]}
  1567. + rp_isInstalled lr-desmume
  1568. + local id=lr-desmume
  1569. + local md_inst=/opt/retropie/libretrocores/lr-desmume
  1570. + [[ -d /opt/retropie/libretrocores/lr-desmume ]]
  1571. + return 1
  1572. + for id in ${__mod_id[@]}
  1573. + rp_isInstalled lr-dinothawr
  1574. + local id=lr-dinothawr
  1575. + local md_inst=/opt/retropie/libretrocores/lr-dinothawr
  1576. + [[ -d /opt/retropie/libretrocores/lr-dinothawr ]]
  1577. + return 1
  1578. + for id in ${__mod_id[@]}
  1579. + rp_isInstalled lr-dolphin
  1580. + local id=lr-dolphin
  1581. + local md_inst=/opt/retropie/libretrocores/lr-dolphin
  1582. + [[ -d /opt/retropie/libretrocores/lr-dolphin ]]
  1583. + return 1
  1584. + for id in ${__mod_id[@]}
  1585. + rp_isInstalled lr-dosbox-pure
  1586. + local id=lr-dosbox-pure
  1587. + local md_inst=/opt/retropie/libretrocores/lr-dosbox-pure
  1588. + [[ -d /opt/retropie/libretrocores/lr-dosbox-pure ]]
  1589. + return 1
  1590. + for id in ${__mod_id[@]}
  1591. + rp_isInstalled lr-dosbox
  1592. + local id=lr-dosbox
  1593. + local md_inst=/opt/retropie/libretrocores/lr-dosbox
  1594. + [[ -d /opt/retropie/libretrocores/lr-dosbox ]]
  1595. + return 1
  1596. + for id in ${__mod_id[@]}
  1597. + rp_isInstalled lr-fbalpha2012
  1598. + local id=lr-fbalpha2012
  1599. + local md_inst=/opt/retropie/libretrocores/lr-fbalpha2012
  1600. + [[ -d /opt/retropie/libretrocores/lr-fbalpha2012 ]]
  1601. + return 1
  1602. + for id in ${__mod_id[@]}
  1603. + rp_isInstalled lr-fbneo
  1604. + local id=lr-fbneo
  1605. + local md_inst=/opt/retropie/libretrocores/lr-fbneo
  1606. + [[ -d /opt/retropie/libretrocores/lr-fbneo ]]
  1607. + return 0
  1608. + [[ main != \d\e\p\e\n\d\s ]]
  1609. + rp_installModule lr-fbneo _update_
  1610. + local id=lr-fbneo
  1611. + local mode=_update_
  1612. + [[ -z _update_ ]]
  1613. + rp_callModule lr-fbneo _update_
  1614. + local md_id=lr-fbneo
  1615. + local mode=_update_
  1616. + shift 2
  1617. + rp_hasModule lr-fbneo
  1618. + local id=lr-fbneo
  1619. + [[ -n 81 ]]
  1620. + return 0
  1621. + rp_isEnabled lr-fbneo
  1622. + local id=lr-fbneo
  1623. + [[ 1 -eq 0 ]]
  1624. + return 0
  1625. + case "$mode" in
  1626. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  1627. + rp_isInstalled lr-fbneo
  1628. + local id=lr-fbneo
  1629. + local md_inst=/opt/retropie/libretrocores/lr-fbneo
  1630. + [[ -d /opt/retropie/libretrocores/lr-fbneo ]]
  1631. + return 0
  1632. + rp_loadPackageInfo lr-fbneo pkg_origin
  1633. + local id=lr-fbneo
  1634. + [[ '' -eq 1 ]]
  1635. + local keys
  1636. + local cache=1
  1637. + [[ -z pkg_origin ]]
  1638. + shift
  1639. + keys=("$@")
  1640. + cache=0
  1641. + local load=0
  1642. ++ rp_getInstallPath lr-fbneo
  1643. ++ local id=lr-fbneo
  1644. ++ echo /opt/retropie/libretrocores/lr-fbneo
  1645. + local pkg_file=/opt/retropie/libretrocores/lr-fbneo/retropie.pkg
  1646. + [[ -f /opt/retropie/libretrocores/lr-fbneo/retropie.pkg ]]
  1647. + load=1
  1648. + local key
  1649. + local data
  1650. + for key in "${keys[@]}"
  1651. + data=
  1652. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  1653. + data=unknown
  1654. + __mod_info[$id/$key]=unknown
  1655. + [[ 1 -eq 1 ]]
  1656. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-fbneo/retropie.pkg
  1657. + data=binary
  1658. + [[ -n binary ]]
  1659. + __mod_info[$id/$key]=binary
  1660. + [[ 0 -eq 1 ]]
  1661. + local pkg_origin=binary
  1662. + local has_binary=0
  1663. + local has_net=0
  1664. ++ getIPAddress
  1665. ++ local dev=
  1666. ++ local ip_route
  1667. +++ ip -4 route get 8.8.8.8
  1668. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1669. cache '
  1670. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1671. cache ]]
  1672. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1673. cache ]]
  1674. ++ grep -oP 'src \K[^\s]+'
  1675. + local ip=192.168.2.5
  1676. + [[ -n 192.168.2.5 ]]
  1677. + has_net=1
  1678. + hasFlag '' nonet
  1679. + local string=
  1680. + local flag=nonet
  1681. + [[ -z '' ]]
  1682. + return 1
  1683. + [[ 1 -eq 1 ]]
  1684. + rp_hasBinary lr-fbneo
  1685. + local id=lr-fbneo
  1686. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  1687. ++ rp_getBinaryUrl lr-fbneo
  1688. ++ local id=lr-fbneo
  1689. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
  1690. ++ fnExists install_bin_lr-fbneo
  1691. ++ declare -f install_bin_lr-fbneo
  1692. ++ return 1
  1693. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
  1694. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
  1695. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz == \n\o\t\e\s\t ]]
  1696. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz ]]
  1697. + [[ -n '' ]]
  1698. + local ret=1
  1699. + rp_hasBinaries
  1700. + [[ 1 -eq 1 ]]
  1701. + return 0
  1702. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
  1703. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
  1704. + local ret
  1705. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fbneo.tar.gz
  1706. + ret=28
  1707. + [[ 28 -eq 0 ]]
  1708. + [[ 28 -eq 22 ]]
  1709. + return 2
  1710. + ret=2
  1711. + [[ 2 -ne 2 ]]
  1712. + return 2
  1713. + local ret=2
  1714. + [[ 2 -eq 0 ]]
  1715. + [[ 2 -eq 2 ]]
  1716. + has_net=0
  1717. + [[ 0 -eq 0 ]]
  1718. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  1719. + return 1
  1720. + return 1
  1721. + for id in ${__mod_id[@]}
  1722. + rp_isInstalled lr-fceumm
  1723. + local id=lr-fceumm
  1724. + local md_inst=/opt/retropie/libretrocores/lr-fceumm
  1725. + [[ -d /opt/retropie/libretrocores/lr-fceumm ]]
  1726. + return 0
  1727. + [[ main != \d\e\p\e\n\d\s ]]
  1728. + rp_installModule lr-fceumm _update_
  1729. + local id=lr-fceumm
  1730. + local mode=_update_
  1731. + [[ -z _update_ ]]
  1732. + rp_callModule lr-fceumm _update_
  1733. + local md_id=lr-fceumm
  1734. + local mode=_update_
  1735. + shift 2
  1736. + rp_hasModule lr-fceumm
  1737. + local id=lr-fceumm
  1738. + [[ -n 82 ]]
  1739. + return 0
  1740. + rp_isEnabled lr-fceumm
  1741. + local id=lr-fceumm
  1742. + [[ 1 -eq 0 ]]
  1743. + return 0
  1744. + case "$mode" in
  1745. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  1746. + rp_isInstalled lr-fceumm
  1747. + local id=lr-fceumm
  1748. + local md_inst=/opt/retropie/libretrocores/lr-fceumm
  1749. + [[ -d /opt/retropie/libretrocores/lr-fceumm ]]
  1750. + return 0
  1751. + rp_loadPackageInfo lr-fceumm pkg_origin
  1752. + local id=lr-fceumm
  1753. + [[ '' -eq 1 ]]
  1754. + local keys
  1755. + local cache=1
  1756. + [[ -z pkg_origin ]]
  1757. + shift
  1758. + keys=("$@")
  1759. + cache=0
  1760. + local load=0
  1761. ++ rp_getInstallPath lr-fceumm
  1762. ++ local id=lr-fceumm
  1763. ++ echo /opt/retropie/libretrocores/lr-fceumm
  1764. + local pkg_file=/opt/retropie/libretrocores/lr-fceumm/retropie.pkg
  1765. + [[ -f /opt/retropie/libretrocores/lr-fceumm/retropie.pkg ]]
  1766. + load=1
  1767. + local key
  1768. + local data
  1769. + for key in "${keys[@]}"
  1770. + data=
  1771. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  1772. + data=unknown
  1773. + __mod_info[$id/$key]=unknown
  1774. + [[ 1 -eq 1 ]]
  1775. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-fceumm/retropie.pkg
  1776. + data=binary
  1777. + [[ -n binary ]]
  1778. + __mod_info[$id/$key]=binary
  1779. + [[ 0 -eq 1 ]]
  1780. + local pkg_origin=binary
  1781. + local has_binary=0
  1782. + local has_net=0
  1783. ++ getIPAddress
  1784. ++ local dev=
  1785. ++ local ip_route
  1786. +++ ip -4 route get 8.8.8.8
  1787. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1788. cache '
  1789. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1790. cache ]]
  1791. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1792. cache ]]
  1793. ++ grep -oP 'src \K[^\s]+'
  1794. + local ip=192.168.2.5
  1795. + [[ -n 192.168.2.5 ]]
  1796. + has_net=1
  1797. + hasFlag '' nonet
  1798. + local string=
  1799. + local flag=nonet
  1800. + [[ -z '' ]]
  1801. + return 1
  1802. + [[ 1 -eq 1 ]]
  1803. + rp_hasBinary lr-fceumm
  1804. + local id=lr-fceumm
  1805. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  1806. ++ rp_getBinaryUrl lr-fceumm
  1807. ++ local id=lr-fceumm
  1808. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
  1809. ++ fnExists install_bin_lr-fceumm
  1810. ++ declare -f install_bin_lr-fceumm
  1811. ++ return 1
  1812. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
  1813. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
  1814. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz == \n\o\t\e\s\t ]]
  1815. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz ]]
  1816. + [[ -n '' ]]
  1817. + local ret=1
  1818. + rp_hasBinaries
  1819. + [[ 1 -eq 1 ]]
  1820. + return 0
  1821. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
  1822. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
  1823. + local ret
  1824. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fceumm.tar.gz
  1825. + ret=28
  1826. + [[ 28 -eq 0 ]]
  1827. + [[ 28 -eq 22 ]]
  1828. + return 2
  1829. + ret=2
  1830. + [[ 2 -ne 2 ]]
  1831. + return 2
  1832. + local ret=2
  1833. + [[ 2 -eq 0 ]]
  1834. + [[ 2 -eq 2 ]]
  1835. + has_net=0
  1836. + [[ 0 -eq 0 ]]
  1837. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  1838. + return 1
  1839. + return 1
  1840. + for id in ${__mod_id[@]}
  1841. + rp_isInstalled lr-flycast
  1842. + local id=lr-flycast
  1843. + local md_inst=/opt/retropie/libretrocores/lr-flycast
  1844. + [[ -d /opt/retropie/libretrocores/lr-flycast ]]
  1845. + return 1
  1846. + for id in ${__mod_id[@]}
  1847. + rp_isInstalled lr-fmsx
  1848. + local id=lr-fmsx
  1849. + local md_inst=/opt/retropie/libretrocores/lr-fmsx
  1850. + [[ -d /opt/retropie/libretrocores/lr-fmsx ]]
  1851. + return 1
  1852. + for id in ${__mod_id[@]}
  1853. + rp_isInstalled lr-freechaf
  1854. + local id=lr-freechaf
  1855. + local md_inst=/opt/retropie/libretrocores/lr-freechaf
  1856. + [[ -d /opt/retropie/libretrocores/lr-freechaf ]]
  1857. + return 1
  1858. + for id in ${__mod_id[@]}
  1859. + rp_isInstalled lr-freeintv
  1860. + local id=lr-freeintv
  1861. + local md_inst=/opt/retropie/libretrocores/lr-freeintv
  1862. + [[ -d /opt/retropie/libretrocores/lr-freeintv ]]
  1863. + return 1
  1864. + for id in ${__mod_id[@]}
  1865. + rp_isInstalled lr-fuse
  1866. + local id=lr-fuse
  1867. + local md_inst=/opt/retropie/libretrocores/lr-fuse
  1868. + [[ -d /opt/retropie/libretrocores/lr-fuse ]]
  1869. + return 0
  1870. + [[ main != \d\e\p\e\n\d\s ]]
  1871. + rp_installModule lr-fuse _update_
  1872. + local id=lr-fuse
  1873. + local mode=_update_
  1874. + [[ -z _update_ ]]
  1875. + rp_callModule lr-fuse _update_
  1876. + local md_id=lr-fuse
  1877. + local mode=_update_
  1878. + shift 2
  1879. + rp_hasModule lr-fuse
  1880. + local id=lr-fuse
  1881. + [[ -n 87 ]]
  1882. + return 0
  1883. + rp_isEnabled lr-fuse
  1884. + local id=lr-fuse
  1885. + [[ 1 -eq 0 ]]
  1886. + return 0
  1887. + case "$mode" in
  1888. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  1889. + rp_isInstalled lr-fuse
  1890. + local id=lr-fuse
  1891. + local md_inst=/opt/retropie/libretrocores/lr-fuse
  1892. + [[ -d /opt/retropie/libretrocores/lr-fuse ]]
  1893. + return 0
  1894. + rp_loadPackageInfo lr-fuse pkg_origin
  1895. + local id=lr-fuse
  1896. + [[ '' -eq 1 ]]
  1897. + local keys
  1898. + local cache=1
  1899. + [[ -z pkg_origin ]]
  1900. + shift
  1901. + keys=("$@")
  1902. + cache=0
  1903. + local load=0
  1904. ++ rp_getInstallPath lr-fuse
  1905. ++ local id=lr-fuse
  1906. ++ echo /opt/retropie/libretrocores/lr-fuse
  1907. + local pkg_file=/opt/retropie/libretrocores/lr-fuse/retropie.pkg
  1908. + [[ -f /opt/retropie/libretrocores/lr-fuse/retropie.pkg ]]
  1909. + load=1
  1910. + local key
  1911. + local data
  1912. + for key in "${keys[@]}"
  1913. + data=
  1914. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  1915. + data=unknown
  1916. + __mod_info[$id/$key]=unknown
  1917. + [[ 1 -eq 1 ]]
  1918. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-fuse/retropie.pkg
  1919. + data=binary
  1920. + [[ -n binary ]]
  1921. + __mod_info[$id/$key]=binary
  1922. + [[ 0 -eq 1 ]]
  1923. + local pkg_origin=binary
  1924. + local has_binary=0
  1925. + local has_net=0
  1926. ++ getIPAddress
  1927. ++ local dev=
  1928. ++ local ip_route
  1929. +++ ip -4 route get 8.8.8.8
  1930. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1931. cache '
  1932. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1933. cache ]]
  1934. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  1935. cache ]]
  1936. ++ grep -oP 'src \K[^\s]+'
  1937. + local ip=192.168.2.5
  1938. + [[ -n 192.168.2.5 ]]
  1939. + has_net=1
  1940. + hasFlag '' nonet
  1941. + local string=
  1942. + local flag=nonet
  1943. + [[ -z '' ]]
  1944. + return 1
  1945. + [[ 1 -eq 1 ]]
  1946. + rp_hasBinary lr-fuse
  1947. + local id=lr-fuse
  1948. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  1949. ++ rp_getBinaryUrl lr-fuse
  1950. ++ local id=lr-fuse
  1951. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
  1952. ++ fnExists install_bin_lr-fuse
  1953. ++ declare -f install_bin_lr-fuse
  1954. ++ return 1
  1955. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
  1956. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
  1957. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz == \n\o\t\e\s\t ]]
  1958. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz ]]
  1959. + [[ -n '' ]]
  1960. + local ret=1
  1961. + rp_hasBinaries
  1962. + [[ 1 -eq 1 ]]
  1963. + return 0
  1964. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
  1965. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
  1966. + local ret
  1967. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-fuse.tar.gz
  1968. + ret=28
  1969. + [[ 28 -eq 0 ]]
  1970. + [[ 28 -eq 22 ]]
  1971. + return 2
  1972. + ret=2
  1973. + [[ 2 -ne 2 ]]
  1974. + return 2
  1975. + local ret=2
  1976. + [[ 2 -eq 0 ]]
  1977. + [[ 2 -eq 2 ]]
  1978. + has_net=0
  1979. + [[ 0 -eq 0 ]]
  1980. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  1981. + return 1
  1982. + return 1
  1983. + for id in ${__mod_id[@]}
  1984. + rp_isInstalled lr-gambatte
  1985. + local id=lr-gambatte
  1986. + local md_inst=/opt/retropie/libretrocores/lr-gambatte
  1987. + [[ -d /opt/retropie/libretrocores/lr-gambatte ]]
  1988. + return 0
  1989. + [[ main != \d\e\p\e\n\d\s ]]
  1990. + rp_installModule lr-gambatte _update_
  1991. + local id=lr-gambatte
  1992. + local mode=_update_
  1993. + [[ -z _update_ ]]
  1994. + rp_callModule lr-gambatte _update_
  1995. + local md_id=lr-gambatte
  1996. + local mode=_update_
  1997. + shift 2
  1998. + rp_hasModule lr-gambatte
  1999. + local id=lr-gambatte
  2000. + [[ -n 88 ]]
  2001. + return 0
  2002. + rp_isEnabled lr-gambatte
  2003. + local id=lr-gambatte
  2004. + [[ 1 -eq 0 ]]
  2005. + return 0
  2006. + case "$mode" in
  2007. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  2008. + rp_isInstalled lr-gambatte
  2009. + local id=lr-gambatte
  2010. + local md_inst=/opt/retropie/libretrocores/lr-gambatte
  2011. + [[ -d /opt/retropie/libretrocores/lr-gambatte ]]
  2012. + return 0
  2013. + rp_loadPackageInfo lr-gambatte pkg_origin
  2014. + local id=lr-gambatte
  2015. + [[ '' -eq 1 ]]
  2016. + local keys
  2017. + local cache=1
  2018. + [[ -z pkg_origin ]]
  2019. + shift
  2020. + keys=("$@")
  2021. + cache=0
  2022. + local load=0
  2023. ++ rp_getInstallPath lr-gambatte
  2024. ++ local id=lr-gambatte
  2025. ++ echo /opt/retropie/libretrocores/lr-gambatte
  2026. + local pkg_file=/opt/retropie/libretrocores/lr-gambatte/retropie.pkg
  2027. + [[ -f /opt/retropie/libretrocores/lr-gambatte/retropie.pkg ]]
  2028. + load=1
  2029. + local key
  2030. + local data
  2031. + for key in "${keys[@]}"
  2032. + data=
  2033. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  2034. + data=unknown
  2035. + __mod_info[$id/$key]=unknown
  2036. + [[ 1 -eq 1 ]]
  2037. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-gambatte/retropie.pkg
  2038. + data=binary
  2039. + [[ -n binary ]]
  2040. + __mod_info[$id/$key]=binary
  2041. + [[ 0 -eq 1 ]]
  2042. + local pkg_origin=binary
  2043. + local has_binary=0
  2044. + local has_net=0
  2045. ++ getIPAddress
  2046. ++ local dev=
  2047. ++ local ip_route
  2048. +++ ip -4 route get 8.8.8.8
  2049. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2050. cache '
  2051. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2052. cache ]]
  2053. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2054. cache ]]
  2055. ++ grep -oP 'src \K[^\s]+'
  2056. + local ip=192.168.2.5
  2057. + [[ -n 192.168.2.5 ]]
  2058. + has_net=1
  2059. + hasFlag '' nonet
  2060. + local string=
  2061. + local flag=nonet
  2062. + [[ -z '' ]]
  2063. + return 1
  2064. + [[ 1 -eq 1 ]]
  2065. + rp_hasBinary lr-gambatte
  2066. + local id=lr-gambatte
  2067. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  2068. ++ rp_getBinaryUrl lr-gambatte
  2069. ++ local id=lr-gambatte
  2070. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
  2071. ++ fnExists install_bin_lr-gambatte
  2072. ++ declare -f install_bin_lr-gambatte
  2073. ++ return 1
  2074. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
  2075. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
  2076. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz == \n\o\t\e\s\t ]]
  2077. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz ]]
  2078. + [[ -n '' ]]
  2079. + local ret=1
  2080. + rp_hasBinaries
  2081. + [[ 1 -eq 1 ]]
  2082. + return 0
  2083. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
  2084. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
  2085. + local ret
  2086. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gambatte.tar.gz
  2087. + ret=28
  2088. + [[ 28 -eq 0 ]]
  2089. + [[ 28 -eq 22 ]]
  2090. + return 2
  2091. + ret=2
  2092. + [[ 2 -ne 2 ]]
  2093. + return 2
  2094. + local ret=2
  2095. + [[ 2 -eq 0 ]]
  2096. + [[ 2 -eq 2 ]]
  2097. + has_net=0
  2098. + [[ 0 -eq 0 ]]
  2099. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  2100. + return 1
  2101. + return 1
  2102. + for id in ${__mod_id[@]}
  2103. + rp_isInstalled lr-gearsystem
  2104. + local id=lr-gearsystem
  2105. + local md_inst=/opt/retropie/libretrocores/lr-gearsystem
  2106. + [[ -d /opt/retropie/libretrocores/lr-gearsystem ]]
  2107. + return 1
  2108. + for id in ${__mod_id[@]}
  2109. + rp_isInstalled lr-genesis-plus-gx
  2110. + local id=lr-genesis-plus-gx
  2111. + local md_inst=/opt/retropie/libretrocores/lr-genesis-plus-gx
  2112. + [[ -d /opt/retropie/libretrocores/lr-genesis-plus-gx ]]
  2113. + return 0
  2114. + [[ main != \d\e\p\e\n\d\s ]]
  2115. + rp_installModule lr-genesis-plus-gx _update_
  2116. + local id=lr-genesis-plus-gx
  2117. + local mode=_update_
  2118. + [[ -z _update_ ]]
  2119. + rp_callModule lr-genesis-plus-gx _update_
  2120. + local md_id=lr-genesis-plus-gx
  2121. + local mode=_update_
  2122. + shift 2
  2123. + rp_hasModule lr-genesis-plus-gx
  2124. + local id=lr-genesis-plus-gx
  2125. + [[ -n 90 ]]
  2126. + return 0
  2127. + rp_isEnabled lr-genesis-plus-gx
  2128. + local id=lr-genesis-plus-gx
  2129. + [[ 1 -eq 0 ]]
  2130. + return 0
  2131. + case "$mode" in
  2132. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  2133. + rp_isInstalled lr-genesis-plus-gx
  2134. + local id=lr-genesis-plus-gx
  2135. + local md_inst=/opt/retropie/libretrocores/lr-genesis-plus-gx
  2136. + [[ -d /opt/retropie/libretrocores/lr-genesis-plus-gx ]]
  2137. + return 0
  2138. + rp_loadPackageInfo lr-genesis-plus-gx pkg_origin
  2139. + local id=lr-genesis-plus-gx
  2140. + [[ '' -eq 1 ]]
  2141. + local keys
  2142. + local cache=1
  2143. + [[ -z pkg_origin ]]
  2144. + shift
  2145. + keys=("$@")
  2146. + cache=0
  2147. + local load=0
  2148. ++ rp_getInstallPath lr-genesis-plus-gx
  2149. ++ local id=lr-genesis-plus-gx
  2150. ++ echo /opt/retropie/libretrocores/lr-genesis-plus-gx
  2151. + local pkg_file=/opt/retropie/libretrocores/lr-genesis-plus-gx/retropie.pkg
  2152. + [[ -f /opt/retropie/libretrocores/lr-genesis-plus-gx/retropie.pkg ]]
  2153. + load=1
  2154. + local key
  2155. + local data
  2156. + for key in "${keys[@]}"
  2157. + data=
  2158. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  2159. + data=unknown
  2160. + __mod_info[$id/$key]=unknown
  2161. + [[ 1 -eq 1 ]]
  2162. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-genesis-plus-gx/retropie.pkg
  2163. + data=binary
  2164. + [[ -n binary ]]
  2165. + __mod_info[$id/$key]=binary
  2166. + [[ 0 -eq 1 ]]
  2167. + local pkg_origin=binary
  2168. + local has_binary=0
  2169. + local has_net=0
  2170. ++ getIPAddress
  2171. ++ local dev=
  2172. ++ local ip_route
  2173. +++ ip -4 route get 8.8.8.8
  2174. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2175. cache '
  2176. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2177. cache ]]
  2178. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2179. cache ]]
  2180. ++ grep -oP 'src \K[^\s]+'
  2181. + local ip=192.168.2.5
  2182. + [[ -n 192.168.2.5 ]]
  2183. + has_net=1
  2184. + hasFlag '' nonet
  2185. + local string=
  2186. + local flag=nonet
  2187. + [[ -z '' ]]
  2188. + return 1
  2189. + [[ 1 -eq 1 ]]
  2190. + rp_hasBinary lr-genesis-plus-gx
  2191. + local id=lr-genesis-plus-gx
  2192. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  2193. ++ rp_getBinaryUrl lr-genesis-plus-gx
  2194. ++ local id=lr-genesis-plus-gx
  2195. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
  2196. ++ fnExists install_bin_lr-genesis-plus-gx
  2197. ++ declare -f install_bin_lr-genesis-plus-gx
  2198. ++ return 1
  2199. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
  2200. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
  2201. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz == \n\o\t\e\s\t ]]
  2202. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz ]]
  2203. + [[ -n '' ]]
  2204. + local ret=1
  2205. + rp_hasBinaries
  2206. + [[ 1 -eq 1 ]]
  2207. + return 0
  2208. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
  2209. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
  2210. + local ret
  2211. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-genesis-plus-gx.tar.gz
  2212. + ret=28
  2213. + [[ 28 -eq 0 ]]
  2214. + [[ 28 -eq 22 ]]
  2215. + return 2
  2216. + ret=2
  2217. + [[ 2 -ne 2 ]]
  2218. + return 2
  2219. + local ret=2
  2220. + [[ 2 -eq 0 ]]
  2221. + [[ 2 -eq 2 ]]
  2222. + has_net=0
  2223. + [[ 0 -eq 0 ]]
  2224. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  2225. + return 1
  2226. + return 1
  2227. + for id in ${__mod_id[@]}
  2228. + rp_isInstalled lr-gpsp
  2229. + local id=lr-gpsp
  2230. + local md_inst=/opt/retropie/libretrocores/lr-gpsp
  2231. + [[ -d /opt/retropie/libretrocores/lr-gpsp ]]
  2232. + return 0
  2233. + [[ main != \d\e\p\e\n\d\s ]]
  2234. + rp_installModule lr-gpsp _update_
  2235. + local id=lr-gpsp
  2236. + local mode=_update_
  2237. + [[ -z _update_ ]]
  2238. + rp_callModule lr-gpsp _update_
  2239. + local md_id=lr-gpsp
  2240. + local mode=_update_
  2241. + shift 2
  2242. + rp_hasModule lr-gpsp
  2243. + local id=lr-gpsp
  2244. + [[ -n 91 ]]
  2245. + return 0
  2246. + rp_isEnabled lr-gpsp
  2247. + local id=lr-gpsp
  2248. + [[ 1 -eq 0 ]]
  2249. + return 0
  2250. + case "$mode" in
  2251. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  2252. + rp_isInstalled lr-gpsp
  2253. + local id=lr-gpsp
  2254. + local md_inst=/opt/retropie/libretrocores/lr-gpsp
  2255. + [[ -d /opt/retropie/libretrocores/lr-gpsp ]]
  2256. + return 0
  2257. + rp_loadPackageInfo lr-gpsp pkg_origin
  2258. + local id=lr-gpsp
  2259. + [[ '' -eq 1 ]]
  2260. + local keys
  2261. + local cache=1
  2262. + [[ -z pkg_origin ]]
  2263. + shift
  2264. + keys=("$@")
  2265. + cache=0
  2266. + local load=0
  2267. ++ rp_getInstallPath lr-gpsp
  2268. ++ local id=lr-gpsp
  2269. ++ echo /opt/retropie/libretrocores/lr-gpsp
  2270. + local pkg_file=/opt/retropie/libretrocores/lr-gpsp/retropie.pkg
  2271. + [[ -f /opt/retropie/libretrocores/lr-gpsp/retropie.pkg ]]
  2272. + load=1
  2273. + local key
  2274. + local data
  2275. + for key in "${keys[@]}"
  2276. + data=
  2277. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  2278. + data=unknown
  2279. + __mod_info[$id/$key]=unknown
  2280. + [[ 1 -eq 1 ]]
  2281. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-gpsp/retropie.pkg
  2282. + data=binary
  2283. + [[ -n binary ]]
  2284. + __mod_info[$id/$key]=binary
  2285. + [[ 0 -eq 1 ]]
  2286. + local pkg_origin=binary
  2287. + local has_binary=0
  2288. + local has_net=0
  2289. ++ getIPAddress
  2290. ++ local dev=
  2291. ++ local ip_route
  2292. +++ ip -4 route get 8.8.8.8
  2293. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2294. cache '
  2295. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2296. cache ]]
  2297. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2298. cache ]]
  2299. ++ grep -oP 'src \K[^\s]+'
  2300. + local ip=192.168.2.5
  2301. + [[ -n 192.168.2.5 ]]
  2302. + has_net=1
  2303. + hasFlag '!all arm' nonet
  2304. + local 'string=!all arm'
  2305. + local flag=nonet
  2306. + [[ -z !all arm ]]
  2307. + [[ -z nonet ]]
  2308. + [[ !all arm =~ (^| )nonet($| ) ]]
  2309. + return 1
  2310. + [[ 1 -eq 1 ]]
  2311. + rp_hasBinary lr-gpsp
  2312. + local id=lr-gpsp
  2313. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  2314. ++ rp_getBinaryUrl lr-gpsp
  2315. ++ local id=lr-gpsp
  2316. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
  2317. ++ fnExists install_bin_lr-gpsp
  2318. ++ declare -f install_bin_lr-gpsp
  2319. ++ return 1
  2320. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
  2321. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
  2322. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz == \n\o\t\e\s\t ]]
  2323. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz ]]
  2324. + [[ -n '' ]]
  2325. + local ret=1
  2326. + rp_hasBinaries
  2327. + [[ 1 -eq 1 ]]
  2328. + return 0
  2329. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
  2330. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
  2331. + local ret
  2332. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-gpsp.tar.gz
  2333. + ret=28
  2334. + [[ 28 -eq 0 ]]
  2335. + [[ 28 -eq 22 ]]
  2336. + return 2
  2337. + ret=2
  2338. + [[ 2 -ne 2 ]]
  2339. + return 2
  2340. + local ret=2
  2341. + [[ 2 -eq 0 ]]
  2342. + [[ 2 -eq 2 ]]
  2343. + has_net=0
  2344. + [[ 0 -eq 0 ]]
  2345. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  2346. + return 1
  2347. + return 1
  2348. + for id in ${__mod_id[@]}
  2349. + rp_isInstalled lr-gw
  2350. + local id=lr-gw
  2351. + local md_inst=/opt/retropie/libretrocores/lr-gw
  2352. + [[ -d /opt/retropie/libretrocores/lr-gw ]]
  2353. + return 1
  2354. + for id in ${__mod_id[@]}
  2355. + rp_isInstalled lr-handy
  2356. + local id=lr-handy
  2357. + local md_inst=/opt/retropie/libretrocores/lr-handy
  2358. + [[ -d /opt/retropie/libretrocores/lr-handy ]]
  2359. + return 0
  2360. + [[ main != \d\e\p\e\n\d\s ]]
  2361. + rp_installModule lr-handy _update_
  2362. + local id=lr-handy
  2363. + local mode=_update_
  2364. + [[ -z _update_ ]]
  2365. + rp_callModule lr-handy _update_
  2366. + local md_id=lr-handy
  2367. + local mode=_update_
  2368. + shift 2
  2369. + rp_hasModule lr-handy
  2370. + local id=lr-handy
  2371. + [[ -n 93 ]]
  2372. + return 0
  2373. + rp_isEnabled lr-handy
  2374. + local id=lr-handy
  2375. + [[ 1 -eq 0 ]]
  2376. + return 0
  2377. + case "$mode" in
  2378. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  2379. + rp_isInstalled lr-handy
  2380. + local id=lr-handy
  2381. + local md_inst=/opt/retropie/libretrocores/lr-handy
  2382. + [[ -d /opt/retropie/libretrocores/lr-handy ]]
  2383. + return 0
  2384. + rp_loadPackageInfo lr-handy pkg_origin
  2385. + local id=lr-handy
  2386. + [[ '' -eq 1 ]]
  2387. + local keys
  2388. + local cache=1
  2389. + [[ -z pkg_origin ]]
  2390. + shift
  2391. + keys=("$@")
  2392. + cache=0
  2393. + local load=0
  2394. ++ rp_getInstallPath lr-handy
  2395. ++ local id=lr-handy
  2396. ++ echo /opt/retropie/libretrocores/lr-handy
  2397. + local pkg_file=/opt/retropie/libretrocores/lr-handy/retropie.pkg
  2398. + [[ -f /opt/retropie/libretrocores/lr-handy/retropie.pkg ]]
  2399. + load=1
  2400. + local key
  2401. + local data
  2402. + for key in "${keys[@]}"
  2403. + data=
  2404. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  2405. + data=unknown
  2406. + __mod_info[$id/$key]=unknown
  2407. + [[ 1 -eq 1 ]]
  2408. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-handy/retropie.pkg
  2409. + data=binary
  2410. + [[ -n binary ]]
  2411. + __mod_info[$id/$key]=binary
  2412. + [[ 0 -eq 1 ]]
  2413. + local pkg_origin=binary
  2414. + local has_binary=0
  2415. + local has_net=0
  2416. ++ getIPAddress
  2417. ++ local dev=
  2418. ++ local ip_route
  2419. +++ ip -4 route get 8.8.8.8
  2420. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2421. cache '
  2422. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2423. cache ]]
  2424. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2425. cache ]]
  2426. ++ grep -oP 'src \K[^\s]+'
  2427. + local ip=192.168.2.5
  2428. + [[ -n 192.168.2.5 ]]
  2429. + has_net=1
  2430. + hasFlag '' nonet
  2431. + local string=
  2432. + local flag=nonet
  2433. + [[ -z '' ]]
  2434. + return 1
  2435. + [[ 1 -eq 1 ]]
  2436. + rp_hasBinary lr-handy
  2437. + local id=lr-handy
  2438. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  2439. ++ rp_getBinaryUrl lr-handy
  2440. ++ local id=lr-handy
  2441. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
  2442. ++ fnExists install_bin_lr-handy
  2443. ++ declare -f install_bin_lr-handy
  2444. ++ return 1
  2445. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
  2446. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
  2447. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz == \n\o\t\e\s\t ]]
  2448. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz ]]
  2449. + [[ -n '' ]]
  2450. + local ret=1
  2451. + rp_hasBinaries
  2452. + [[ 1 -eq 1 ]]
  2453. + return 0
  2454. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
  2455. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
  2456. + local ret
  2457. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-handy.tar.gz
  2458. + ret=28
  2459. + [[ 28 -eq 0 ]]
  2460. + [[ 28 -eq 22 ]]
  2461. + return 2
  2462. + ret=2
  2463. + [[ 2 -ne 2 ]]
  2464. + return 2
  2465. + local ret=2
  2466. + [[ 2 -eq 0 ]]
  2467. + [[ 2 -eq 2 ]]
  2468. + has_net=0
  2469. + [[ 0 -eq 0 ]]
  2470. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  2471. + return 1
  2472. + return 1
  2473. + for id in ${__mod_id[@]}
  2474. + rp_isInstalled lr-hatari
  2475. + local id=lr-hatari
  2476. + local md_inst=/opt/retropie/libretrocores/lr-hatari
  2477. + [[ -d /opt/retropie/libretrocores/lr-hatari ]]
  2478. + return 1
  2479. + for id in ${__mod_id[@]}
  2480. + rp_isInstalled lr-kronos
  2481. + local id=lr-kronos
  2482. + local md_inst=/opt/retropie/libretrocores/lr-kronos
  2483. + [[ -d /opt/retropie/libretrocores/lr-kronos ]]
  2484. + return 1
  2485. + for id in ${__mod_id[@]}
  2486. + rp_isInstalled lr-mame2000
  2487. + local id=lr-mame2000
  2488. + local md_inst=/opt/retropie/libretrocores/lr-mame2000
  2489. + [[ -d /opt/retropie/libretrocores/lr-mame2000 ]]
  2490. + return 1
  2491. + for id in ${__mod_id[@]}
  2492. + rp_isInstalled lr-mame2003-plus
  2493. + local id=lr-mame2003-plus
  2494. + local md_inst=/opt/retropie/libretrocores/lr-mame2003-plus
  2495. + [[ -d /opt/retropie/libretrocores/lr-mame2003-plus ]]
  2496. + return 1
  2497. + for id in ${__mod_id[@]}
  2498. + rp_isInstalled lr-mame2003
  2499. + local id=lr-mame2003
  2500. + local md_inst=/opt/retropie/libretrocores/lr-mame2003
  2501. + [[ -d /opt/retropie/libretrocores/lr-mame2003 ]]
  2502. + return 0
  2503. + [[ main != \d\e\p\e\n\d\s ]]
  2504. + rp_installModule lr-mame2003 _update_
  2505. + local id=lr-mame2003
  2506. + local mode=_update_
  2507. + [[ -z _update_ ]]
  2508. + rp_callModule lr-mame2003 _update_
  2509. + local md_id=lr-mame2003
  2510. + local mode=_update_
  2511. + shift 2
  2512. + rp_hasModule lr-mame2003
  2513. + local id=lr-mame2003
  2514. + [[ -n 98 ]]
  2515. + return 0
  2516. + rp_isEnabled lr-mame2003
  2517. + local id=lr-mame2003
  2518. + [[ 1 -eq 0 ]]
  2519. + return 0
  2520. + case "$mode" in
  2521. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  2522. + rp_isInstalled lr-mame2003
  2523. + local id=lr-mame2003
  2524. + local md_inst=/opt/retropie/libretrocores/lr-mame2003
  2525. + [[ -d /opt/retropie/libretrocores/lr-mame2003 ]]
  2526. + return 0
  2527. + rp_loadPackageInfo lr-mame2003 pkg_origin
  2528. + local id=lr-mame2003
  2529. + [[ '' -eq 1 ]]
  2530. + local keys
  2531. + local cache=1
  2532. + [[ -z pkg_origin ]]
  2533. + shift
  2534. + keys=("$@")
  2535. + cache=0
  2536. + local load=0
  2537. ++ rp_getInstallPath lr-mame2003
  2538. ++ local id=lr-mame2003
  2539. ++ echo /opt/retropie/libretrocores/lr-mame2003
  2540. + local pkg_file=/opt/retropie/libretrocores/lr-mame2003/retropie.pkg
  2541. + [[ -f /opt/retropie/libretrocores/lr-mame2003/retropie.pkg ]]
  2542. + load=1
  2543. + local key
  2544. + local data
  2545. + for key in "${keys[@]}"
  2546. + data=
  2547. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  2548. + data=unknown
  2549. + __mod_info[$id/$key]=unknown
  2550. + [[ 1 -eq 1 ]]
  2551. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-mame2003/retropie.pkg
  2552. + data=binary
  2553. + [[ -n binary ]]
  2554. + __mod_info[$id/$key]=binary
  2555. + [[ 0 -eq 1 ]]
  2556. + local pkg_origin=binary
  2557. + local has_binary=0
  2558. + local has_net=0
  2559. ++ getIPAddress
  2560. ++ local dev=
  2561. ++ local ip_route
  2562. +++ ip -4 route get 8.8.8.8
  2563. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2564. cache '
  2565. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2566. cache ]]
  2567. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2568. cache ]]
  2569. ++ grep -oP 'src \K[^\s]+'
  2570. + local ip=192.168.2.5
  2571. + [[ -n 192.168.2.5 ]]
  2572. + has_net=1
  2573. + hasFlag '' nonet
  2574. + local string=
  2575. + local flag=nonet
  2576. + [[ -z '' ]]
  2577. + return 1
  2578. + [[ 1 -eq 1 ]]
  2579. + rp_hasBinary lr-mame2003
  2580. + local id=lr-mame2003
  2581. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  2582. ++ rp_getBinaryUrl lr-mame2003
  2583. ++ local id=lr-mame2003
  2584. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
  2585. ++ fnExists install_bin_lr-mame2003
  2586. ++ declare -f install_bin_lr-mame2003
  2587. ++ return 1
  2588. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
  2589. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
  2590. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz == \n\o\t\e\s\t ]]
  2591. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz ]]
  2592. + [[ -n '' ]]
  2593. + local ret=1
  2594. + rp_hasBinaries
  2595. + [[ 1 -eq 1 ]]
  2596. + return 0
  2597. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
  2598. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
  2599. + local ret
  2600. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mame2003.tar.gz
  2601. + ret=28
  2602. + [[ 28 -eq 0 ]]
  2603. + [[ 28 -eq 22 ]]
  2604. + return 2
  2605. + ret=2
  2606. + [[ 2 -ne 2 ]]
  2607. + return 2
  2608. + local ret=2
  2609. + [[ 2 -eq 0 ]]
  2610. + [[ 2 -eq 2 ]]
  2611. + has_net=0
  2612. + [[ 0 -eq 0 ]]
  2613. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  2614. + return 1
  2615. + return 1
  2616. + for id in ${__mod_id[@]}
  2617. + rp_isInstalled lr-mame2010
  2618. + local id=lr-mame2010
  2619. + local md_inst=/opt/retropie/libretrocores/lr-mame2010
  2620. + [[ -d /opt/retropie/libretrocores/lr-mame2010 ]]
  2621. + return 1
  2622. + for id in ${__mod_id[@]}
  2623. + rp_isInstalled lr-mame2015
  2624. + local id=lr-mame2015
  2625. + local md_inst=/opt/retropie/libretrocores/lr-mame2015
  2626. + [[ -d /opt/retropie/libretrocores/lr-mame2015 ]]
  2627. + return 1
  2628. + for id in ${__mod_id[@]}
  2629. + rp_isInstalled lr-mame2016
  2630. + local id=lr-mame2016
  2631. + local md_inst=/opt/retropie/libretrocores/lr-mame2016
  2632. + [[ -d /opt/retropie/libretrocores/lr-mame2016 ]]
  2633. + return 1
  2634. + for id in ${__mod_id[@]}
  2635. + rp_isInstalled lr-mame
  2636. + local id=lr-mame
  2637. + local md_inst=/opt/retropie/libretrocores/lr-mame
  2638. + [[ -d /opt/retropie/libretrocores/lr-mame ]]
  2639. + return 1
  2640. + for id in ${__mod_id[@]}
  2641. + rp_isInstalled lr-mesen
  2642. + local id=lr-mesen
  2643. + local md_inst=/opt/retropie/libretrocores/lr-mesen
  2644. + [[ -d /opt/retropie/libretrocores/lr-mesen ]]
  2645. + return 1
  2646. + for id in ${__mod_id[@]}
  2647. + rp_isInstalled lr-mess2016
  2648. + local id=lr-mess2016
  2649. + local md_inst=/opt/retropie/libretrocores/lr-mess2016
  2650. + [[ -d /opt/retropie/libretrocores/lr-mess2016 ]]
  2651. + return 1
  2652. + for id in ${__mod_id[@]}
  2653. + rp_isInstalled lr-mess
  2654. + local id=lr-mess
  2655. + local md_inst=/opt/retropie/libretrocores/lr-mess
  2656. + [[ -d /opt/retropie/libretrocores/lr-mess ]]
  2657. + return 1
  2658. + for id in ${__mod_id[@]}
  2659. + rp_isInstalled lr-mgba
  2660. + local id=lr-mgba
  2661. + local md_inst=/opt/retropie/libretrocores/lr-mgba
  2662. + [[ -d /opt/retropie/libretrocores/lr-mgba ]]
  2663. + return 0
  2664. + [[ main != \d\e\p\e\n\d\s ]]
  2665. + rp_installModule lr-mgba _update_
  2666. + local id=lr-mgba
  2667. + local mode=_update_
  2668. + [[ -z _update_ ]]
  2669. + rp_callModule lr-mgba _update_
  2670. + local md_id=lr-mgba
  2671. + local mode=_update_
  2672. + shift 2
  2673. + rp_hasModule lr-mgba
  2674. + local id=lr-mgba
  2675. + [[ -n 106 ]]
  2676. + return 0
  2677. + rp_isEnabled lr-mgba
  2678. + local id=lr-mgba
  2679. + [[ 1 -eq 0 ]]
  2680. + return 0
  2681. + case "$mode" in
  2682. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  2683. + rp_isInstalled lr-mgba
  2684. + local id=lr-mgba
  2685. + local md_inst=/opt/retropie/libretrocores/lr-mgba
  2686. + [[ -d /opt/retropie/libretrocores/lr-mgba ]]
  2687. + return 0
  2688. + rp_loadPackageInfo lr-mgba pkg_origin
  2689. + local id=lr-mgba
  2690. + [[ '' -eq 1 ]]
  2691. + local keys
  2692. + local cache=1
  2693. + [[ -z pkg_origin ]]
  2694. + shift
  2695. + keys=("$@")
  2696. + cache=0
  2697. + local load=0
  2698. ++ rp_getInstallPath lr-mgba
  2699. ++ local id=lr-mgba
  2700. ++ echo /opt/retropie/libretrocores/lr-mgba
  2701. + local pkg_file=/opt/retropie/libretrocores/lr-mgba/retropie.pkg
  2702. + [[ -f /opt/retropie/libretrocores/lr-mgba/retropie.pkg ]]
  2703. + load=1
  2704. + local key
  2705. + local data
  2706. + for key in "${keys[@]}"
  2707. + data=
  2708. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  2709. + data=unknown
  2710. + __mod_info[$id/$key]=unknown
  2711. + [[ 1 -eq 1 ]]
  2712. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-mgba/retropie.pkg
  2713. + data=binary
  2714. + [[ -n binary ]]
  2715. + __mod_info[$id/$key]=binary
  2716. + [[ 0 -eq 1 ]]
  2717. + local pkg_origin=binary
  2718. + local has_binary=0
  2719. + local has_net=0
  2720. ++ getIPAddress
  2721. ++ local dev=
  2722. ++ local ip_route
  2723. +++ ip -4 route get 8.8.8.8
  2724. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2725. cache '
  2726. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2727. cache ]]
  2728. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2729. cache ]]
  2730. ++ grep -oP 'src \K[^\s]+'
  2731. + local ip=192.168.2.5
  2732. + [[ -n 192.168.2.5 ]]
  2733. + has_net=1
  2734. + hasFlag '' nonet
  2735. + local string=
  2736. + local flag=nonet
  2737. + [[ -z '' ]]
  2738. + return 1
  2739. + [[ 1 -eq 1 ]]
  2740. + rp_hasBinary lr-mgba
  2741. + local id=lr-mgba
  2742. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  2743. ++ rp_getBinaryUrl lr-mgba
  2744. ++ local id=lr-mgba
  2745. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
  2746. ++ fnExists install_bin_lr-mgba
  2747. ++ declare -f install_bin_lr-mgba
  2748. ++ return 1
  2749. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
  2750. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
  2751. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz == \n\o\t\e\s\t ]]
  2752. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz ]]
  2753. + [[ -n '' ]]
  2754. + local ret=1
  2755. + rp_hasBinaries
  2756. + [[ 1 -eq 1 ]]
  2757. + return 0
  2758. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
  2759. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
  2760. + local ret
  2761. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mgba.tar.gz
  2762. + ret=28
  2763. + [[ 28 -eq 0 ]]
  2764. + [[ 28 -eq 22 ]]
  2765. + return 2
  2766. + ret=2
  2767. + [[ 2 -ne 2 ]]
  2768. + return 2
  2769. + local ret=2
  2770. + [[ 2 -eq 0 ]]
  2771. + [[ 2 -eq 2 ]]
  2772. + has_net=0
  2773. + [[ 0 -eq 0 ]]
  2774. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  2775. + return 1
  2776. + return 1
  2777. + for id in ${__mod_id[@]}
  2778. + rp_isInstalled lr-mrboom
  2779. + local id=lr-mrboom
  2780. + local md_inst=/opt/retropie/libretrocores/lr-mrboom
  2781. + [[ -d /opt/retropie/libretrocores/lr-mrboom ]]
  2782. + return 1
  2783. + for id in ${__mod_id[@]}
  2784. + rp_isInstalled lr-mupen64plus-next
  2785. + local id=lr-mupen64plus-next
  2786. + local md_inst=/opt/retropie/libretrocores/lr-mupen64plus-next
  2787. + [[ -d /opt/retropie/libretrocores/lr-mupen64plus-next ]]
  2788. + return 1
  2789. + for id in ${__mod_id[@]}
  2790. + rp_isInstalled lr-mupen64plus
  2791. + local id=lr-mupen64plus
  2792. + local md_inst=/opt/retropie/libretrocores/lr-mupen64plus
  2793. + [[ -d /opt/retropie/libretrocores/lr-mupen64plus ]]
  2794. + return 0
  2795. + [[ main != \d\e\p\e\n\d\s ]]
  2796. + rp_installModule lr-mupen64plus _update_
  2797. + local id=lr-mupen64plus
  2798. + local mode=_update_
  2799. + [[ -z _update_ ]]
  2800. + rp_callModule lr-mupen64plus _update_
  2801. + local md_id=lr-mupen64plus
  2802. + local mode=_update_
  2803. + shift 2
  2804. + rp_hasModule lr-mupen64plus
  2805. + local id=lr-mupen64plus
  2806. + [[ -n 109 ]]
  2807. + return 0
  2808. + rp_isEnabled lr-mupen64plus
  2809. + local id=lr-mupen64plus
  2810. + [[ 1 -eq 0 ]]
  2811. + return 0
  2812. + case "$mode" in
  2813. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  2814. + rp_isInstalled lr-mupen64plus
  2815. + local id=lr-mupen64plus
  2816. + local md_inst=/opt/retropie/libretrocores/lr-mupen64plus
  2817. + [[ -d /opt/retropie/libretrocores/lr-mupen64plus ]]
  2818. + return 0
  2819. + rp_loadPackageInfo lr-mupen64plus pkg_origin
  2820. + local id=lr-mupen64plus
  2821. + [[ '' -eq 1 ]]
  2822. + local keys
  2823. + local cache=1
  2824. + [[ -z pkg_origin ]]
  2825. + shift
  2826. + keys=("$@")
  2827. + cache=0
  2828. + local load=0
  2829. ++ rp_getInstallPath lr-mupen64plus
  2830. ++ local id=lr-mupen64plus
  2831. ++ echo /opt/retropie/libretrocores/lr-mupen64plus
  2832. + local pkg_file=/opt/retropie/libretrocores/lr-mupen64plus/retropie.pkg
  2833. + [[ -f /opt/retropie/libretrocores/lr-mupen64plus/retropie.pkg ]]
  2834. + load=1
  2835. + local key
  2836. + local data
  2837. + for key in "${keys[@]}"
  2838. + data=
  2839. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  2840. + data=unknown
  2841. + __mod_info[$id/$key]=unknown
  2842. + [[ 1 -eq 1 ]]
  2843. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-mupen64plus/retropie.pkg
  2844. + data=binary
  2845. + [[ -n binary ]]
  2846. + __mod_info[$id/$key]=binary
  2847. + [[ 0 -eq 1 ]]
  2848. + local pkg_origin=binary
  2849. + local has_binary=0
  2850. + local has_net=0
  2851. ++ getIPAddress
  2852. ++ local dev=
  2853. ++ local ip_route
  2854. +++ ip -4 route get 8.8.8.8
  2855. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2856. cache '
  2857. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2858. cache ]]
  2859. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2860. cache ]]
  2861. ++ grep -oP 'src \K[^\s]+'
  2862. + local ip=192.168.2.5
  2863. + [[ -n 192.168.2.5 ]]
  2864. + has_net=1
  2865. + hasFlag '!aarch64' nonet
  2866. + local 'string=!aarch64'
  2867. + local flag=nonet
  2868. + [[ -z !aarch64 ]]
  2869. + [[ -z nonet ]]
  2870. + [[ !aarch64 =~ (^| )nonet($| ) ]]
  2871. + return 1
  2872. + [[ 1 -eq 1 ]]
  2873. + rp_hasBinary lr-mupen64plus
  2874. + local id=lr-mupen64plus
  2875. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  2876. ++ rp_getBinaryUrl lr-mupen64plus
  2877. ++ local id=lr-mupen64plus
  2878. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
  2879. ++ fnExists install_bin_lr-mupen64plus
  2880. ++ declare -f install_bin_lr-mupen64plus
  2881. ++ return 1
  2882. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
  2883. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
  2884. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz == \n\o\t\e\s\t ]]
  2885. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz ]]
  2886. + [[ -n '' ]]
  2887. + local ret=1
  2888. + rp_hasBinaries
  2889. + [[ 1 -eq 1 ]]
  2890. + return 0
  2891. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
  2892. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
  2893. + local ret
  2894. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-mupen64plus.tar.gz
  2895. + ret=28
  2896. + [[ 28 -eq 0 ]]
  2897. + [[ 28 -eq 22 ]]
  2898. + return 2
  2899. + ret=2
  2900. + [[ 2 -ne 2 ]]
  2901. + return 2
  2902. + local ret=2
  2903. + [[ 2 -eq 0 ]]
  2904. + [[ 2 -eq 2 ]]
  2905. + has_net=0
  2906. + [[ 0 -eq 0 ]]
  2907. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  2908. + return 1
  2909. + return 1
  2910. + for id in ${__mod_id[@]}
  2911. + rp_isInstalled lr-neocd
  2912. + local id=lr-neocd
  2913. + local md_inst=/opt/retropie/libretrocores/lr-neocd
  2914. + [[ -d /opt/retropie/libretrocores/lr-neocd ]]
  2915. + return 1
  2916. + for id in ${__mod_id[@]}
  2917. + rp_isInstalled lr-nestopia
  2918. + local id=lr-nestopia
  2919. + local md_inst=/opt/retropie/libretrocores/lr-nestopia
  2920. + [[ -d /opt/retropie/libretrocores/lr-nestopia ]]
  2921. + return 0
  2922. + [[ main != \d\e\p\e\n\d\s ]]
  2923. + rp_installModule lr-nestopia _update_
  2924. + local id=lr-nestopia
  2925. + local mode=_update_
  2926. + [[ -z _update_ ]]
  2927. + rp_callModule lr-nestopia _update_
  2928. + local md_id=lr-nestopia
  2929. + local mode=_update_
  2930. + shift 2
  2931. + rp_hasModule lr-nestopia
  2932. + local id=lr-nestopia
  2933. + [[ -n 111 ]]
  2934. + return 0
  2935. + rp_isEnabled lr-nestopia
  2936. + local id=lr-nestopia
  2937. + [[ 1 -eq 0 ]]
  2938. + return 0
  2939. + case "$mode" in
  2940. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  2941. + rp_isInstalled lr-nestopia
  2942. + local id=lr-nestopia
  2943. + local md_inst=/opt/retropie/libretrocores/lr-nestopia
  2944. + [[ -d /opt/retropie/libretrocores/lr-nestopia ]]
  2945. + return 0
  2946. + rp_loadPackageInfo lr-nestopia pkg_origin
  2947. + local id=lr-nestopia
  2948. + [[ '' -eq 1 ]]
  2949. + local keys
  2950. + local cache=1
  2951. + [[ -z pkg_origin ]]
  2952. + shift
  2953. + keys=("$@")
  2954. + cache=0
  2955. + local load=0
  2956. ++ rp_getInstallPath lr-nestopia
  2957. ++ local id=lr-nestopia
  2958. ++ echo /opt/retropie/libretrocores/lr-nestopia
  2959. + local pkg_file=/opt/retropie/libretrocores/lr-nestopia/retropie.pkg
  2960. + [[ -f /opt/retropie/libretrocores/lr-nestopia/retropie.pkg ]]
  2961. + load=1
  2962. + local key
  2963. + local data
  2964. + for key in "${keys[@]}"
  2965. + data=
  2966. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  2967. + data=unknown
  2968. + __mod_info[$id/$key]=unknown
  2969. + [[ 1 -eq 1 ]]
  2970. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-nestopia/retropie.pkg
  2971. + data=binary
  2972. + [[ -n binary ]]
  2973. + __mod_info[$id/$key]=binary
  2974. + [[ 0 -eq 1 ]]
  2975. + local pkg_origin=binary
  2976. + local has_binary=0
  2977. + local has_net=0
  2978. ++ getIPAddress
  2979. ++ local dev=
  2980. ++ local ip_route
  2981. +++ ip -4 route get 8.8.8.8
  2982. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2983. cache '
  2984. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2985. cache ]]
  2986. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  2987. cache ]]
  2988. ++ grep -oP 'src \K[^\s]+'
  2989. + local ip=192.168.2.5
  2990. + [[ -n 192.168.2.5 ]]
  2991. + has_net=1
  2992. + hasFlag '' nonet
  2993. + local string=
  2994. + local flag=nonet
  2995. + [[ -z '' ]]
  2996. + return 1
  2997. + [[ 1 -eq 1 ]]
  2998. + rp_hasBinary lr-nestopia
  2999. + local id=lr-nestopia
  3000. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  3001. ++ rp_getBinaryUrl lr-nestopia
  3002. ++ local id=lr-nestopia
  3003. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
  3004. ++ fnExists install_bin_lr-nestopia
  3005. ++ declare -f install_bin_lr-nestopia
  3006. ++ return 1
  3007. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
  3008. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
  3009. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz == \n\o\t\e\s\t ]]
  3010. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz ]]
  3011. + [[ -n '' ]]
  3012. + local ret=1
  3013. + rp_hasBinaries
  3014. + [[ 1 -eq 1 ]]
  3015. + return 0
  3016. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
  3017. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
  3018. + local ret
  3019. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nestopia.tar.gz
  3020. + ret=28
  3021. + [[ 28 -eq 0 ]]
  3022. + [[ 28 -eq 22 ]]
  3023. + return 2
  3024. + ret=2
  3025. + [[ 2 -ne 2 ]]
  3026. + return 2
  3027. + local ret=2
  3028. + [[ 2 -eq 0 ]]
  3029. + [[ 2 -eq 2 ]]
  3030. + has_net=0
  3031. + [[ 0 -eq 0 ]]
  3032. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  3033. + return 1
  3034. + return 1
  3035. + for id in ${__mod_id[@]}
  3036. + rp_isInstalled lr-np2kai
  3037. + local id=lr-np2kai
  3038. + local md_inst=/opt/retropie/libretrocores/lr-np2kai
  3039. + [[ -d /opt/retropie/libretrocores/lr-np2kai ]]
  3040. + return 1
  3041. + for id in ${__mod_id[@]}
  3042. + rp_isInstalled lr-nxengine
  3043. + local id=lr-nxengine
  3044. + local md_inst=/opt/retropie/libretrocores/lr-nxengine
  3045. + [[ -d /opt/retropie/libretrocores/lr-nxengine ]]
  3046. + return 0
  3047. + [[ opt != \d\e\p\e\n\d\s ]]
  3048. + rp_installModule lr-nxengine _update_
  3049. + local id=lr-nxengine
  3050. + local mode=_update_
  3051. + [[ -z _update_ ]]
  3052. + rp_callModule lr-nxengine _update_
  3053. + local md_id=lr-nxengine
  3054. + local mode=_update_
  3055. + shift 2
  3056. + rp_hasModule lr-nxengine
  3057. + local id=lr-nxengine
  3058. + [[ -n 113 ]]
  3059. + return 0
  3060. + rp_isEnabled lr-nxengine
  3061. + local id=lr-nxengine
  3062. + [[ 1 -eq 0 ]]
  3063. + return 0
  3064. + case "$mode" in
  3065. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  3066. + rp_isInstalled lr-nxengine
  3067. + local id=lr-nxengine
  3068. + local md_inst=/opt/retropie/libretrocores/lr-nxengine
  3069. + [[ -d /opt/retropie/libretrocores/lr-nxengine ]]
  3070. + return 0
  3071. + rp_loadPackageInfo lr-nxengine pkg_origin
  3072. + local id=lr-nxengine
  3073. + [[ '' -eq 1 ]]
  3074. + local keys
  3075. + local cache=1
  3076. + [[ -z pkg_origin ]]
  3077. + shift
  3078. + keys=("$@")
  3079. + cache=0
  3080. + local load=0
  3081. ++ rp_getInstallPath lr-nxengine
  3082. ++ local id=lr-nxengine
  3083. ++ echo /opt/retropie/libretrocores/lr-nxengine
  3084. + local pkg_file=/opt/retropie/libretrocores/lr-nxengine/retropie.pkg
  3085. + [[ -f /opt/retropie/libretrocores/lr-nxengine/retropie.pkg ]]
  3086. + load=1
  3087. + local key
  3088. + local data
  3089. + for key in "${keys[@]}"
  3090. + data=
  3091. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  3092. + data=unknown
  3093. + __mod_info[$id/$key]=unknown
  3094. + [[ 1 -eq 1 ]]
  3095. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-nxengine/retropie.pkg
  3096. + data=binary
  3097. + [[ -n binary ]]
  3098. + __mod_info[$id/$key]=binary
  3099. + [[ 0 -eq 1 ]]
  3100. + local pkg_origin=binary
  3101. + local has_binary=0
  3102. + local has_net=0
  3103. ++ getIPAddress
  3104. ++ local dev=
  3105. ++ local ip_route
  3106. +++ ip -4 route get 8.8.8.8
  3107. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3108. cache '
  3109. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3110. cache ]]
  3111. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3112. cache ]]
  3113. ++ grep -oP 'src \K[^\s]+'
  3114. + local ip=192.168.2.5
  3115. + [[ -n 192.168.2.5 ]]
  3116. + has_net=1
  3117. + hasFlag '' nonet
  3118. + local string=
  3119. + local flag=nonet
  3120. + [[ -z '' ]]
  3121. + return 1
  3122. + [[ 1 -eq 1 ]]
  3123. + rp_hasBinary lr-nxengine
  3124. + local id=lr-nxengine
  3125. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  3126. ++ rp_getBinaryUrl lr-nxengine
  3127. ++ local id=lr-nxengine
  3128. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
  3129. ++ fnExists install_bin_lr-nxengine
  3130. ++ declare -f install_bin_lr-nxengine
  3131. ++ return 1
  3132. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
  3133. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
  3134. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz == \n\o\t\e\s\t ]]
  3135. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz ]]
  3136. + [[ -n '' ]]
  3137. + local ret=1
  3138. + rp_hasBinaries
  3139. + [[ 1 -eq 1 ]]
  3140. + return 0
  3141. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
  3142. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
  3143. + local ret
  3144. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-nxengine.tar.gz
  3145. + ret=28
  3146. + [[ 28 -eq 0 ]]
  3147. + [[ 28 -eq 22 ]]
  3148. + return 2
  3149. + ret=2
  3150. + [[ 2 -ne 2 ]]
  3151. + return 2
  3152. + local ret=2
  3153. + [[ 2 -eq 0 ]]
  3154. + [[ 2 -eq 2 ]]
  3155. + has_net=0
  3156. + [[ 0 -eq 0 ]]
  3157. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  3158. + return 1
  3159. + return 1
  3160. + for id in ${__mod_id[@]}
  3161. + rp_isInstalled lr-o2em
  3162. + local id=lr-o2em
  3163. + local md_inst=/opt/retropie/libretrocores/lr-o2em
  3164. + [[ -d /opt/retropie/libretrocores/lr-o2em ]]
  3165. + return 1
  3166. + for id in ${__mod_id[@]}
  3167. + rp_isInstalled lr-opera
  3168. + local id=lr-opera
  3169. + local md_inst=/opt/retropie/libretrocores/lr-opera
  3170. + [[ -d /opt/retropie/libretrocores/lr-opera ]]
  3171. + return 1
  3172. + for id in ${__mod_id[@]}
  3173. + rp_isInstalled lr-parallel-n64
  3174. + local id=lr-parallel-n64
  3175. + local md_inst=/opt/retropie/libretrocores/lr-parallel-n64
  3176. + [[ -d /opt/retropie/libretrocores/lr-parallel-n64 ]]
  3177. + return 1
  3178. + for id in ${__mod_id[@]}
  3179. + rp_isInstalled lr-pcsx-rearmed
  3180. + local id=lr-pcsx-rearmed
  3181. + local md_inst=/opt/retropie/libretrocores/lr-pcsx-rearmed
  3182. + [[ -d /opt/retropie/libretrocores/lr-pcsx-rearmed ]]
  3183. + return 0
  3184. + [[ main != \d\e\p\e\n\d\s ]]
  3185. + rp_installModule lr-pcsx-rearmed _update_
  3186. + local id=lr-pcsx-rearmed
  3187. + local mode=_update_
  3188. + [[ -z _update_ ]]
  3189. + rp_callModule lr-pcsx-rearmed _update_
  3190. + local md_id=lr-pcsx-rearmed
  3191. + local mode=_update_
  3192. + shift 2
  3193. + rp_hasModule lr-pcsx-rearmed
  3194. + local id=lr-pcsx-rearmed
  3195. + [[ -n 117 ]]
  3196. + return 0
  3197. + rp_isEnabled lr-pcsx-rearmed
  3198. + local id=lr-pcsx-rearmed
  3199. + [[ 1 -eq 0 ]]
  3200. + return 0
  3201. + case "$mode" in
  3202. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  3203. + rp_isInstalled lr-pcsx-rearmed
  3204. + local id=lr-pcsx-rearmed
  3205. + local md_inst=/opt/retropie/libretrocores/lr-pcsx-rearmed
  3206. + [[ -d /opt/retropie/libretrocores/lr-pcsx-rearmed ]]
  3207. + return 0
  3208. + rp_loadPackageInfo lr-pcsx-rearmed pkg_origin
  3209. + local id=lr-pcsx-rearmed
  3210. + [[ '' -eq 1 ]]
  3211. + local keys
  3212. + local cache=1
  3213. + [[ -z pkg_origin ]]
  3214. + shift
  3215. + keys=("$@")
  3216. + cache=0
  3217. + local load=0
  3218. ++ rp_getInstallPath lr-pcsx-rearmed
  3219. ++ local id=lr-pcsx-rearmed
  3220. ++ echo /opt/retropie/libretrocores/lr-pcsx-rearmed
  3221. + local pkg_file=/opt/retropie/libretrocores/lr-pcsx-rearmed/retropie.pkg
  3222. + [[ -f /opt/retropie/libretrocores/lr-pcsx-rearmed/retropie.pkg ]]
  3223. + load=1
  3224. + local key
  3225. + local data
  3226. + for key in "${keys[@]}"
  3227. + data=
  3228. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  3229. + data=unknown
  3230. + __mod_info[$id/$key]=unknown
  3231. + [[ 1 -eq 1 ]]
  3232. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-pcsx-rearmed/retropie.pkg
  3233. + data=binary
  3234. + [[ -n binary ]]
  3235. + __mod_info[$id/$key]=binary
  3236. + [[ 0 -eq 1 ]]
  3237. + local pkg_origin=binary
  3238. + local has_binary=0
  3239. + local has_net=0
  3240. ++ getIPAddress
  3241. ++ local dev=
  3242. ++ local ip_route
  3243. +++ ip -4 route get 8.8.8.8
  3244. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3245. cache '
  3246. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3247. cache ]]
  3248. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3249. cache ]]
  3250. ++ grep -oP 'src \K[^\s]+'
  3251. + local ip=192.168.2.5
  3252. + [[ -n 192.168.2.5 ]]
  3253. + has_net=1
  3254. + hasFlag '' nonet
  3255. + local string=
  3256. + local flag=nonet
  3257. + [[ -z '' ]]
  3258. + return 1
  3259. + [[ 1 -eq 1 ]]
  3260. + rp_hasBinary lr-pcsx-rearmed
  3261. + local id=lr-pcsx-rearmed
  3262. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  3263. ++ rp_getBinaryUrl lr-pcsx-rearmed
  3264. ++ local id=lr-pcsx-rearmed
  3265. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
  3266. ++ fnExists install_bin_lr-pcsx-rearmed
  3267. ++ declare -f install_bin_lr-pcsx-rearmed
  3268. ++ return 1
  3269. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
  3270. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
  3271. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz == \n\o\t\e\s\t ]]
  3272. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz ]]
  3273. + [[ -n '' ]]
  3274. + local ret=1
  3275. + rp_hasBinaries
  3276. + [[ 1 -eq 1 ]]
  3277. + return 0
  3278. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
  3279. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
  3280. + local ret
  3281. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-pcsx-rearmed.tar.gz
  3282. + ret=28
  3283. + [[ 28 -eq 0 ]]
  3284. + [[ 28 -eq 22 ]]
  3285. + return 2
  3286. + ret=2
  3287. + [[ 2 -ne 2 ]]
  3288. + return 2
  3289. + local ret=2
  3290. + [[ 2 -eq 0 ]]
  3291. + [[ 2 -eq 2 ]]
  3292. + has_net=0
  3293. + [[ 0 -eq 0 ]]
  3294. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  3295. + return 1
  3296. + return 1
  3297. + for id in ${__mod_id[@]}
  3298. + rp_isInstalled lr-picodrive
  3299. + local id=lr-picodrive
  3300. + local md_inst=/opt/retropie/libretrocores/lr-picodrive
  3301. + [[ -d /opt/retropie/libretrocores/lr-picodrive ]]
  3302. + return 0
  3303. + [[ main != \d\e\p\e\n\d\s ]]
  3304. + rp_installModule lr-picodrive _update_
  3305. + local id=lr-picodrive
  3306. + local mode=_update_
  3307. + [[ -z _update_ ]]
  3308. + rp_callModule lr-picodrive _update_
  3309. + local md_id=lr-picodrive
  3310. + local mode=_update_
  3311. + shift 2
  3312. + rp_hasModule lr-picodrive
  3313. + local id=lr-picodrive
  3314. + [[ -n 118 ]]
  3315. + return 0
  3316. + rp_isEnabled lr-picodrive
  3317. + local id=lr-picodrive
  3318. + [[ 1 -eq 0 ]]
  3319. + return 0
  3320. + case "$mode" in
  3321. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  3322. + rp_isInstalled lr-picodrive
  3323. + local id=lr-picodrive
  3324. + local md_inst=/opt/retropie/libretrocores/lr-picodrive
  3325. + [[ -d /opt/retropie/libretrocores/lr-picodrive ]]
  3326. + return 0
  3327. + rp_loadPackageInfo lr-picodrive pkg_origin
  3328. + local id=lr-picodrive
  3329. + [[ '' -eq 1 ]]
  3330. + local keys
  3331. + local cache=1
  3332. + [[ -z pkg_origin ]]
  3333. + shift
  3334. + keys=("$@")
  3335. + cache=0
  3336. + local load=0
  3337. ++ rp_getInstallPath lr-picodrive
  3338. ++ local id=lr-picodrive
  3339. ++ echo /opt/retropie/libretrocores/lr-picodrive
  3340. + local pkg_file=/opt/retropie/libretrocores/lr-picodrive/retropie.pkg
  3341. + [[ -f /opt/retropie/libretrocores/lr-picodrive/retropie.pkg ]]
  3342. + load=1
  3343. + local key
  3344. + local data
  3345. + for key in "${keys[@]}"
  3346. + data=
  3347. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  3348. + data=unknown
  3349. + __mod_info[$id/$key]=unknown
  3350. + [[ 1 -eq 1 ]]
  3351. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-picodrive/retropie.pkg
  3352. + data=binary
  3353. + [[ -n binary ]]
  3354. + __mod_info[$id/$key]=binary
  3355. + [[ 0 -eq 1 ]]
  3356. + local pkg_origin=binary
  3357. + local has_binary=0
  3358. + local has_net=0
  3359. ++ getIPAddress
  3360. ++ local dev=
  3361. ++ local ip_route
  3362. +++ ip -4 route get 8.8.8.8
  3363. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3364. cache '
  3365. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3366. cache ]]
  3367. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3368. cache ]]
  3369. ++ grep -oP 'src \K[^\s]+'
  3370. + local ip=192.168.2.5
  3371. + [[ -n 192.168.2.5 ]]
  3372. + has_net=1
  3373. + hasFlag '' nonet
  3374. + local string=
  3375. + local flag=nonet
  3376. + [[ -z '' ]]
  3377. + return 1
  3378. + [[ 1 -eq 1 ]]
  3379. + rp_hasBinary lr-picodrive
  3380. + local id=lr-picodrive
  3381. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  3382. ++ rp_getBinaryUrl lr-picodrive
  3383. ++ local id=lr-picodrive
  3384. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
  3385. ++ fnExists install_bin_lr-picodrive
  3386. ++ declare -f install_bin_lr-picodrive
  3387. ++ return 1
  3388. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
  3389. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
  3390. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz == \n\o\t\e\s\t ]]
  3391. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz ]]
  3392. + [[ -n '' ]]
  3393. + local ret=1
  3394. + rp_hasBinaries
  3395. + [[ 1 -eq 1 ]]
  3396. + return 0
  3397. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
  3398. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
  3399. + local ret
  3400. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-picodrive.tar.gz
  3401. + ret=28
  3402. + [[ 28 -eq 0 ]]
  3403. + [[ 28 -eq 22 ]]
  3404. + return 2
  3405. + ret=2
  3406. + [[ 2 -ne 2 ]]
  3407. + return 2
  3408. + local ret=2
  3409. + [[ 2 -eq 0 ]]
  3410. + [[ 2 -eq 2 ]]
  3411. + has_net=0
  3412. + [[ 0 -eq 0 ]]
  3413. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  3414. + return 1
  3415. + return 1
  3416. + for id in ${__mod_id[@]}
  3417. + rp_isInstalled lr-pokemini
  3418. + local id=lr-pokemini
  3419. + local md_inst=/opt/retropie/libretrocores/lr-pokemini
  3420. + [[ -d /opt/retropie/libretrocores/lr-pokemini ]]
  3421. + return 1
  3422. + for id in ${__mod_id[@]}
  3423. + rp_isInstalled lr-ppsspp
  3424. + local id=lr-ppsspp
  3425. + local md_inst=/opt/retropie/libretrocores/lr-ppsspp
  3426. + [[ -d /opt/retropie/libretrocores/lr-ppsspp ]]
  3427. + return 1
  3428. + for id in ${__mod_id[@]}
  3429. + rp_isInstalled lr-prboom
  3430. + local id=lr-prboom
  3431. + local md_inst=/opt/retropie/libretrocores/lr-prboom
  3432. + [[ -d /opt/retropie/libretrocores/lr-prboom ]]
  3433. + return 0
  3434. + [[ opt != \d\e\p\e\n\d\s ]]
  3435. + rp_installModule lr-prboom _update_
  3436. + local id=lr-prboom
  3437. + local mode=_update_
  3438. + [[ -z _update_ ]]
  3439. + rp_callModule lr-prboom _update_
  3440. + local md_id=lr-prboom
  3441. + local mode=_update_
  3442. + shift 2
  3443. + rp_hasModule lr-prboom
  3444. + local id=lr-prboom
  3445. + [[ -n 121 ]]
  3446. + return 0
  3447. + rp_isEnabled lr-prboom
  3448. + local id=lr-prboom
  3449. + [[ 1 -eq 0 ]]
  3450. + return 0
  3451. + case "$mode" in
  3452. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  3453. + rp_isInstalled lr-prboom
  3454. + local id=lr-prboom
  3455. + local md_inst=/opt/retropie/libretrocores/lr-prboom
  3456. + [[ -d /opt/retropie/libretrocores/lr-prboom ]]
  3457. + return 0
  3458. + rp_loadPackageInfo lr-prboom pkg_origin
  3459. + local id=lr-prboom
  3460. + [[ '' -eq 1 ]]
  3461. + local keys
  3462. + local cache=1
  3463. + [[ -z pkg_origin ]]
  3464. + shift
  3465. + keys=("$@")
  3466. + cache=0
  3467. + local load=0
  3468. ++ rp_getInstallPath lr-prboom
  3469. ++ local id=lr-prboom
  3470. ++ echo /opt/retropie/libretrocores/lr-prboom
  3471. + local pkg_file=/opt/retropie/libretrocores/lr-prboom/retropie.pkg
  3472. + [[ -f /opt/retropie/libretrocores/lr-prboom/retropie.pkg ]]
  3473. + load=1
  3474. + local key
  3475. + local data
  3476. + for key in "${keys[@]}"
  3477. + data=
  3478. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  3479. + data=unknown
  3480. + __mod_info[$id/$key]=unknown
  3481. + [[ 1 -eq 1 ]]
  3482. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-prboom/retropie.pkg
  3483. + data=binary
  3484. + [[ -n binary ]]
  3485. + __mod_info[$id/$key]=binary
  3486. + [[ 0 -eq 1 ]]
  3487. + local pkg_origin=binary
  3488. + local has_binary=0
  3489. + local has_net=0
  3490. ++ getIPAddress
  3491. ++ local dev=
  3492. ++ local ip_route
  3493. +++ ip -4 route get 8.8.8.8
  3494. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3495. cache '
  3496. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3497. cache ]]
  3498. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3499. cache ]]
  3500. ++ grep -oP 'src \K[^\s]+'
  3501. + local ip=192.168.2.5
  3502. + [[ -n 192.168.2.5 ]]
  3503. + has_net=1
  3504. + hasFlag '' nonet
  3505. + local string=
  3506. + local flag=nonet
  3507. + [[ -z '' ]]
  3508. + return 1
  3509. + [[ 1 -eq 1 ]]
  3510. + rp_hasBinary lr-prboom
  3511. + local id=lr-prboom
  3512. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  3513. ++ rp_getBinaryUrl lr-prboom
  3514. ++ local id=lr-prboom
  3515. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
  3516. ++ fnExists install_bin_lr-prboom
  3517. ++ declare -f install_bin_lr-prboom
  3518. ++ return 1
  3519. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
  3520. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
  3521. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz == \n\o\t\e\s\t ]]
  3522. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz ]]
  3523. + [[ -n '' ]]
  3524. + local ret=1
  3525. + rp_hasBinaries
  3526. + [[ 1 -eq 1 ]]
  3527. + return 0
  3528. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
  3529. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
  3530. + local ret
  3531. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prboom.tar.gz
  3532. + ret=28
  3533. + [[ 28 -eq 0 ]]
  3534. + [[ 28 -eq 22 ]]
  3535. + return 2
  3536. + ret=2
  3537. + [[ 2 -ne 2 ]]
  3538. + return 2
  3539. + local ret=2
  3540. + [[ 2 -eq 0 ]]
  3541. + [[ 2 -eq 2 ]]
  3542. + has_net=0
  3543. + [[ 0 -eq 0 ]]
  3544. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  3545. + return 1
  3546. + return 1
  3547. + for id in ${__mod_id[@]}
  3548. + rp_isInstalled lr-prosystem
  3549. + local id=lr-prosystem
  3550. + local md_inst=/opt/retropie/libretrocores/lr-prosystem
  3551. + [[ -d /opt/retropie/libretrocores/lr-prosystem ]]
  3552. + return 0
  3553. + [[ main != \d\e\p\e\n\d\s ]]
  3554. + rp_installModule lr-prosystem _update_
  3555. + local id=lr-prosystem
  3556. + local mode=_update_
  3557. + [[ -z _update_ ]]
  3558. + rp_callModule lr-prosystem _update_
  3559. + local md_id=lr-prosystem
  3560. + local mode=_update_
  3561. + shift 2
  3562. + rp_hasModule lr-prosystem
  3563. + local id=lr-prosystem
  3564. + [[ -n 122 ]]
  3565. + return 0
  3566. + rp_isEnabled lr-prosystem
  3567. + local id=lr-prosystem
  3568. + [[ 1 -eq 0 ]]
  3569. + return 0
  3570. + case "$mode" in
  3571. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  3572. + rp_isInstalled lr-prosystem
  3573. + local id=lr-prosystem
  3574. + local md_inst=/opt/retropie/libretrocores/lr-prosystem
  3575. + [[ -d /opt/retropie/libretrocores/lr-prosystem ]]
  3576. + return 0
  3577. + rp_loadPackageInfo lr-prosystem pkg_origin
  3578. + local id=lr-prosystem
  3579. + [[ '' -eq 1 ]]
  3580. + local keys
  3581. + local cache=1
  3582. + [[ -z pkg_origin ]]
  3583. + shift
  3584. + keys=("$@")
  3585. + cache=0
  3586. + local load=0
  3587. ++ rp_getInstallPath lr-prosystem
  3588. ++ local id=lr-prosystem
  3589. ++ echo /opt/retropie/libretrocores/lr-prosystem
  3590. + local pkg_file=/opt/retropie/libretrocores/lr-prosystem/retropie.pkg
  3591. + [[ -f /opt/retropie/libretrocores/lr-prosystem/retropie.pkg ]]
  3592. + load=1
  3593. + local key
  3594. + local data
  3595. + for key in "${keys[@]}"
  3596. + data=
  3597. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  3598. + data=unknown
  3599. + __mod_info[$id/$key]=unknown
  3600. + [[ 1 -eq 1 ]]
  3601. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-prosystem/retropie.pkg
  3602. + data=binary
  3603. + [[ -n binary ]]
  3604. + __mod_info[$id/$key]=binary
  3605. + [[ 0 -eq 1 ]]
  3606. + local pkg_origin=binary
  3607. + local has_binary=0
  3608. + local has_net=0
  3609. ++ getIPAddress
  3610. ++ local dev=
  3611. ++ local ip_route
  3612. +++ ip -4 route get 8.8.8.8
  3613. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3614. cache '
  3615. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3616. cache ]]
  3617. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3618. cache ]]
  3619. ++ grep -oP 'src \K[^\s]+'
  3620. + local ip=192.168.2.5
  3621. + [[ -n 192.168.2.5 ]]
  3622. + has_net=1
  3623. + hasFlag '' nonet
  3624. + local string=
  3625. + local flag=nonet
  3626. + [[ -z '' ]]
  3627. + return 1
  3628. + [[ 1 -eq 1 ]]
  3629. + rp_hasBinary lr-prosystem
  3630. + local id=lr-prosystem
  3631. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  3632. ++ rp_getBinaryUrl lr-prosystem
  3633. ++ local id=lr-prosystem
  3634. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
  3635. ++ fnExists install_bin_lr-prosystem
  3636. ++ declare -f install_bin_lr-prosystem
  3637. ++ return 1
  3638. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
  3639. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
  3640. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz == \n\o\t\e\s\t ]]
  3641. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz ]]
  3642. + [[ -n '' ]]
  3643. + local ret=1
  3644. + rp_hasBinaries
  3645. + [[ 1 -eq 1 ]]
  3646. + return 0
  3647. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
  3648. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
  3649. + local ret
  3650. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-prosystem.tar.gz
  3651. + ret=28
  3652. + [[ 28 -eq 0 ]]
  3653. + [[ 28 -eq 22 ]]
  3654. + return 2
  3655. + ret=2
  3656. + [[ 2 -ne 2 ]]
  3657. + return 2
  3658. + local ret=2
  3659. + [[ 2 -eq 0 ]]
  3660. + [[ 2 -eq 2 ]]
  3661. + has_net=0
  3662. + [[ 0 -eq 0 ]]
  3663. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  3664. + return 1
  3665. + return 1
  3666. + for id in ${__mod_id[@]}
  3667. + rp_isInstalled lr-puae
  3668. + local id=lr-puae
  3669. + local md_inst=/opt/retropie/libretrocores/lr-puae
  3670. + [[ -d /opt/retropie/libretrocores/lr-puae ]]
  3671. + return 1
  3672. + for id in ${__mod_id[@]}
  3673. + rp_isInstalled lr-px68k
  3674. + local id=lr-px68k
  3675. + local md_inst=/opt/retropie/libretrocores/lr-px68k
  3676. + [[ -d /opt/retropie/libretrocores/lr-px68k ]]
  3677. + return 1
  3678. + for id in ${__mod_id[@]}
  3679. + rp_isInstalled lr-quasi88
  3680. + local id=lr-quasi88
  3681. + local md_inst=/opt/retropie/libretrocores/lr-quasi88
  3682. + [[ -d /opt/retropie/libretrocores/lr-quasi88 ]]
  3683. + return 1
  3684. + for id in ${__mod_id[@]}
  3685. + rp_isInstalled lr-quicknes
  3686. + local id=lr-quicknes
  3687. + local md_inst=/opt/retropie/libretrocores/lr-quicknes
  3688. + [[ -d /opt/retropie/libretrocores/lr-quicknes ]]
  3689. + return 0
  3690. + [[ main != \d\e\p\e\n\d\s ]]
  3691. + rp_installModule lr-quicknes _update_
  3692. + local id=lr-quicknes
  3693. + local mode=_update_
  3694. + [[ -z _update_ ]]
  3695. + rp_callModule lr-quicknes _update_
  3696. + local md_id=lr-quicknes
  3697. + local mode=_update_
  3698. + shift 2
  3699. + rp_hasModule lr-quicknes
  3700. + local id=lr-quicknes
  3701. + [[ -n 126 ]]
  3702. + return 0
  3703. + rp_isEnabled lr-quicknes
  3704. + local id=lr-quicknes
  3705. + [[ 1 -eq 0 ]]
  3706. + return 0
  3707. + case "$mode" in
  3708. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  3709. + rp_isInstalled lr-quicknes
  3710. + local id=lr-quicknes
  3711. + local md_inst=/opt/retropie/libretrocores/lr-quicknes
  3712. + [[ -d /opt/retropie/libretrocores/lr-quicknes ]]
  3713. + return 0
  3714. + rp_loadPackageInfo lr-quicknes pkg_origin
  3715. + local id=lr-quicknes
  3716. + [[ '' -eq 1 ]]
  3717. + local keys
  3718. + local cache=1
  3719. + [[ -z pkg_origin ]]
  3720. + shift
  3721. + keys=("$@")
  3722. + cache=0
  3723. + local load=0
  3724. ++ rp_getInstallPath lr-quicknes
  3725. ++ local id=lr-quicknes
  3726. ++ echo /opt/retropie/libretrocores/lr-quicknes
  3727. + local pkg_file=/opt/retropie/libretrocores/lr-quicknes/retropie.pkg
  3728. + [[ -f /opt/retropie/libretrocores/lr-quicknes/retropie.pkg ]]
  3729. + load=1
  3730. + local key
  3731. + local data
  3732. + for key in "${keys[@]}"
  3733. + data=
  3734. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  3735. + data=unknown
  3736. + __mod_info[$id/$key]=unknown
  3737. + [[ 1 -eq 1 ]]
  3738. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-quicknes/retropie.pkg
  3739. + data=binary
  3740. + [[ -n binary ]]
  3741. + __mod_info[$id/$key]=binary
  3742. + [[ 0 -eq 1 ]]
  3743. + local pkg_origin=binary
  3744. + local has_binary=0
  3745. + local has_net=0
  3746. ++ getIPAddress
  3747. ++ local dev=
  3748. ++ local ip_route
  3749. +++ ip -4 route get 8.8.8.8
  3750. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3751. cache '
  3752. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3753. cache ]]
  3754. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3755. cache ]]
  3756. ++ grep -oP 'src \K[^\s]+'
  3757. + local ip=192.168.2.5
  3758. + [[ -n 192.168.2.5 ]]
  3759. + has_net=1
  3760. + hasFlag '' nonet
  3761. + local string=
  3762. + local flag=nonet
  3763. + [[ -z '' ]]
  3764. + return 1
  3765. + [[ 1 -eq 1 ]]
  3766. + rp_hasBinary lr-quicknes
  3767. + local id=lr-quicknes
  3768. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  3769. ++ rp_getBinaryUrl lr-quicknes
  3770. ++ local id=lr-quicknes
  3771. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
  3772. ++ fnExists install_bin_lr-quicknes
  3773. ++ declare -f install_bin_lr-quicknes
  3774. ++ return 1
  3775. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
  3776. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
  3777. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz == \n\o\t\e\s\t ]]
  3778. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz ]]
  3779. + [[ -n '' ]]
  3780. + local ret=1
  3781. + rp_hasBinaries
  3782. + [[ 1 -eq 1 ]]
  3783. + return 0
  3784. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
  3785. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
  3786. + local ret
  3787. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-quicknes.tar.gz
  3788. + ret=28
  3789. + [[ 28 -eq 0 ]]
  3790. + [[ 28 -eq 22 ]]
  3791. + return 2
  3792. + ret=2
  3793. + [[ 2 -ne 2 ]]
  3794. + return 2
  3795. + local ret=2
  3796. + [[ 2 -eq 0 ]]
  3797. + [[ 2 -eq 2 ]]
  3798. + has_net=0
  3799. + [[ 0 -eq 0 ]]
  3800. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  3801. + return 1
  3802. + return 1
  3803. + for id in ${__mod_id[@]}
  3804. + rp_isInstalled lr-scummvm
  3805. + local id=lr-scummvm
  3806. + local md_inst=/opt/retropie/libretrocores/lr-scummvm
  3807. + [[ -d /opt/retropie/libretrocores/lr-scummvm ]]
  3808. + return 1
  3809. + for id in ${__mod_id[@]}
  3810. + rp_isInstalled lr-smsplus-gx
  3811. + local id=lr-smsplus-gx
  3812. + local md_inst=/opt/retropie/libretrocores/lr-smsplus-gx
  3813. + [[ -d /opt/retropie/libretrocores/lr-smsplus-gx ]]
  3814. + return 1
  3815. + for id in ${__mod_id[@]}
  3816. + rp_isInstalled lr-snes9x2002
  3817. + local id=lr-snes9x2002
  3818. + local md_inst=/opt/retropie/libretrocores/lr-snes9x2002
  3819. + [[ -d /opt/retropie/libretrocores/lr-snes9x2002 ]]
  3820. + return 1
  3821. + for id in ${__mod_id[@]}
  3822. + rp_isInstalled lr-snes9x2005
  3823. + local id=lr-snes9x2005
  3824. + local md_inst=/opt/retropie/libretrocores/lr-snes9x2005
  3825. + [[ -d /opt/retropie/libretrocores/lr-snes9x2005 ]]
  3826. + return 0
  3827. + [[ main != \d\e\p\e\n\d\s ]]
  3828. + rp_installModule lr-snes9x2005 _update_
  3829. + local id=lr-snes9x2005
  3830. + local mode=_update_
  3831. + [[ -z _update_ ]]
  3832. + rp_callModule lr-snes9x2005 _update_
  3833. + local md_id=lr-snes9x2005
  3834. + local mode=_update_
  3835. + shift 2
  3836. + rp_hasModule lr-snes9x2005
  3837. + local id=lr-snes9x2005
  3838. + [[ -n 130 ]]
  3839. + return 0
  3840. + rp_isEnabled lr-snes9x2005
  3841. + local id=lr-snes9x2005
  3842. + [[ 1 -eq 0 ]]
  3843. + return 0
  3844. + case "$mode" in
  3845. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  3846. + rp_isInstalled lr-snes9x2005
  3847. + local id=lr-snes9x2005
  3848. + local md_inst=/opt/retropie/libretrocores/lr-snes9x2005
  3849. + [[ -d /opt/retropie/libretrocores/lr-snes9x2005 ]]
  3850. + return 0
  3851. + rp_loadPackageInfo lr-snes9x2005 pkg_origin
  3852. + local id=lr-snes9x2005
  3853. + [[ '' -eq 1 ]]
  3854. + local keys
  3855. + local cache=1
  3856. + [[ -z pkg_origin ]]
  3857. + shift
  3858. + keys=("$@")
  3859. + cache=0
  3860. + local load=0
  3861. ++ rp_getInstallPath lr-snes9x2005
  3862. ++ local id=lr-snes9x2005
  3863. ++ echo /opt/retropie/libretrocores/lr-snes9x2005
  3864. + local pkg_file=/opt/retropie/libretrocores/lr-snes9x2005/retropie.pkg
  3865. + [[ -f /opt/retropie/libretrocores/lr-snes9x2005/retropie.pkg ]]
  3866. + load=1
  3867. + local key
  3868. + local data
  3869. + for key in "${keys[@]}"
  3870. + data=
  3871. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  3872. + data=unknown
  3873. + __mod_info[$id/$key]=unknown
  3874. + [[ 1 -eq 1 ]]
  3875. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-snes9x2005/retropie.pkg
  3876. + data=binary
  3877. + [[ -n binary ]]
  3878. + __mod_info[$id/$key]=binary
  3879. + [[ 0 -eq 1 ]]
  3880. + local pkg_origin=binary
  3881. + local has_binary=0
  3882. + local has_net=0
  3883. ++ getIPAddress
  3884. ++ local dev=
  3885. ++ local ip_route
  3886. +++ ip -4 route get 8.8.8.8
  3887. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3888. cache '
  3889. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3890. cache ]]
  3891. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  3892. cache ]]
  3893. ++ grep -oP 'src \K[^\s]+'
  3894. + local ip=192.168.2.5
  3895. + [[ -n 192.168.2.5 ]]
  3896. + has_net=1
  3897. + hasFlag '' nonet
  3898. + local string=
  3899. + local flag=nonet
  3900. + [[ -z '' ]]
  3901. + return 1
  3902. + [[ 1 -eq 1 ]]
  3903. + rp_hasBinary lr-snes9x2005
  3904. + local id=lr-snes9x2005
  3905. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  3906. ++ rp_getBinaryUrl lr-snes9x2005
  3907. ++ local id=lr-snes9x2005
  3908. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
  3909. ++ fnExists install_bin_lr-snes9x2005
  3910. ++ declare -f install_bin_lr-snes9x2005
  3911. ++ return 1
  3912. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
  3913. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
  3914. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz == \n\o\t\e\s\t ]]
  3915. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz ]]
  3916. + [[ -n '' ]]
  3917. + local ret=1
  3918. + rp_hasBinaries
  3919. + [[ 1 -eq 1 ]]
  3920. + return 0
  3921. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
  3922. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
  3923. + local ret
  3924. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2005.tar.gz
  3925. + ret=28
  3926. + [[ 28 -eq 0 ]]
  3927. + [[ 28 -eq 22 ]]
  3928. + return 2
  3929. + ret=2
  3930. + [[ 2 -ne 2 ]]
  3931. + return 2
  3932. + local ret=2
  3933. + [[ 2 -eq 0 ]]
  3934. + [[ 2 -eq 2 ]]
  3935. + has_net=0
  3936. + [[ 0 -eq 0 ]]
  3937. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  3938. + return 1
  3939. + return 1
  3940. + for id in ${__mod_id[@]}
  3941. + rp_isInstalled lr-snes9x2010
  3942. + local id=lr-snes9x2010
  3943. + local md_inst=/opt/retropie/libretrocores/lr-snes9x2010
  3944. + [[ -d /opt/retropie/libretrocores/lr-snes9x2010 ]]
  3945. + return 0
  3946. + [[ main != \d\e\p\e\n\d\s ]]
  3947. + rp_installModule lr-snes9x2010 _update_
  3948. + local id=lr-snes9x2010
  3949. + local mode=_update_
  3950. + [[ -z _update_ ]]
  3951. + rp_callModule lr-snes9x2010 _update_
  3952. + local md_id=lr-snes9x2010
  3953. + local mode=_update_
  3954. + shift 2
  3955. + rp_hasModule lr-snes9x2010
  3956. + local id=lr-snes9x2010
  3957. + [[ -n 131 ]]
  3958. + return 0
  3959. + rp_isEnabled lr-snes9x2010
  3960. + local id=lr-snes9x2010
  3961. + [[ 1 -eq 0 ]]
  3962. + return 0
  3963. + case "$mode" in
  3964. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  3965. + rp_isInstalled lr-snes9x2010
  3966. + local id=lr-snes9x2010
  3967. + local md_inst=/opt/retropie/libretrocores/lr-snes9x2010
  3968. + [[ -d /opt/retropie/libretrocores/lr-snes9x2010 ]]
  3969. + return 0
  3970. + rp_loadPackageInfo lr-snes9x2010 pkg_origin
  3971. + local id=lr-snes9x2010
  3972. + [[ '' -eq 1 ]]
  3973. + local keys
  3974. + local cache=1
  3975. + [[ -z pkg_origin ]]
  3976. + shift
  3977. + keys=("$@")
  3978. + cache=0
  3979. + local load=0
  3980. ++ rp_getInstallPath lr-snes9x2010
  3981. ++ local id=lr-snes9x2010
  3982. ++ echo /opt/retropie/libretrocores/lr-snes9x2010
  3983. + local pkg_file=/opt/retropie/libretrocores/lr-snes9x2010/retropie.pkg
  3984. + [[ -f /opt/retropie/libretrocores/lr-snes9x2010/retropie.pkg ]]
  3985. + load=1
  3986. + local key
  3987. + local data
  3988. + for key in "${keys[@]}"
  3989. + data=
  3990. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  3991. + data=unknown
  3992. + __mod_info[$id/$key]=unknown
  3993. + [[ 1 -eq 1 ]]
  3994. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-snes9x2010/retropie.pkg
  3995. + data=binary
  3996. + [[ -n binary ]]
  3997. + __mod_info[$id/$key]=binary
  3998. + [[ 0 -eq 1 ]]
  3999. + local pkg_origin=binary
  4000. + local has_binary=0
  4001. + local has_net=0
  4002. ++ getIPAddress
  4003. ++ local dev=
  4004. ++ local ip_route
  4005. +++ ip -4 route get 8.8.8.8
  4006. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4007. cache '
  4008. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4009. cache ]]
  4010. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4011. cache ]]
  4012. ++ grep -oP 'src \K[^\s]+'
  4013. + local ip=192.168.2.5
  4014. + [[ -n 192.168.2.5 ]]
  4015. + has_net=1
  4016. + hasFlag '' nonet
  4017. + local string=
  4018. + local flag=nonet
  4019. + [[ -z '' ]]
  4020. + return 1
  4021. + [[ 1 -eq 1 ]]
  4022. + rp_hasBinary lr-snes9x2010
  4023. + local id=lr-snes9x2010
  4024. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  4025. ++ rp_getBinaryUrl lr-snes9x2010
  4026. ++ local id=lr-snes9x2010
  4027. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
  4028. ++ fnExists install_bin_lr-snes9x2010
  4029. ++ declare -f install_bin_lr-snes9x2010
  4030. ++ return 1
  4031. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
  4032. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
  4033. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz == \n\o\t\e\s\t ]]
  4034. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz ]]
  4035. + [[ -n '' ]]
  4036. + local ret=1
  4037. + rp_hasBinaries
  4038. + [[ 1 -eq 1 ]]
  4039. + return 0
  4040. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
  4041. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
  4042. + local ret
  4043. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-snes9x2010.tar.gz
  4044. + ret=28
  4045. + [[ 28 -eq 0 ]]
  4046. + [[ 28 -eq 22 ]]
  4047. + return 2
  4048. + ret=2
  4049. + [[ 2 -ne 2 ]]
  4050. + return 2
  4051. + local ret=2
  4052. + [[ 2 -eq 0 ]]
  4053. + [[ 2 -eq 2 ]]
  4054. + has_net=0
  4055. + [[ 0 -eq 0 ]]
  4056. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  4057. + return 1
  4058. + return 1
  4059. + for id in ${__mod_id[@]}
  4060. + rp_isInstalled lr-snes9x
  4061. + local id=lr-snes9x
  4062. + local md_inst=/opt/retropie/libretrocores/lr-snes9x
  4063. + [[ -d /opt/retropie/libretrocores/lr-snes9x ]]
  4064. + return 1
  4065. + for id in ${__mod_id[@]}
  4066. + rp_isInstalled lr-stella2014
  4067. + local id=lr-stella2014
  4068. + local md_inst=/opt/retropie/libretrocores/lr-stella2014
  4069. + [[ -d /opt/retropie/libretrocores/lr-stella2014 ]]
  4070. + return 0
  4071. + [[ main != \d\e\p\e\n\d\s ]]
  4072. + rp_installModule lr-stella2014 _update_
  4073. + local id=lr-stella2014
  4074. + local mode=_update_
  4075. + [[ -z _update_ ]]
  4076. + rp_callModule lr-stella2014 _update_
  4077. + local md_id=lr-stella2014
  4078. + local mode=_update_
  4079. + shift 2
  4080. + rp_hasModule lr-stella2014
  4081. + local id=lr-stella2014
  4082. + [[ -n 133 ]]
  4083. + return 0
  4084. + rp_isEnabled lr-stella2014
  4085. + local id=lr-stella2014
  4086. + [[ 1 -eq 0 ]]
  4087. + return 0
  4088. + case "$mode" in
  4089. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  4090. + rp_isInstalled lr-stella2014
  4091. + local id=lr-stella2014
  4092. + local md_inst=/opt/retropie/libretrocores/lr-stella2014
  4093. + [[ -d /opt/retropie/libretrocores/lr-stella2014 ]]
  4094. + return 0
  4095. + rp_loadPackageInfo lr-stella2014 pkg_origin
  4096. + local id=lr-stella2014
  4097. + [[ '' -eq 1 ]]
  4098. + local keys
  4099. + local cache=1
  4100. + [[ -z pkg_origin ]]
  4101. + shift
  4102. + keys=("$@")
  4103. + cache=0
  4104. + local load=0
  4105. ++ rp_getInstallPath lr-stella2014
  4106. ++ local id=lr-stella2014
  4107. ++ echo /opt/retropie/libretrocores/lr-stella2014
  4108. + local pkg_file=/opt/retropie/libretrocores/lr-stella2014/retropie.pkg
  4109. + [[ -f /opt/retropie/libretrocores/lr-stella2014/retropie.pkg ]]
  4110. + load=1
  4111. + local key
  4112. + local data
  4113. + for key in "${keys[@]}"
  4114. + data=
  4115. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  4116. + data=unknown
  4117. + __mod_info[$id/$key]=unknown
  4118. + [[ 1 -eq 1 ]]
  4119. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-stella2014/retropie.pkg
  4120. + data=binary
  4121. + [[ -n binary ]]
  4122. + __mod_info[$id/$key]=binary
  4123. + [[ 0 -eq 1 ]]
  4124. + local pkg_origin=binary
  4125. + local has_binary=0
  4126. + local has_net=0
  4127. ++ getIPAddress
  4128. ++ local dev=
  4129. ++ local ip_route
  4130. +++ ip -4 route get 8.8.8.8
  4131. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4132. cache '
  4133. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4134. cache ]]
  4135. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4136. cache ]]
  4137. ++ grep -oP 'src \K[^\s]+'
  4138. + local ip=192.168.2.5
  4139. + [[ -n 192.168.2.5 ]]
  4140. + has_net=1
  4141. + hasFlag '' nonet
  4142. + local string=
  4143. + local flag=nonet
  4144. + [[ -z '' ]]
  4145. + return 1
  4146. + [[ 1 -eq 1 ]]
  4147. + rp_hasBinary lr-stella2014
  4148. + local id=lr-stella2014
  4149. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  4150. ++ rp_getBinaryUrl lr-stella2014
  4151. ++ local id=lr-stella2014
  4152. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
  4153. ++ fnExists install_bin_lr-stella2014
  4154. ++ declare -f install_bin_lr-stella2014
  4155. ++ return 1
  4156. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
  4157. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
  4158. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz == \n\o\t\e\s\t ]]
  4159. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz ]]
  4160. + [[ -n '' ]]
  4161. + local ret=1
  4162. + rp_hasBinaries
  4163. + [[ 1 -eq 1 ]]
  4164. + return 0
  4165. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
  4166. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
  4167. + local ret
  4168. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-stella2014.tar.gz
  4169. + ret=28
  4170. + [[ 28 -eq 0 ]]
  4171. + [[ 28 -eq 22 ]]
  4172. + return 2
  4173. + ret=2
  4174. + [[ 2 -ne 2 ]]
  4175. + return 2
  4176. + local ret=2
  4177. + [[ 2 -eq 0 ]]
  4178. + [[ 2 -eq 2 ]]
  4179. + has_net=0
  4180. + [[ 0 -eq 0 ]]
  4181. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  4182. + return 1
  4183. + return 1
  4184. + for id in ${__mod_id[@]}
  4185. + rp_isInstalled lr-superflappybirds
  4186. + local id=lr-superflappybirds
  4187. + local md_inst=/opt/retropie/libretrocores/lr-superflappybirds
  4188. + [[ -d /opt/retropie/libretrocores/lr-superflappybirds ]]
  4189. + return 1
  4190. + for id in ${__mod_id[@]}
  4191. + rp_isInstalled lr-tgbdual
  4192. + local id=lr-tgbdual
  4193. + local md_inst=/opt/retropie/libretrocores/lr-tgbdual
  4194. + [[ -d /opt/retropie/libretrocores/lr-tgbdual ]]
  4195. + return 1
  4196. + for id in ${__mod_id[@]}
  4197. + rp_isInstalled lr-theodore
  4198. + local id=lr-theodore
  4199. + local md_inst=/opt/retropie/libretrocores/lr-theodore
  4200. + [[ -d /opt/retropie/libretrocores/lr-theodore ]]
  4201. + return 1
  4202. + for id in ${__mod_id[@]}
  4203. + rp_isInstalled lr-tyrquake
  4204. + local id=lr-tyrquake
  4205. + local md_inst=/opt/retropie/libretrocores/lr-tyrquake
  4206. + [[ -d /opt/retropie/libretrocores/lr-tyrquake ]]
  4207. + return 0
  4208. + [[ opt != \d\e\p\e\n\d\s ]]
  4209. + rp_installModule lr-tyrquake _update_
  4210. + local id=lr-tyrquake
  4211. + local mode=_update_
  4212. + [[ -z _update_ ]]
  4213. + rp_callModule lr-tyrquake _update_
  4214. + local md_id=lr-tyrquake
  4215. + local mode=_update_
  4216. + shift 2
  4217. + rp_hasModule lr-tyrquake
  4218. + local id=lr-tyrquake
  4219. + [[ -n 137 ]]
  4220. + return 0
  4221. + rp_isEnabled lr-tyrquake
  4222. + local id=lr-tyrquake
  4223. + [[ 1 -eq 0 ]]
  4224. + return 0
  4225. + case "$mode" in
  4226. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  4227. + rp_isInstalled lr-tyrquake
  4228. + local id=lr-tyrquake
  4229. + local md_inst=/opt/retropie/libretrocores/lr-tyrquake
  4230. + [[ -d /opt/retropie/libretrocores/lr-tyrquake ]]
  4231. + return 0
  4232. + rp_loadPackageInfo lr-tyrquake pkg_origin
  4233. + local id=lr-tyrquake
  4234. + [[ '' -eq 1 ]]
  4235. + local keys
  4236. + local cache=1
  4237. + [[ -z pkg_origin ]]
  4238. + shift
  4239. + keys=("$@")
  4240. + cache=0
  4241. + local load=0
  4242. ++ rp_getInstallPath lr-tyrquake
  4243. ++ local id=lr-tyrquake
  4244. ++ echo /opt/retropie/libretrocores/lr-tyrquake
  4245. + local pkg_file=/opt/retropie/libretrocores/lr-tyrquake/retropie.pkg
  4246. + [[ -f /opt/retropie/libretrocores/lr-tyrquake/retropie.pkg ]]
  4247. + load=1
  4248. + local key
  4249. + local data
  4250. + for key in "${keys[@]}"
  4251. + data=
  4252. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  4253. + data=unknown
  4254. + __mod_info[$id/$key]=unknown
  4255. + [[ 1 -eq 1 ]]
  4256. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-tyrquake/retropie.pkg
  4257. + data=binary
  4258. + [[ -n binary ]]
  4259. + __mod_info[$id/$key]=binary
  4260. + [[ 0 -eq 1 ]]
  4261. + local pkg_origin=binary
  4262. + local has_binary=0
  4263. + local has_net=0
  4264. ++ getIPAddress
  4265. ++ local dev=
  4266. ++ local ip_route
  4267. +++ ip -4 route get 8.8.8.8
  4268. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4269. cache '
  4270. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4271. cache ]]
  4272. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4273. cache ]]
  4274. ++ grep -oP 'src \K[^\s]+'
  4275. + local ip=192.168.2.5
  4276. + [[ -n 192.168.2.5 ]]
  4277. + has_net=1
  4278. + hasFlag '' nonet
  4279. + local string=
  4280. + local flag=nonet
  4281. + [[ -z '' ]]
  4282. + return 1
  4283. + [[ 1 -eq 1 ]]
  4284. + rp_hasBinary lr-tyrquake
  4285. + local id=lr-tyrquake
  4286. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  4287. ++ rp_getBinaryUrl lr-tyrquake
  4288. ++ local id=lr-tyrquake
  4289. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
  4290. ++ fnExists install_bin_lr-tyrquake
  4291. ++ declare -f install_bin_lr-tyrquake
  4292. ++ return 1
  4293. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
  4294. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
  4295. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz == \n\o\t\e\s\t ]]
  4296. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz ]]
  4297. + [[ -n '' ]]
  4298. + local ret=1
  4299. + rp_hasBinaries
  4300. + [[ 1 -eq 1 ]]
  4301. + return 0
  4302. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
  4303. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
  4304. + local ret
  4305. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-tyrquake.tar.gz
  4306. + ret=28
  4307. + [[ 28 -eq 0 ]]
  4308. + [[ 28 -eq 22 ]]
  4309. + return 2
  4310. + ret=2
  4311. + [[ 2 -ne 2 ]]
  4312. + return 2
  4313. + local ret=2
  4314. + [[ 2 -eq 0 ]]
  4315. + [[ 2 -eq 2 ]]
  4316. + has_net=0
  4317. + [[ 0 -eq 0 ]]
  4318. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  4319. + return 1
  4320. + return 1
  4321. + for id in ${__mod_id[@]}
  4322. + rp_isInstalled lr-vba-next
  4323. + local id=lr-vba-next
  4324. + local md_inst=/opt/retropie/libretrocores/lr-vba-next
  4325. + [[ -d /opt/retropie/libretrocores/lr-vba-next ]]
  4326. + return 0
  4327. + [[ main != \d\e\p\e\n\d\s ]]
  4328. + rp_installModule lr-vba-next _update_
  4329. + local id=lr-vba-next
  4330. + local mode=_update_
  4331. + [[ -z _update_ ]]
  4332. + rp_callModule lr-vba-next _update_
  4333. + local md_id=lr-vba-next
  4334. + local mode=_update_
  4335. + shift 2
  4336. + rp_hasModule lr-vba-next
  4337. + local id=lr-vba-next
  4338. + [[ -n 138 ]]
  4339. + return 0
  4340. + rp_isEnabled lr-vba-next
  4341. + local id=lr-vba-next
  4342. + [[ 1 -eq 0 ]]
  4343. + return 0
  4344. + case "$mode" in
  4345. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  4346. + rp_isInstalled lr-vba-next
  4347. + local id=lr-vba-next
  4348. + local md_inst=/opt/retropie/libretrocores/lr-vba-next
  4349. + [[ -d /opt/retropie/libretrocores/lr-vba-next ]]
  4350. + return 0
  4351. + rp_loadPackageInfo lr-vba-next pkg_origin
  4352. + local id=lr-vba-next
  4353. + [[ '' -eq 1 ]]
  4354. + local keys
  4355. + local cache=1
  4356. + [[ -z pkg_origin ]]
  4357. + shift
  4358. + keys=("$@")
  4359. + cache=0
  4360. + local load=0
  4361. ++ rp_getInstallPath lr-vba-next
  4362. ++ local id=lr-vba-next
  4363. ++ echo /opt/retropie/libretrocores/lr-vba-next
  4364. + local pkg_file=/opt/retropie/libretrocores/lr-vba-next/retropie.pkg
  4365. + [[ -f /opt/retropie/libretrocores/lr-vba-next/retropie.pkg ]]
  4366. + load=1
  4367. + local key
  4368. + local data
  4369. + for key in "${keys[@]}"
  4370. + data=
  4371. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  4372. + data=unknown
  4373. + __mod_info[$id/$key]=unknown
  4374. + [[ 1 -eq 1 ]]
  4375. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-vba-next/retropie.pkg
  4376. + data=binary
  4377. + [[ -n binary ]]
  4378. + __mod_info[$id/$key]=binary
  4379. + [[ 0 -eq 1 ]]
  4380. + local pkg_origin=binary
  4381. + local has_binary=0
  4382. + local has_net=0
  4383. ++ getIPAddress
  4384. ++ local dev=
  4385. ++ local ip_route
  4386. +++ ip -4 route get 8.8.8.8
  4387. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4388. cache '
  4389. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4390. cache ]]
  4391. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4392. cache ]]
  4393. ++ grep -oP 'src \K[^\s]+'
  4394. + local ip=192.168.2.5
  4395. + [[ -n 192.168.2.5 ]]
  4396. + has_net=1
  4397. + hasFlag '!armv6' nonet
  4398. + local 'string=!armv6'
  4399. + local flag=nonet
  4400. + [[ -z !armv6 ]]
  4401. + [[ -z nonet ]]
  4402. + [[ !armv6 =~ (^| )nonet($| ) ]]
  4403. + return 1
  4404. + [[ 1 -eq 1 ]]
  4405. + rp_hasBinary lr-vba-next
  4406. + local id=lr-vba-next
  4407. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  4408. ++ rp_getBinaryUrl lr-vba-next
  4409. ++ local id=lr-vba-next
  4410. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
  4411. ++ fnExists install_bin_lr-vba-next
  4412. ++ declare -f install_bin_lr-vba-next
  4413. ++ return 1
  4414. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
  4415. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
  4416. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz == \n\o\t\e\s\t ]]
  4417. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz ]]
  4418. + [[ -n '' ]]
  4419. + local ret=1
  4420. + rp_hasBinaries
  4421. + [[ 1 -eq 1 ]]
  4422. + return 0
  4423. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
  4424. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
  4425. + local ret
  4426. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vba-next.tar.gz
  4427. + ret=28
  4428. + [[ 28 -eq 0 ]]
  4429. + [[ 28 -eq 22 ]]
  4430. + return 2
  4431. + ret=2
  4432. + [[ 2 -ne 2 ]]
  4433. + return 2
  4434. + local ret=2
  4435. + [[ 2 -eq 0 ]]
  4436. + [[ 2 -eq 2 ]]
  4437. + has_net=0
  4438. + [[ 0 -eq 0 ]]
  4439. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  4440. + return 1
  4441. + return 1
  4442. + for id in ${__mod_id[@]}
  4443. + rp_isInstalled lr-vecx
  4444. + local id=lr-vecx
  4445. + local md_inst=/opt/retropie/libretrocores/lr-vecx
  4446. + [[ -d /opt/retropie/libretrocores/lr-vecx ]]
  4447. + return 0
  4448. + [[ main != \d\e\p\e\n\d\s ]]
  4449. + rp_installModule lr-vecx _update_
  4450. + local id=lr-vecx
  4451. + local mode=_update_
  4452. + [[ -z _update_ ]]
  4453. + rp_callModule lr-vecx _update_
  4454. + local md_id=lr-vecx
  4455. + local mode=_update_
  4456. + shift 2
  4457. + rp_hasModule lr-vecx
  4458. + local id=lr-vecx
  4459. + [[ -n 139 ]]
  4460. + return 0
  4461. + rp_isEnabled lr-vecx
  4462. + local id=lr-vecx
  4463. + [[ 1 -eq 0 ]]
  4464. + return 0
  4465. + case "$mode" in
  4466. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  4467. + rp_isInstalled lr-vecx
  4468. + local id=lr-vecx
  4469. + local md_inst=/opt/retropie/libretrocores/lr-vecx
  4470. + [[ -d /opt/retropie/libretrocores/lr-vecx ]]
  4471. + return 0
  4472. + rp_loadPackageInfo lr-vecx pkg_origin
  4473. + local id=lr-vecx
  4474. + [[ '' -eq 1 ]]
  4475. + local keys
  4476. + local cache=1
  4477. + [[ -z pkg_origin ]]
  4478. + shift
  4479. + keys=("$@")
  4480. + cache=0
  4481. + local load=0
  4482. ++ rp_getInstallPath lr-vecx
  4483. ++ local id=lr-vecx
  4484. ++ echo /opt/retropie/libretrocores/lr-vecx
  4485. + local pkg_file=/opt/retropie/libretrocores/lr-vecx/retropie.pkg
  4486. + [[ -f /opt/retropie/libretrocores/lr-vecx/retropie.pkg ]]
  4487. + load=1
  4488. + local key
  4489. + local data
  4490. + for key in "${keys[@]}"
  4491. + data=
  4492. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  4493. + data=unknown
  4494. + __mod_info[$id/$key]=unknown
  4495. + [[ 1 -eq 1 ]]
  4496. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/libretrocores/lr-vecx/retropie.pkg
  4497. + data=binary
  4498. + [[ -n binary ]]
  4499. + __mod_info[$id/$key]=binary
  4500. + [[ 0 -eq 1 ]]
  4501. + local pkg_origin=binary
  4502. + local has_binary=0
  4503. + local has_net=0
  4504. ++ getIPAddress
  4505. ++ local dev=
  4506. ++ local ip_route
  4507. +++ ip -4 route get 8.8.8.8
  4508. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4509. cache '
  4510. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4511. cache ]]
  4512. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4513. cache ]]
  4514. ++ grep -oP 'src \K[^\s]+'
  4515. + local ip=192.168.2.5
  4516. + [[ -n 192.168.2.5 ]]
  4517. + has_net=1
  4518. + hasFlag '' nonet
  4519. + local string=
  4520. + local flag=nonet
  4521. + [[ -z '' ]]
  4522. + return 1
  4523. + [[ 1 -eq 1 ]]
  4524. + rp_hasBinary lr-vecx
  4525. + local id=lr-vecx
  4526. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  4527. ++ rp_getBinaryUrl lr-vecx
  4528. ++ local id=lr-vecx
  4529. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
  4530. ++ fnExists install_bin_lr-vecx
  4531. ++ declare -f install_bin_lr-vecx
  4532. ++ return 1
  4533. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
  4534. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
  4535. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz == \n\o\t\e\s\t ]]
  4536. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz ]]
  4537. + [[ -n '' ]]
  4538. + local ret=1
  4539. + rp_hasBinaries
  4540. + [[ 1 -eq 1 ]]
  4541. + return 0
  4542. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
  4543. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
  4544. + local ret
  4545. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/libretrocores/lr-vecx.tar.gz
  4546. + ret=28
  4547. + [[ 28 -eq 0 ]]
  4548. + [[ 28 -eq 22 ]]
  4549. + return 2
  4550. + ret=2
  4551. + [[ 2 -ne 2 ]]
  4552. + return 2
  4553. + local ret=2
  4554. + [[ 2 -eq 0 ]]
  4555. + [[ 2 -eq 2 ]]
  4556. + has_net=0
  4557. + [[ 0 -eq 0 ]]
  4558. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  4559. + return 1
  4560. + return 1
  4561. + for id in ${__mod_id[@]}
  4562. + rp_isInstalled lr-vice
  4563. + local id=lr-vice
  4564. + local md_inst=/opt/retropie/libretrocores/lr-vice
  4565. + [[ -d /opt/retropie/libretrocores/lr-vice ]]
  4566. + return 1
  4567. + for id in ${__mod_id[@]}
  4568. + rp_isInstalled lr-virtualjaguar
  4569. + local id=lr-virtualjaguar
  4570. + local md_inst=/opt/retropie/libretrocores/lr-virtualjaguar
  4571. + [[ -d /opt/retropie/libretrocores/lr-virtualjaguar ]]
  4572. + return 1
  4573. + for id in ${__mod_id[@]}
  4574. + rp_isInstalled lr-x1
  4575. + local id=lr-x1
  4576. + local md_inst=/opt/retropie/libretrocores/lr-x1
  4577. + [[ -d /opt/retropie/libretrocores/lr-x1 ]]
  4578. + return 1
  4579. + for id in ${__mod_id[@]}
  4580. + rp_isInstalled lr-xrick
  4581. + local id=lr-xrick
  4582. + local md_inst=/opt/retropie/libretrocores/lr-xrick
  4583. + [[ -d /opt/retropie/libretrocores/lr-xrick ]]
  4584. + return 1
  4585. + for id in ${__mod_id[@]}
  4586. + rp_isInstalled lr-yabause
  4587. + local id=lr-yabause
  4588. + local md_inst=/opt/retropie/libretrocores/lr-yabause
  4589. + [[ -d /opt/retropie/libretrocores/lr-yabause ]]
  4590. + return 1
  4591. + for id in ${__mod_id[@]}
  4592. + rp_isInstalled alephone
  4593. + local id=alephone
  4594. + local md_inst=/opt/retropie/ports/alephone
  4595. + [[ -d /opt/retropie/ports/alephone ]]
  4596. + return 1
  4597. + for id in ${__mod_id[@]}
  4598. + rp_isInstalled bombermaaan
  4599. + local id=bombermaaan
  4600. + local md_inst=/opt/retropie/ports/bombermaaan
  4601. + [[ -d /opt/retropie/ports/bombermaaan ]]
  4602. + return 1
  4603. + for id in ${__mod_id[@]}
  4604. + rp_isInstalled cannonball
  4605. + local id=cannonball
  4606. + local md_inst=/opt/retropie/ports/cannonball
  4607. + [[ -d /opt/retropie/ports/cannonball ]]
  4608. + return 1
  4609. + for id in ${__mod_id[@]}
  4610. + rp_isInstalled cdogs-sdl
  4611. + local id=cdogs-sdl
  4612. + local md_inst=/opt/retropie/ports/cdogs-sdl
  4613. + [[ -d /opt/retropie/ports/cdogs-sdl ]]
  4614. + return 1
  4615. + for id in ${__mod_id[@]}
  4616. + rp_isInstalled cgenius
  4617. + local id=cgenius
  4618. + local md_inst=/opt/retropie/ports/cgenius
  4619. + [[ -d /opt/retropie/ports/cgenius ]]
  4620. + return 1
  4621. + for id in ${__mod_id[@]}
  4622. + rp_isInstalled darkplaces-quake
  4623. + local id=darkplaces-quake
  4624. + local md_inst=/opt/retropie/ports/darkplaces-quake
  4625. + [[ -d /opt/retropie/ports/darkplaces-quake ]]
  4626. + return 1
  4627. + for id in ${__mod_id[@]}
  4628. + rp_isInstalled digger
  4629. + local id=digger
  4630. + local md_inst=/opt/retropie/ports/digger
  4631. + [[ -d /opt/retropie/ports/digger ]]
  4632. + return 1
  4633. + for id in ${__mod_id[@]}
  4634. + rp_isInstalled dxx-rebirth
  4635. + local id=dxx-rebirth
  4636. + local md_inst=/opt/retropie/ports/dxx-rebirth
  4637. + [[ -d /opt/retropie/ports/dxx-rebirth ]]
  4638. + return 1
  4639. + for id in ${__mod_id[@]}
  4640. + rp_isInstalled eduke32
  4641. + local id=eduke32
  4642. + local md_inst=/opt/retropie/ports/eduke32
  4643. + [[ -d /opt/retropie/ports/eduke32 ]]
  4644. + return 0
  4645. + [[ opt != \d\e\p\e\n\d\s ]]
  4646. + rp_installModule eduke32 _update_
  4647. + local id=eduke32
  4648. + local mode=_update_
  4649. + [[ -z _update_ ]]
  4650. + rp_callModule eduke32 _update_
  4651. + local md_id=eduke32
  4652. + local mode=_update_
  4653. + shift 2
  4654. + rp_hasModule eduke32
  4655. + local id=eduke32
  4656. + [[ -n 153 ]]
  4657. + return 0
  4658. + rp_isEnabled eduke32
  4659. + local id=eduke32
  4660. + [[ 1 -eq 0 ]]
  4661. + return 0
  4662. + case "$mode" in
  4663. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  4664. + rp_isInstalled eduke32
  4665. + local id=eduke32
  4666. + local md_inst=/opt/retropie/ports/eduke32
  4667. + [[ -d /opt/retropie/ports/eduke32 ]]
  4668. + return 0
  4669. + rp_loadPackageInfo eduke32 pkg_origin
  4670. + local id=eduke32
  4671. + [[ '' -eq 1 ]]
  4672. + local keys
  4673. + local cache=1
  4674. + [[ -z pkg_origin ]]
  4675. + shift
  4676. + keys=("$@")
  4677. + cache=0
  4678. + local load=0
  4679. ++ rp_getInstallPath eduke32
  4680. ++ local id=eduke32
  4681. ++ echo /opt/retropie/ports/eduke32
  4682. + local pkg_file=/opt/retropie/ports/eduke32/retropie.pkg
  4683. + [[ -f /opt/retropie/ports/eduke32/retropie.pkg ]]
  4684. + load=1
  4685. + local key
  4686. + local data
  4687. + for key in "${keys[@]}"
  4688. + data=
  4689. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  4690. + data=unknown
  4691. + __mod_info[$id/$key]=unknown
  4692. + [[ 1 -eq 1 ]]
  4693. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/ports/eduke32/retropie.pkg
  4694. + data=binary
  4695. + [[ -n binary ]]
  4696. + __mod_info[$id/$key]=binary
  4697. + [[ 0 -eq 1 ]]
  4698. + local pkg_origin=binary
  4699. + local has_binary=0
  4700. + local has_net=0
  4701. ++ getIPAddress
  4702. ++ local dev=
  4703. ++ local ip_route
  4704. +++ ip -4 route get 8.8.8.8
  4705. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4706. cache '
  4707. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4708. cache ]]
  4709. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4710. cache ]]
  4711. ++ grep -oP 'src \K[^\s]+'
  4712. + local ip=192.168.2.5
  4713. + [[ -n 192.168.2.5 ]]
  4714. + has_net=1
  4715. + hasFlag '' nonet
  4716. + local string=
  4717. + local flag=nonet
  4718. + [[ -z '' ]]
  4719. + return 1
  4720. + [[ 1 -eq 1 ]]
  4721. + rp_hasBinary eduke32
  4722. + local id=eduke32
  4723. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  4724. ++ rp_getBinaryUrl eduke32
  4725. ++ local id=eduke32
  4726. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
  4727. ++ fnExists install_bin_eduke32
  4728. ++ declare -f install_bin_eduke32
  4729. ++ return 1
  4730. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
  4731. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
  4732. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz == \n\o\t\e\s\t ]]
  4733. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz ]]
  4734. + [[ -n '' ]]
  4735. + local ret=1
  4736. + rp_hasBinaries
  4737. + [[ 1 -eq 1 ]]
  4738. + return 0
  4739. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
  4740. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
  4741. + local ret
  4742. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/ports/eduke32.tar.gz
  4743. + ret=28
  4744. + [[ 28 -eq 0 ]]
  4745. + [[ 28 -eq 22 ]]
  4746. + return 2
  4747. + ret=2
  4748. + [[ 2 -ne 2 ]]
  4749. + return 2
  4750. + local ret=2
  4751. + [[ 2 -eq 0 ]]
  4752. + [[ 2 -eq 2 ]]
  4753. + has_net=0
  4754. + [[ 0 -eq 0 ]]
  4755. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  4756. + return 1
  4757. + return 1
  4758. + for id in ${__mod_id[@]}
  4759. + rp_isInstalled gemrb
  4760. + local id=gemrb
  4761. + local md_inst=/opt/retropie/ports/gemrb
  4762. + [[ -d /opt/retropie/ports/gemrb ]]
  4763. + return 1
  4764. + for id in ${__mod_id[@]}
  4765. + rp_isInstalled giana
  4766. + local id=giana
  4767. + local md_inst=/opt/retropie/ports/giana
  4768. + [[ -d /opt/retropie/ports/giana ]]
  4769. + return 1
  4770. + for id in ${__mod_id[@]}
  4771. + rp_isInstalled ionfury
  4772. + local id=ionfury
  4773. + local md_inst=/opt/retropie/ports/ionfury
  4774. + [[ -d /opt/retropie/ports/ionfury ]]
  4775. + return 1
  4776. + for id in ${__mod_id[@]}
  4777. + rp_isInstalled ioquake3
  4778. + local id=ioquake3
  4779. + local md_inst=/opt/retropie/ports/ioquake3
  4780. + [[ -d /opt/retropie/ports/ioquake3 ]]
  4781. + return 1
  4782. + for id in ${__mod_id[@]}
  4783. + rp_isInstalled jumpnbump
  4784. + local id=jumpnbump
  4785. + local md_inst=/opt/retropie/ports/jumpnbump
  4786. + [[ -d /opt/retropie/ports/jumpnbump ]]
  4787. + return 1
  4788. + for id in ${__mod_id[@]}
  4789. + rp_isInstalled kodi
  4790. + local id=kodi
  4791. + local md_inst=/opt/retropie/ports/kodi
  4792. + [[ -d /opt/retropie/ports/kodi ]]
  4793. + return 1
  4794. + for id in ${__mod_id[@]}
  4795. + rp_isInstalled lincity-ng
  4796. + local id=lincity-ng
  4797. + local md_inst=/opt/retropie/ports/lincity-ng
  4798. + [[ -d /opt/retropie/ports/lincity-ng ]]
  4799. + return 1
  4800. + for id in ${__mod_id[@]}
  4801. + rp_isInstalled love-0.10.2
  4802. + local id=love-0.10.2
  4803. + local md_inst=/opt/retropie/ports/love-0.10.2
  4804. + [[ -d /opt/retropie/ports/love-0.10.2 ]]
  4805. + return 1
  4806. + for id in ${__mod_id[@]}
  4807. + rp_isInstalled love
  4808. + local id=love
  4809. + local md_inst=/opt/retropie/ports/love
  4810. + [[ -d /opt/retropie/ports/love ]]
  4811. + return 1
  4812. + for id in ${__mod_id[@]}
  4813. + rp_isInstalled lzdoom
  4814. + local id=lzdoom
  4815. + local md_inst=/opt/retropie/ports/lzdoom
  4816. + [[ -d /opt/retropie/ports/lzdoom ]]
  4817. + return 1
  4818. + for id in ${__mod_id[@]}
  4819. + rp_isInstalled micropolis
  4820. + local id=micropolis
  4821. + local md_inst=/opt/retropie/ports/micropolis
  4822. + [[ -d /opt/retropie/ports/micropolis ]]
  4823. + return 1
  4824. + for id in ${__mod_id[@]}
  4825. + rp_isInstalled minecraft
  4826. + local id=minecraft
  4827. + local md_inst=/opt/retropie/ports/minecraft
  4828. + [[ -d /opt/retropie/ports/minecraft ]]
  4829. + return 1
  4830. + for id in ${__mod_id[@]}
  4831. + rp_isInstalled mysticmine
  4832. + local id=mysticmine
  4833. + local md_inst=/opt/retropie/ports/mysticmine
  4834. + [[ -d /opt/retropie/ports/mysticmine ]]
  4835. + return 1
  4836. + for id in ${__mod_id[@]}
  4837. + rp_isInstalled openblok
  4838. + local id=openblok
  4839. + local md_inst=/opt/retropie/ports/openblok
  4840. + [[ -d /opt/retropie/ports/openblok ]]
  4841. + return 1
  4842. + for id in ${__mod_id[@]}
  4843. + rp_isInstalled openbor
  4844. + local id=openbor
  4845. + local md_inst=/opt/retropie/ports/openbor
  4846. + [[ -d /opt/retropie/ports/openbor ]]
  4847. + return 1
  4848. + for id in ${__mod_id[@]}
  4849. + rp_isInstalled openpht
  4850. + local id=openpht
  4851. + local md_inst=/opt/retropie/ports/openpht
  4852. + [[ -d /opt/retropie/ports/openpht ]]
  4853. + return 1
  4854. + for id in ${__mod_id[@]}
  4855. + rp_isInstalled openttd
  4856. + local id=openttd
  4857. + local md_inst=/opt/retropie/ports/openttd
  4858. + [[ -d /opt/retropie/ports/openttd ]]
  4859. + return 1
  4860. + for id in ${__mod_id[@]}
  4861. + rp_isInstalled opentyrian
  4862. + local id=opentyrian
  4863. + local md_inst=/opt/retropie/ports/opentyrian
  4864. + [[ -d /opt/retropie/ports/opentyrian ]]
  4865. + return 0
  4866. + [[ opt != \d\e\p\e\n\d\s ]]
  4867. + rp_installModule opentyrian _update_
  4868. + local id=opentyrian
  4869. + local mode=_update_
  4870. + [[ -z _update_ ]]
  4871. + rp_callModule opentyrian _update_
  4872. + local md_id=opentyrian
  4873. + local mode=_update_
  4874. + shift 2
  4875. + rp_hasModule opentyrian
  4876. + local id=opentyrian
  4877. + [[ -n 171 ]]
  4878. + return 0
  4879. + rp_isEnabled opentyrian
  4880. + local id=opentyrian
  4881. + [[ 1 -eq 0 ]]
  4882. + return 0
  4883. + case "$mode" in
  4884. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  4885. + rp_isInstalled opentyrian
  4886. + local id=opentyrian
  4887. + local md_inst=/opt/retropie/ports/opentyrian
  4888. + [[ -d /opt/retropie/ports/opentyrian ]]
  4889. + return 0
  4890. + rp_loadPackageInfo opentyrian pkg_origin
  4891. + local id=opentyrian
  4892. + [[ '' -eq 1 ]]
  4893. + local keys
  4894. + local cache=1
  4895. + [[ -z pkg_origin ]]
  4896. + shift
  4897. + keys=("$@")
  4898. + cache=0
  4899. + local load=0
  4900. ++ rp_getInstallPath opentyrian
  4901. ++ local id=opentyrian
  4902. ++ echo /opt/retropie/ports/opentyrian
  4903. + local pkg_file=/opt/retropie/ports/opentyrian/retropie.pkg
  4904. + [[ -f /opt/retropie/ports/opentyrian/retropie.pkg ]]
  4905. + load=1
  4906. + local key
  4907. + local data
  4908. + for key in "${keys[@]}"
  4909. + data=
  4910. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  4911. + data=unknown
  4912. + __mod_info[$id/$key]=unknown
  4913. + [[ 1 -eq 1 ]]
  4914. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/ports/opentyrian/retropie.pkg
  4915. + data=binary
  4916. + [[ -n binary ]]
  4917. + __mod_info[$id/$key]=binary
  4918. + [[ 0 -eq 1 ]]
  4919. + local pkg_origin=binary
  4920. + local has_binary=0
  4921. + local has_net=0
  4922. ++ getIPAddress
  4923. ++ local dev=
  4924. ++ local ip_route
  4925. +++ ip -4 route get 8.8.8.8
  4926. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4927. cache '
  4928. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4929. cache ]]
  4930. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  4931. cache ]]
  4932. ++ grep -oP 'src \K[^\s]+'
  4933. + local ip=192.168.2.5
  4934. + [[ -n 192.168.2.5 ]]
  4935. + has_net=1
  4936. + hasFlag '' nonet
  4937. + local string=
  4938. + local flag=nonet
  4939. + [[ -z '' ]]
  4940. + return 1
  4941. + [[ 1 -eq 1 ]]
  4942. + rp_hasBinary opentyrian
  4943. + local id=opentyrian
  4944. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  4945. ++ rp_getBinaryUrl opentyrian
  4946. ++ local id=opentyrian
  4947. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
  4948. ++ fnExists install_bin_opentyrian
  4949. ++ declare -f install_bin_opentyrian
  4950. ++ return 1
  4951. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
  4952. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
  4953. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz == \n\o\t\e\s\t ]]
  4954. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz ]]
  4955. + [[ -n '' ]]
  4956. + local ret=1
  4957. + rp_hasBinaries
  4958. + [[ 1 -eq 1 ]]
  4959. + return 0
  4960. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
  4961. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
  4962. + local ret
  4963. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/ports/opentyrian.tar.gz
  4964. + ret=28
  4965. + [[ 28 -eq 0 ]]
  4966. + [[ 28 -eq 22 ]]
  4967. + return 2
  4968. + ret=2
  4969. + [[ 2 -ne 2 ]]
  4970. + return 2
  4971. + local ret=2
  4972. + [[ 2 -eq 0 ]]
  4973. + [[ 2 -eq 2 ]]
  4974. + has_net=0
  4975. + [[ 0 -eq 0 ]]
  4976. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  4977. + return 1
  4978. + return 1
  4979. + for id in ${__mod_id[@]}
  4980. + rp_isInstalled quake3
  4981. + local id=quake3
  4982. + local md_inst=/opt/retropie/ports/quake3
  4983. + [[ -d /opt/retropie/ports/quake3 ]]
  4984. + return 0
  4985. + [[ opt != \d\e\p\e\n\d\s ]]
  4986. + rp_installModule quake3 _update_
  4987. + local id=quake3
  4988. + local mode=_update_
  4989. + [[ -z _update_ ]]
  4990. + rp_callModule quake3 _update_
  4991. + local md_id=quake3
  4992. + local mode=_update_
  4993. + shift 2
  4994. + rp_hasModule quake3
  4995. + local id=quake3
  4996. + [[ -n 172 ]]
  4997. + return 0
  4998. + rp_isEnabled quake3
  4999. + local id=quake3
  5000. + [[ 1 -eq 0 ]]
  5001. + return 0
  5002. + case "$mode" in
  5003. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  5004. + rp_isInstalled quake3
  5005. + local id=quake3
  5006. + local md_inst=/opt/retropie/ports/quake3
  5007. + [[ -d /opt/retropie/ports/quake3 ]]
  5008. + return 0
  5009. + rp_loadPackageInfo quake3 pkg_origin
  5010. + local id=quake3
  5011. + [[ '' -eq 1 ]]
  5012. + local keys
  5013. + local cache=1
  5014. + [[ -z pkg_origin ]]
  5015. + shift
  5016. + keys=("$@")
  5017. + cache=0
  5018. + local load=0
  5019. ++ rp_getInstallPath quake3
  5020. ++ local id=quake3
  5021. ++ echo /opt/retropie/ports/quake3
  5022. + local pkg_file=/opt/retropie/ports/quake3/retropie.pkg
  5023. + [[ -f /opt/retropie/ports/quake3/retropie.pkg ]]
  5024. + load=1
  5025. + local key
  5026. + local data
  5027. + for key in "${keys[@]}"
  5028. + data=
  5029. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  5030. + data=unknown
  5031. + __mod_info[$id/$key]=unknown
  5032. + [[ 1 -eq 1 ]]
  5033. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/ports/quake3/retropie.pkg
  5034. + data=binary
  5035. + [[ -n binary ]]
  5036. + __mod_info[$id/$key]=binary
  5037. + [[ 0 -eq 1 ]]
  5038. + local pkg_origin=binary
  5039. + local has_binary=0
  5040. + local has_net=0
  5041. ++ getIPAddress
  5042. ++ local dev=
  5043. ++ local ip_route
  5044. +++ ip -4 route get 8.8.8.8
  5045. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5046. cache '
  5047. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5048. cache ]]
  5049. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5050. cache ]]
  5051. ++ grep -oP 'src \K[^\s]+'
  5052. + local ip=192.168.2.5
  5053. + [[ -n 192.168.2.5 ]]
  5054. + has_net=1
  5055. + hasFlag '!all videocore' nonet
  5056. + local 'string=!all videocore'
  5057. + local flag=nonet
  5058. + [[ -z !all videocore ]]
  5059. + [[ -z nonet ]]
  5060. + [[ !all videocore =~ (^| )nonet($| ) ]]
  5061. + return 1
  5062. + [[ 1 -eq 1 ]]
  5063. + rp_hasBinary quake3
  5064. + local id=quake3
  5065. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  5066. ++ rp_getBinaryUrl quake3
  5067. ++ local id=quake3
  5068. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
  5069. ++ fnExists install_bin_quake3
  5070. ++ declare -f install_bin_quake3
  5071. ++ return 1
  5072. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
  5073. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
  5074. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz == \n\o\t\e\s\t ]]
  5075. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz ]]
  5076. + [[ -n '' ]]
  5077. + local ret=1
  5078. + rp_hasBinaries
  5079. + [[ 1 -eq 1 ]]
  5080. + return 0
  5081. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
  5082. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
  5083. + local ret
  5084. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/ports/quake3.tar.gz
  5085. + ret=28
  5086. + [[ 28 -eq 0 ]]
  5087. + [[ 28 -eq 22 ]]
  5088. + return 2
  5089. + ret=2
  5090. + [[ 2 -ne 2 ]]
  5091. + return 2
  5092. + local ret=2
  5093. + [[ 2 -eq 0 ]]
  5094. + [[ 2 -eq 2 ]]
  5095. + has_net=0
  5096. + [[ 0 -eq 0 ]]
  5097. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  5098. + return 1
  5099. + return 1
  5100. + for id in ${__mod_id[@]}
  5101. + rp_isInstalled sdlpop
  5102. + local id=sdlpop
  5103. + local md_inst=/opt/retropie/ports/sdlpop
  5104. + [[ -d /opt/retropie/ports/sdlpop ]]
  5105. + return 1
  5106. + for id in ${__mod_id[@]}
  5107. + rp_isInstalled smw
  5108. + local id=smw
  5109. + local md_inst=/opt/retropie/ports/smw
  5110. + [[ -d /opt/retropie/ports/smw ]]
  5111. + return 0
  5112. + [[ opt != \d\e\p\e\n\d\s ]]
  5113. + rp_installModule smw _update_
  5114. + local id=smw
  5115. + local mode=_update_
  5116. + [[ -z _update_ ]]
  5117. + rp_callModule smw _update_
  5118. + local md_id=smw
  5119. + local mode=_update_
  5120. + shift 2
  5121. + rp_hasModule smw
  5122. + local id=smw
  5123. + [[ -n 174 ]]
  5124. + return 0
  5125. + rp_isEnabled smw
  5126. + local id=smw
  5127. + [[ 1 -eq 0 ]]
  5128. + return 0
  5129. + case "$mode" in
  5130. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  5131. + rp_isInstalled smw
  5132. + local id=smw
  5133. + local md_inst=/opt/retropie/ports/smw
  5134. + [[ -d /opt/retropie/ports/smw ]]
  5135. + return 0
  5136. + rp_loadPackageInfo smw pkg_origin
  5137. + local id=smw
  5138. + [[ '' -eq 1 ]]
  5139. + local keys
  5140. + local cache=1
  5141. + [[ -z pkg_origin ]]
  5142. + shift
  5143. + keys=("$@")
  5144. + cache=0
  5145. + local load=0
  5146. ++ rp_getInstallPath smw
  5147. ++ local id=smw
  5148. ++ echo /opt/retropie/ports/smw
  5149. + local pkg_file=/opt/retropie/ports/smw/retropie.pkg
  5150. + [[ -f /opt/retropie/ports/smw/retropie.pkg ]]
  5151. + load=1
  5152. + local key
  5153. + local data
  5154. + for key in "${keys[@]}"
  5155. + data=
  5156. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  5157. + data=unknown
  5158. + __mod_info[$id/$key]=unknown
  5159. + [[ 1 -eq 1 ]]
  5160. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/ports/smw/retropie.pkg
  5161. + data=binary
  5162. + [[ -n binary ]]
  5163. + __mod_info[$id/$key]=binary
  5164. + [[ 0 -eq 1 ]]
  5165. + local pkg_origin=binary
  5166. + local has_binary=0
  5167. + local has_net=0
  5168. ++ getIPAddress
  5169. ++ local dev=
  5170. ++ local ip_route
  5171. +++ ip -4 route get 8.8.8.8
  5172. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5173. cache '
  5174. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5175. cache ]]
  5176. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5177. cache ]]
  5178. ++ grep -oP 'src \K[^\s]+'
  5179. + local ip=192.168.2.5
  5180. + [[ -n 192.168.2.5 ]]
  5181. + has_net=1
  5182. + hasFlag '!mali' nonet
  5183. + local 'string=!mali'
  5184. + local flag=nonet
  5185. + [[ -z !mali ]]
  5186. + [[ -z nonet ]]
  5187. + [[ !mali =~ (^| )nonet($| ) ]]
  5188. + return 1
  5189. + [[ 1 -eq 1 ]]
  5190. + rp_hasBinary smw
  5191. + local id=smw
  5192. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  5193. ++ rp_getBinaryUrl smw
  5194. ++ local id=smw
  5195. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
  5196. ++ fnExists install_bin_smw
  5197. ++ declare -f install_bin_smw
  5198. ++ return 1
  5199. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
  5200. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
  5201. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz == \n\o\t\e\s\t ]]
  5202. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz ]]
  5203. + [[ -n '' ]]
  5204. + local ret=1
  5205. + rp_hasBinaries
  5206. + [[ 1 -eq 1 ]]
  5207. + return 0
  5208. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
  5209. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
  5210. + local ret
  5211. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/ports/smw.tar.gz
  5212. + ret=28
  5213. + [[ 28 -eq 0 ]]
  5214. + [[ 28 -eq 22 ]]
  5215. + return 2
  5216. + ret=2
  5217. + [[ 2 -ne 2 ]]
  5218. + return 2
  5219. + local ret=2
  5220. + [[ 2 -eq 0 ]]
  5221. + [[ 2 -eq 2 ]]
  5222. + has_net=0
  5223. + [[ 0 -eq 0 ]]
  5224. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  5225. + return 1
  5226. + return 1
  5227. + for id in ${__mod_id[@]}
  5228. + rp_isInstalled solarus
  5229. + local id=solarus
  5230. + local md_inst=/opt/retropie/ports/solarus
  5231. + [[ -d /opt/retropie/ports/solarus ]]
  5232. + return 1
  5233. + for id in ${__mod_id[@]}
  5234. + rp_isInstalled splitwolf
  5235. + local id=splitwolf
  5236. + local md_inst=/opt/retropie/ports/splitwolf
  5237. + [[ -d /opt/retropie/ports/splitwolf ]]
  5238. + return 1
  5239. + for id in ${__mod_id[@]}
  5240. + rp_isInstalled srb2
  5241. + local id=srb2
  5242. + local md_inst=/opt/retropie/ports/srb2
  5243. + [[ -d /opt/retropie/ports/srb2 ]]
  5244. + return 1
  5245. + for id in ${__mod_id[@]}
  5246. + rp_isInstalled steamlink
  5247. + local id=steamlink
  5248. + local md_inst=/opt/retropie/ports/steamlink
  5249. + [[ -d /opt/retropie/ports/steamlink ]]
  5250. + return 1
  5251. + for id in ${__mod_id[@]}
  5252. + rp_isInstalled supertux
  5253. + local id=supertux
  5254. + local md_inst=/opt/retropie/ports/supertux
  5255. + [[ -d /opt/retropie/ports/supertux ]]
  5256. + return 1
  5257. + for id in ${__mod_id[@]}
  5258. + rp_isInstalled tyrquake
  5259. + local id=tyrquake
  5260. + local md_inst=/opt/retropie/ports/tyrquake
  5261. + [[ -d /opt/retropie/ports/tyrquake ]]
  5262. + return 1
  5263. + for id in ${__mod_id[@]}
  5264. + rp_isInstalled uqm
  5265. + local id=uqm
  5266. + local md_inst=/opt/retropie/ports/uqm
  5267. + [[ -d /opt/retropie/ports/uqm ]]
  5268. + return 1
  5269. + for id in ${__mod_id[@]}
  5270. + rp_isInstalled vvvvvv
  5271. + local id=vvvvvv
  5272. + local md_inst=/opt/retropie/ports/vvvvvv
  5273. + [[ -d /opt/retropie/ports/vvvvvv ]]
  5274. + return 1
  5275. + for id in ${__mod_id[@]}
  5276. + rp_isInstalled wolf4sdl
  5277. + local id=wolf4sdl
  5278. + local md_inst=/opt/retropie/ports/wolf4sdl
  5279. + [[ -d /opt/retropie/ports/wolf4sdl ]]
  5280. + return 1
  5281. + for id in ${__mod_id[@]}
  5282. + rp_isInstalled xrick
  5283. + local id=xrick
  5284. + local md_inst=/opt/retropie/ports/xrick
  5285. + [[ -d /opt/retropie/ports/xrick ]]
  5286. + return 1
  5287. + for id in ${__mod_id[@]}
  5288. + rp_isInstalled yquake2
  5289. + local id=yquake2
  5290. + local md_inst=/opt/retropie/ports/yquake2
  5291. + [[ -d /opt/retropie/ports/yquake2 ]]
  5292. + return 1
  5293. + for id in ${__mod_id[@]}
  5294. + rp_isInstalled attractmode
  5295. + local id=attractmode
  5296. + local md_inst=/opt/retropie/supplementary/attractmode
  5297. + [[ -d /opt/retropie/supplementary/attractmode ]]
  5298. + return 1
  5299. + for id in ${__mod_id[@]}
  5300. + rp_isInstalled audiosettings
  5301. + local id=audiosettings
  5302. + local md_inst=/opt/retropie/supplementary/audiosettings
  5303. + [[ -d /opt/retropie/supplementary/audiosettings ]]
  5304. + return 1
  5305. + for id in ${__mod_id[@]}
  5306. + rp_isInstalled autostart
  5307. + local id=autostart
  5308. + local md_inst=/opt/retropie/supplementary/autostart
  5309. + [[ -d /opt/retropie/supplementary/autostart ]]
  5310. + return 1
  5311. + for id in ${__mod_id[@]}
  5312. + rp_isInstalled bashwelcometweak
  5313. + local id=bashwelcometweak
  5314. + local md_inst=/opt/retropie/supplementary/bashwelcometweak
  5315. + [[ -d /opt/retropie/supplementary/bashwelcometweak ]]
  5316. + return 0
  5317. + [[ config != \d\e\p\e\n\d\s ]]
  5318. + rp_installModule bashwelcometweak _update_
  5319. + local id=bashwelcometweak
  5320. + local mode=_update_
  5321. + [[ -z _update_ ]]
  5322. + rp_callModule bashwelcometweak _update_
  5323. + local md_id=bashwelcometweak
  5324. + local mode=_update_
  5325. + shift 2
  5326. + rp_hasModule bashwelcometweak
  5327. + local id=bashwelcometweak
  5328. + [[ -n 189 ]]
  5329. + return 0
  5330. + rp_isEnabled bashwelcometweak
  5331. + local id=bashwelcometweak
  5332. + [[ 1 -eq 0 ]]
  5333. + return 0
  5334. + case "$mode" in
  5335. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  5336. + rp_isInstalled bashwelcometweak
  5337. + local id=bashwelcometweak
  5338. + local md_inst=/opt/retropie/supplementary/bashwelcometweak
  5339. + [[ -d /opt/retropie/supplementary/bashwelcometweak ]]
  5340. + return 0
  5341. + rp_loadPackageInfo bashwelcometweak pkg_origin
  5342. + local id=bashwelcometweak
  5343. + [[ '' -eq 1 ]]
  5344. + local keys
  5345. + local cache=1
  5346. + [[ -z pkg_origin ]]
  5347. + shift
  5348. + keys=("$@")
  5349. + cache=0
  5350. + local load=0
  5351. ++ rp_getInstallPath bashwelcometweak
  5352. ++ local id=bashwelcometweak
  5353. ++ echo /opt/retropie/supplementary/bashwelcometweak
  5354. + local pkg_file=/opt/retropie/supplementary/bashwelcometweak/retropie.pkg
  5355. + [[ -f /opt/retropie/supplementary/bashwelcometweak/retropie.pkg ]]
  5356. + load=1
  5357. + local key
  5358. + local data
  5359. + for key in "${keys[@]}"
  5360. + data=
  5361. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  5362. + data=unknown
  5363. + __mod_info[$id/$key]=unknown
  5364. + [[ 1 -eq 1 ]]
  5365. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/bashwelcometweak/retropie.pkg
  5366. + data=source
  5367. + [[ -n source ]]
  5368. + __mod_info[$id/$key]=source
  5369. + [[ 0 -eq 1 ]]
  5370. + local pkg_origin=source
  5371. + local has_binary=0
  5372. + local has_net=0
  5373. ++ getIPAddress
  5374. ++ local dev=
  5375. ++ local ip_route
  5376. +++ ip -4 route get 8.8.8.8
  5377. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5378. cache '
  5379. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5380. cache ]]
  5381. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5382. cache ]]
  5383. ++ grep -oP 'src \K[^\s]+'
  5384. + local ip=192.168.2.5
  5385. + [[ -n 192.168.2.5 ]]
  5386. + has_net=1
  5387. + hasFlag '' nonet
  5388. + local string=
  5389. + local flag=nonet
  5390. + [[ -z '' ]]
  5391. + return 1
  5392. + [[ 1 -eq 1 ]]
  5393. + rp_hasBinary bashwelcometweak
  5394. + local id=bashwelcometweak
  5395. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  5396. ++ rp_getBinaryUrl bashwelcometweak
  5397. ++ local id=bashwelcometweak
  5398. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
  5399. ++ fnExists install_bin_bashwelcometweak
  5400. ++ declare -f install_bin_bashwelcometweak
  5401. ++ return 1
  5402. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
  5403. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
  5404. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz == \n\o\t\e\s\t ]]
  5405. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz ]]
  5406. + [[ -n '' ]]
  5407. + local ret=1
  5408. + rp_hasBinaries
  5409. + [[ 1 -eq 1 ]]
  5410. + return 0
  5411. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
  5412. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
  5413. + local ret
  5414. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/bashwelcometweak.tar.gz
  5415. + ret=28
  5416. + [[ 28 -eq 0 ]]
  5417. + [[ 28 -eq 22 ]]
  5418. + return 2
  5419. + ret=2
  5420. + [[ 2 -ne 2 ]]
  5421. + return 2
  5422. + local ret=2
  5423. + [[ 2 -eq 0 ]]
  5424. + [[ 2 -eq 2 ]]
  5425. + has_net=0
  5426. + [[ 0 -eq 0 ]]
  5427. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  5428. + return 1
  5429. + return 1
  5430. + for id in ${__mod_id[@]}
  5431. + rp_isInstalled bluetooth
  5432. + local id=bluetooth
  5433. + local md_inst=/opt/retropie/supplementary/bluetooth
  5434. + [[ -d /opt/retropie/supplementary/bluetooth ]]
  5435. + return 1
  5436. + for id in ${__mod_id[@]}
  5437. + rp_isInstalled configedit
  5438. + local id=configedit
  5439. + local md_inst=/opt/retropie/supplementary/configedit
  5440. + [[ -d /opt/retropie/supplementary/configedit ]]
  5441. + return 1
  5442. + for id in ${__mod_id[@]}
  5443. + rp_isInstalled consolefont
  5444. + local id=consolefont
  5445. + local md_inst=/opt/retropie/supplementary/consolefont
  5446. + [[ -d /opt/retropie/supplementary/consolefont ]]
  5447. + return 1
  5448. + for id in ${__mod_id[@]}
  5449. + rp_isInstalled controlblock
  5450. + local id=controlblock
  5451. + local md_inst=/opt/retropie/supplementary/controlblock
  5452. + [[ -d /opt/retropie/supplementary/controlblock ]]
  5453. + return 1
  5454. + for id in ${__mod_id[@]}
  5455. + rp_isInstalled custombluez
  5456. + local id=custombluez
  5457. + local md_inst=/opt/retropie/supplementary/custombluez
  5458. + [[ -d /opt/retropie/supplementary/custombluez ]]
  5459. + return 1
  5460. + for id in ${__mod_id[@]}
  5461. + rp_isInstalled customhidsony
  5462. + local id=customhidsony
  5463. + local md_inst=/opt/retropie/supplementary/customhidsony
  5464. + [[ -d /opt/retropie/supplementary/customhidsony ]]
  5465. + return 1
  5466. + for id in ${__mod_id[@]}
  5467. + rp_isInstalled dispmanx
  5468. + local id=dispmanx
  5469. + local md_inst=/opt/retropie/supplementary/dispmanx
  5470. + [[ -d /opt/retropie/supplementary/dispmanx ]]
  5471. + return 1
  5472. + for id in ${__mod_id[@]}
  5473. + rp_isInstalled docsview
  5474. + local id=docsview
  5475. + local md_inst=/opt/retropie/supplementary/docsview
  5476. + [[ -d /opt/retropie/supplementary/docsview ]]
  5477. + return 1
  5478. + for id in ${__mod_id[@]}
  5479. + rp_isInstalled emulationstation-dev
  5480. + local id=emulationstation-dev
  5481. + local md_inst=/opt/retropie/supplementary/emulationstation-dev
  5482. + [[ -d /opt/retropie/supplementary/emulationstation-dev ]]
  5483. + return 1
  5484. + for id in ${__mod_id[@]}
  5485. + rp_isInstalled emulationstation
  5486. + local id=emulationstation
  5487. + local md_inst=/opt/retropie/supplementary/emulationstation
  5488. + [[ -d /opt/retropie/supplementary/emulationstation ]]
  5489. + return 0
  5490. + [[ core != \d\e\p\e\n\d\s ]]
  5491. + rp_installModule emulationstation _update_
  5492. + local id=emulationstation
  5493. + local mode=_update_
  5494. + [[ -z _update_ ]]
  5495. + rp_callModule emulationstation _update_
  5496. + local md_id=emulationstation
  5497. + local mode=_update_
  5498. + shift 2
  5499. + rp_hasModule emulationstation
  5500. + local id=emulationstation
  5501. + [[ -n 199 ]]
  5502. + return 0
  5503. + rp_isEnabled emulationstation
  5504. + local id=emulationstation
  5505. + [[ 1 -eq 0 ]]
  5506. + return 0
  5507. + case "$mode" in
  5508. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  5509. + rp_isInstalled emulationstation
  5510. + local id=emulationstation
  5511. + local md_inst=/opt/retropie/supplementary/emulationstation
  5512. + [[ -d /opt/retropie/supplementary/emulationstation ]]
  5513. + return 0
  5514. + rp_loadPackageInfo emulationstation pkg_origin
  5515. + local id=emulationstation
  5516. + [[ '' -eq 1 ]]
  5517. + local keys
  5518. + local cache=1
  5519. + [[ -z pkg_origin ]]
  5520. + shift
  5521. + keys=("$@")
  5522. + cache=0
  5523. + local load=0
  5524. ++ rp_getInstallPath emulationstation
  5525. ++ local id=emulationstation
  5526. ++ echo /opt/retropie/supplementary/emulationstation
  5527. + local pkg_file=/opt/retropie/supplementary/emulationstation/retropie.pkg
  5528. + [[ -f /opt/retropie/supplementary/emulationstation/retropie.pkg ]]
  5529. + load=1
  5530. + local key
  5531. + local data
  5532. + for key in "${keys[@]}"
  5533. + data=
  5534. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  5535. + data=unknown
  5536. + __mod_info[$id/$key]=unknown
  5537. + [[ 1 -eq 1 ]]
  5538. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/emulationstation/retropie.pkg
  5539. + data=binary
  5540. + [[ -n binary ]]
  5541. + __mod_info[$id/$key]=binary
  5542. + [[ 0 -eq 1 ]]
  5543. + local pkg_origin=binary
  5544. + local has_binary=0
  5545. + local has_net=0
  5546. ++ getIPAddress
  5547. ++ local dev=
  5548. ++ local ip_route
  5549. +++ ip -4 route get 8.8.8.8
  5550. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5551. cache '
  5552. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5553. cache ]]
  5554. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5555. cache ]]
  5556. ++ grep -oP 'src \K[^\s]+'
  5557. + local ip=192.168.2.5
  5558. + [[ -n 192.168.2.5 ]]
  5559. + has_net=1
  5560. + hasFlag frontend nonet
  5561. + local string=frontend
  5562. + local flag=nonet
  5563. + [[ -z frontend ]]
  5564. + [[ -z nonet ]]
  5565. + [[ frontend =~ (^| )nonet($| ) ]]
  5566. + return 1
  5567. + [[ 1 -eq 1 ]]
  5568. + rp_hasBinary emulationstation
  5569. + local id=emulationstation
  5570. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  5571. ++ rp_getBinaryUrl emulationstation
  5572. ++ local id=emulationstation
  5573. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
  5574. ++ fnExists install_bin_emulationstation
  5575. ++ declare -f install_bin_emulationstation
  5576. ++ return 1
  5577. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
  5578. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
  5579. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz == \n\o\t\e\s\t ]]
  5580. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz ]]
  5581. + [[ -n '' ]]
  5582. + local ret=1
  5583. + rp_hasBinaries
  5584. + [[ 1 -eq 1 ]]
  5585. + return 0
  5586. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
  5587. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
  5588. + local ret
  5589. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/emulationstation.tar.gz
  5590. + ret=28
  5591. + [[ 28 -eq 0 ]]
  5592. + [[ 28 -eq 22 ]]
  5593. + return 2
  5594. + ret=2
  5595. + [[ 2 -ne 2 ]]
  5596. + return 2
  5597. + local ret=2
  5598. + [[ 2 -eq 0 ]]
  5599. + [[ 2 -eq 2 ]]
  5600. + has_net=0
  5601. + [[ 0 -eq 0 ]]
  5602. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  5603. + return 1
  5604. + return 1
  5605. + for id in ${__mod_id[@]}
  5606. + rp_isInstalled esthemes
  5607. + local id=esthemes
  5608. + local md_inst=/opt/retropie/supplementary/esthemes
  5609. + [[ -d /opt/retropie/supplementary/esthemes ]]
  5610. + return 1
  5611. + for id in ${__mod_id[@]}
  5612. + rp_isInstalled gamecondriver
  5613. + local id=gamecondriver
  5614. + local md_inst=/opt/retropie/supplementary/gamecondriver
  5615. + [[ -d /opt/retropie/supplementary/gamecondriver ]]
  5616. + return 1
  5617. + for id in ${__mod_id[@]}
  5618. + rp_isInstalled golang
  5619. + local id=golang
  5620. + local md_inst=/opt/retropie/supplementary/golang
  5621. + [[ -d /opt/retropie/supplementary/golang ]]
  5622. + return 1
  5623. + for id in ${__mod_id[@]}
  5624. + rp_isInstalled launchingimages
  5625. + local id=launchingimages
  5626. + local md_inst=/opt/retropie/supplementary/launchingimages
  5627. + [[ -d /opt/retropie/supplementary/launchingimages ]]
  5628. + return 1
  5629. + for id in ${__mod_id[@]}
  5630. + rp_isInstalled mehstation
  5631. + local id=mehstation
  5632. + local md_inst=/opt/retropie/supplementary/mehstation
  5633. + [[ -d /opt/retropie/supplementary/mehstation ]]
  5634. + return 1
  5635. + for id in ${__mod_id[@]}
  5636. + rp_isInstalled mesa-drm
  5637. + local id=mesa-drm
  5638. + local md_inst=/opt/retropie/supplementary/mesa-drm
  5639. + [[ -d /opt/retropie/supplementary/mesa-drm ]]
  5640. + return 0
  5641. + [[ depends != \d\e\p\e\n\d\s ]]
  5642. + for id in ${__mod_id[@]}
  5643. + rp_isInstalled mkarcadejoystick
  5644. + local id=mkarcadejoystick
  5645. + local md_inst=/opt/retropie/supplementary/mkarcadejoystick
  5646. + [[ -d /opt/retropie/supplementary/mkarcadejoystick ]]
  5647. + return 1
  5648. + for id in ${__mod_id[@]}
  5649. + rp_isInstalled mobilegamepad
  5650. + local id=mobilegamepad
  5651. + local md_inst=/opt/retropie/supplementary/mobilegamepad
  5652. + [[ -d /opt/retropie/supplementary/mobilegamepad ]]
  5653. + return 1
  5654. + for id in ${__mod_id[@]}
  5655. + rp_isInstalled moonlight
  5656. + local id=moonlight
  5657. + local md_inst=/opt/retropie/supplementary/moonlight
  5658. + [[ -d /opt/retropie/supplementary/moonlight ]]
  5659. + return 1
  5660. + for id in ${__mod_id[@]}
  5661. + rp_isInstalled omxiv
  5662. + local id=omxiv
  5663. + local md_inst=/opt/retropie/supplementary/omxiv
  5664. + [[ -d /opt/retropie/supplementary/omxiv ]]
  5665. + return 0
  5666. + [[ depends != \d\e\p\e\n\d\s ]]
  5667. + for id in ${__mod_id[@]}
  5668. + rp_isInstalled pegasus-fe
  5669. + local id=pegasus-fe
  5670. + local md_inst=/opt/retropie/supplementary/pegasus-fe
  5671. + [[ -d /opt/retropie/supplementary/pegasus-fe ]]
  5672. + return 1
  5673. + for id in ${__mod_id[@]}
  5674. + rp_isInstalled powerblock
  5675. + local id=powerblock
  5676. + local md_inst=/opt/retropie/supplementary/powerblock
  5677. + [[ -d /opt/retropie/supplementary/powerblock ]]
  5678. + return 1
  5679. + for id in ${__mod_id[@]}
  5680. + rp_isInstalled ps3controller
  5681. + local id=ps3controller
  5682. + local md_inst=/opt/retropie/supplementary/ps3controller
  5683. + [[ -d /opt/retropie/supplementary/ps3controller ]]
  5684. + return 1
  5685. + for id in ${__mod_id[@]}
  5686. + rp_isInstalled raspbiantools
  5687. + local id=raspbiantools
  5688. + local md_inst=/opt/retropie/supplementary/raspbiantools
  5689. + [[ -d /opt/retropie/supplementary/raspbiantools ]]
  5690. + return 1
  5691. + for id in ${__mod_id[@]}
  5692. + rp_isInstalled resetromdirs
  5693. + local id=resetromdirs
  5694. + local md_inst=/opt/retropie/supplementary/resetromdirs
  5695. + [[ -d /opt/retropie/supplementary/resetromdirs ]]
  5696. + return 1
  5697. + for id in ${__mod_id[@]}
  5698. + rp_isInstalled retronetplay
  5699. + local id=retronetplay
  5700. + local md_inst=/opt/retropie/supplementary/retronetplay
  5701. + [[ -d /opt/retropie/supplementary/retronetplay ]]
  5702. + return 1
  5703. + for id in ${__mod_id[@]}
  5704. + rp_isInstalled retropie-manager
  5705. + local id=retropie-manager
  5706. + local md_inst=/opt/retropie/supplementary/retropie-manager
  5707. + [[ -d /opt/retropie/supplementary/retropie-manager ]]
  5708. + return 1
  5709. + for id in ${__mod_id[@]}
  5710. + rp_isInstalled retropiemenu
  5711. + local id=retropiemenu
  5712. + local md_inst=/opt/retropie/supplementary/retropiemenu
  5713. + [[ -d /opt/retropie/supplementary/retropiemenu ]]
  5714. + return 0
  5715. + [[ core != \d\e\p\e\n\d\s ]]
  5716. + rp_installModule retropiemenu _update_
  5717. + local id=retropiemenu
  5718. + local mode=_update_
  5719. + [[ -z _update_ ]]
  5720. + rp_callModule retropiemenu _update_
  5721. + local md_id=retropiemenu
  5722. + local mode=_update_
  5723. + shift 2
  5724. + rp_hasModule retropiemenu
  5725. + local id=retropiemenu
  5726. + [[ -n 217 ]]
  5727. + return 0
  5728. + rp_isEnabled retropiemenu
  5729. + local id=retropiemenu
  5730. + [[ 1 -eq 0 ]]
  5731. + return 0
  5732. + case "$mode" in
  5733. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  5734. + rp_isInstalled retropiemenu
  5735. + local id=retropiemenu
  5736. + local md_inst=/opt/retropie/supplementary/retropiemenu
  5737. + [[ -d /opt/retropie/supplementary/retropiemenu ]]
  5738. + return 0
  5739. + rp_loadPackageInfo retropiemenu pkg_origin
  5740. + local id=retropiemenu
  5741. + [[ '' -eq 1 ]]
  5742. + local keys
  5743. + local cache=1
  5744. + [[ -z pkg_origin ]]
  5745. + shift
  5746. + keys=("$@")
  5747. + cache=0
  5748. + local load=0
  5749. ++ rp_getInstallPath retropiemenu
  5750. ++ local id=retropiemenu
  5751. ++ echo /opt/retropie/supplementary/retropiemenu
  5752. + local pkg_file=/opt/retropie/supplementary/retropiemenu/retropie.pkg
  5753. + [[ -f /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
  5754. + load=1
  5755. + local key
  5756. + local data
  5757. + for key in "${keys[@]}"
  5758. + data=
  5759. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  5760. + data=unknown
  5761. + __mod_info[$id/$key]=unknown
  5762. + [[ 1 -eq 1 ]]
  5763. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  5764. + data=binary
  5765. + [[ -n binary ]]
  5766. + __mod_info[$id/$key]=binary
  5767. + [[ 0 -eq 1 ]]
  5768. + local pkg_origin=binary
  5769. + local has_binary=0
  5770. + local has_net=0
  5771. ++ getIPAddress
  5772. ++ local dev=
  5773. ++ local ip_route
  5774. +++ ip -4 route get 8.8.8.8
  5775. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5776. cache '
  5777. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5778. cache ]]
  5779. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  5780. cache ]]
  5781. ++ grep -oP 'src \K[^\s]+'
  5782. + local ip=192.168.2.5
  5783. + [[ -n 192.168.2.5 ]]
  5784. + has_net=1
  5785. + hasFlag nonet nonet
  5786. + local string=nonet
  5787. + local flag=nonet
  5788. + [[ -z nonet ]]
  5789. + [[ -z nonet ]]
  5790. + [[ nonet =~ (^| )nonet($| ) ]]
  5791. + return 0
  5792. + has_net=1
  5793. + [[ 1 -eq 1 ]]
  5794. + rp_hasBinary retropiemenu
  5795. + local id=retropiemenu
  5796. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  5797. ++ rp_getBinaryUrl retropiemenu
  5798. ++ local id=retropiemenu
  5799. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/retropiemenu.tar.gz
  5800. ++ fnExists install_bin_retropiemenu
  5801. ++ declare -f install_bin_retropiemenu
  5802. ++ return 0
  5803. ++ fnExists __binary_url_retropiemenu
  5804. ++ declare -f __binary_url_retropiemenu
  5805. ++ return 1
  5806. ++ url=notest
  5807. ++ echo notest
  5808. + local url=notest
  5809. + [[ notest == \n\o\t\e\s\t ]]
  5810. + return 0
  5811. + local ret=0
  5812. + [[ 0 -eq 0 ]]
  5813. + has_binary=1
  5814. + [[ 0 -eq 2 ]]
  5815. + [[ 1 -eq 0 ]]
  5816. + local do_update=0
  5817. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  5818. + printMsgs heading 'Checking for updates for retropiemenu'
  5819. + local type=heading
  5820. + shift
  5821. + [[ 0 == \1 ]]
  5822. + for msg in "$@"
  5823. + [[ heading == \d\i\a\l\o\g ]]
  5824. + [[ heading == \c\o\n\s\o\l\e ]]
  5825. + [[ heading == \h\e\a\d\i\n\g ]]
  5826. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nChecking for updates for retropiemenu\n= = = = = = = = = = = = = = = = = = = = =\n'
  5827.  
  5828. = = = = = = = = = = = = = = = = = = = = =
  5829. Checking for updates for retropiemenu
  5830. = = = = = = = = = = = = = = = = = = = = =
  5831.  
  5832. + return 0
  5833. + rp_hasNewerModule retropiemenu binary
  5834. + local id=retropiemenu
  5835. + local type=binary
  5836. + [[ -n '' ]]
  5837. + rp_loadPackageInfo retropiemenu
  5838. + local id=retropiemenu
  5839. + [[ '' -eq 1 ]]
  5840. + local keys
  5841. + local cache=1
  5842. + [[ -z '' ]]
  5843. + keys=(pkg_origin pkg_date pkg_repo_type pkg_repo_url pkg_repo_branch pkg_repo_commit pkg_repo_date pkg_repo_extra)
  5844. + local load=0
  5845. ++ rp_getInstallPath retropiemenu
  5846. ++ local id=retropiemenu
  5847. ++ echo /opt/retropie/supplementary/retropiemenu
  5848. + local pkg_file=/opt/retropie/supplementary/retropiemenu/retropie.pkg
  5849. + [[ -f /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
  5850. + load=1
  5851. + local key
  5852. + local data
  5853. + for key in "${keys[@]}"
  5854. + data=
  5855. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  5856. + data=unknown
  5857. + __mod_info[$id/$key]=unknown
  5858. + [[ 1 -eq 1 ]]
  5859. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  5860. + data=binary
  5861. + [[ -n binary ]]
  5862. + __mod_info[$id/$key]=binary
  5863. + for key in "${keys[@]}"
  5864. + data=
  5865. + [[ pkg_date == \p\k\g\_\o\r\i\g\i\n ]]
  5866. + __mod_info[$id/$key]=
  5867. + [[ 1 -eq 1 ]]
  5868. ++ grep -oP 'pkg_date="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  5869. + data=
  5870. + [[ -n '' ]]
  5871. + for key in "${keys[@]}"
  5872. + data=
  5873. + [[ pkg_repo_type == \p\k\g\_\o\r\i\g\i\n ]]
  5874. + __mod_info[$id/$key]=
  5875. + [[ 1 -eq 1 ]]
  5876. ++ grep -oP 'pkg_repo_type="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  5877. + data=
  5878. + [[ -n '' ]]
  5879. + for key in "${keys[@]}"
  5880. + data=
  5881. + [[ pkg_repo_url == \p\k\g\_\o\r\i\g\i\n ]]
  5882. + __mod_info[$id/$key]=
  5883. + [[ 1 -eq 1 ]]
  5884. ++ grep -oP 'pkg_repo_url="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  5885. + data=
  5886. + [[ -n '' ]]
  5887. + for key in "${keys[@]}"
  5888. + data=
  5889. + [[ pkg_repo_branch == \p\k\g\_\o\r\i\g\i\n ]]
  5890. + __mod_info[$id/$key]=
  5891. + [[ 1 -eq 1 ]]
  5892. ++ grep -oP 'pkg_repo_branch="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  5893. + data=
  5894. + [[ -n '' ]]
  5895. + for key in "${keys[@]}"
  5896. + data=
  5897. + [[ pkg_repo_commit == \p\k\g\_\o\r\i\g\i\n ]]
  5898. + __mod_info[$id/$key]=
  5899. + [[ 1 -eq 1 ]]
  5900. ++ grep -oP 'pkg_repo_commit="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  5901. + data=
  5902. + [[ -n '' ]]
  5903. + for key in "${keys[@]}"
  5904. + data=
  5905. + [[ pkg_repo_date == \p\k\g\_\o\r\i\g\i\n ]]
  5906. + __mod_info[$id/$key]=
  5907. + [[ 1 -eq 1 ]]
  5908. ++ grep -oP 'pkg_repo_date="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  5909. + data=
  5910. + [[ -n '' ]]
  5911. + for key in "${keys[@]}"
  5912. + data=
  5913. + [[ pkg_repo_extra == \p\k\g\_\o\r\i\g\i\n ]]
  5914. + __mod_info[$id/$key]=
  5915. + [[ 1 -eq 1 ]]
  5916. ++ grep -oP 'pkg_repo_extra="\K[^"]+' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  5917. + data=
  5918. + [[ -n '' ]]
  5919. + [[ 1 -eq 1 ]]
  5920. + __mod_info[$id/pkg_info]=1
  5921. + local pkg_origin=binary
  5922. + local pkg_date=
  5923. + local pkg_repo_date=
  5924. + local pkg_repo_commit=
  5925. + local ret=1
  5926. + case "$type" in
  5927. + ret=
  5928. + [[ -n '' ]]
  5929. + [[ -z '' ]]
  5930. + ret=2
  5931. + __mod_info[$id/has_newer]=2
  5932. + return 2
  5933. + [[ 2 -eq 0 ]]
  5934. + [[ 2 == 2 ]]
  5935. + do_update=1
  5936. + [[ 0 -eq 3 ]]
  5937. + [[ 1 -eq 1 ]]
  5938. + printMsgs console 'Update is available - updating ...'
  5939. + local type=console
  5940. + shift
  5941. + [[ 0 == \1 ]]
  5942. + for msg in "$@"
  5943. + [[ console == \d\i\a\l\o\g ]]
  5944. + [[ console == \c\o\n\s\o\l\e ]]
  5945. + echo -e 'Update is available - updating ...'
  5946. Update is available - updating ...
  5947. + [[ console == \h\e\a\d\i\n\g ]]
  5948. + return 0
  5949. + [[ 1 -eq 1 ]]
  5950. + [[ binary != \s\o\u\r\c\e ]]
  5951. + [[ 1 -eq 1 ]]
  5952. + rp_callModule retropiemenu _binary_
  5953. + local md_id=retropiemenu
  5954. + local mode=_binary_
  5955. + shift 2
  5956. + rp_hasModule retropiemenu
  5957. + local id=retropiemenu
  5958. + [[ -n 217 ]]
  5959. + return 0
  5960. + rp_isEnabled retropiemenu
  5961. + local id=retropiemenu
  5962. + [[ 1 -eq 0 ]]
  5963. + return 0
  5964. + case "$mode" in
  5965. + for mode in depends install_bin configure
  5966. + rp_callModule retropiemenu depends
  5967. + local md_id=retropiemenu
  5968. + local mode=depends
  5969. + shift 2
  5970. + rp_hasModule retropiemenu
  5971. + local id=retropiemenu
  5972. + [[ -n 217 ]]
  5973. + return 0
  5974. + rp_isEnabled retropiemenu
  5975. + local id=retropiemenu
  5976. + [[ 1 -eq 0 ]]
  5977. + return 0
  5978. + case "$mode" in
  5979. ++ rp_moduleVars retropiemenu
  5980. ++ local id=retropiemenu
  5981. ++ local code
  5982. ++ read -d '' -r code
  5983. +++ rp_getInstallPath retropiemenu
  5984. +++ local id=retropiemenu
  5985. +++ echo /opt/retropie/supplementary/retropiemenu
  5986. ++ echo 'local md_desc="RetroPie configuration menu for EmulationStation"
  5987. local md_help=""
  5988. local md_type="supplementary"
  5989. local md_flags="nonet"
  5990. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
  5991.  
  5992. local md_repo_type=""
  5993. local md_repo_url=""
  5994. local md_repo_branch=""
  5995. local md_repo_commit=""
  5996.  
  5997. local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
  5998. local md_inst="/opt/retropie/supplementary/retropiemenu"
  5999. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  6000. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
  6001. + eval 'local md_desc="RetroPie configuration menu for EmulationStation"
  6002. local md_help=""
  6003. local md_type="supplementary"
  6004. local md_flags="nonet"
  6005. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
  6006.  
  6007. local md_repo_type=""
  6008. local md_repo_url=""
  6009. local md_repo_branch=""
  6010. local md_repo_commit=""
  6011.  
  6012. local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
  6013. local md_inst="/opt/retropie/supplementary/retropiemenu"
  6014. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  6015. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
  6016. ++ local 'md_desc=RetroPie configuration menu for EmulationStation'
  6017. ++ local md_help=
  6018. ++ local md_type=supplementary
  6019. ++ local md_flags=nonet
  6020. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh
  6021. ++ local md_repo_type=
  6022. ++ local md_repo_url=
  6023. ++ local md_repo_branch=
  6024. ++ local md_repo_commit=
  6025. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/retropiemenu
  6026. ++ local md_inst=/opt/retropie/supplementary/retropiemenu
  6027. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu
  6028. + local md_mode=install
  6029. + local md_conf_root
  6030. + [[ supplementary == \p\o\r\t\s ]]
  6031. + setConfigRoot ''
  6032. + local dir=
  6033. + md_conf_root=/opt/retropie/configs
  6034. + [[ -n '' ]]
  6035. + mkUserDir /opt/retropie/configs
  6036. + mkdir -p /opt/retropie/configs
  6037. + chown pi:pi /opt/retropie/configs
  6038. + case "$mode" in
  6039. + function=depends_retropiemenu
  6040. + fnExists depends_retropiemenu
  6041. + declare -f depends_retropiemenu
  6042. + return 0
  6043. + md_ret_require=()
  6044. + local md_ret_require
  6045. + md_ret_files=()
  6046. + local md_ret_files
  6047. + md_ret_errors=()
  6048. + local md_ret_errors
  6049. + md_ret_info=()
  6050. + local md_ret_info
  6051. + local action
  6052. + local pushed=1
  6053. + case "$mode" in
  6054. + [[ '' == \r\e\m\o\v\e ]]
  6055. + action=Installing
  6056. + action+=' dependencies for'
  6057. + [[ -n Installing dependencies for ]]
  6058. + printHeading 'Installing dependencies for '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
  6059. + printMsgs heading 'Installing dependencies for '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
  6060. + local type=heading
  6061. + shift
  6062. + [[ 0 == \1 ]]
  6063. + for msg in "$@"
  6064. + [[ heading == \d\i\a\l\o\g ]]
  6065. + [[ heading == \c\o\n\s\o\l\e ]]
  6066. + [[ heading == \h\e\a\d\i\n\g ]]
  6067. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling dependencies for '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation\n= = = = = = = = = = = = = = = = = = = = =\n'
  6068.  
  6069. = = = = = = = = = = = = = = = = = = = = =
  6070. Installing dependencies for 'retropiemenu' : RetroPie configuration menu for EmulationStation
  6071. = = = = = = = = = = = = = = = = = = = = =
  6072.  
  6073. + return 0
  6074. + case "$mode" in
  6075. + depends_retropiemenu
  6076. + getDepends mc
  6077. + own_pkgs=()
  6078. + local own_pkgs
  6079. + apt_pkgs=()
  6080. + local apt_pkgs
  6081. + all_pkgs=()
  6082. + local all_pkgs
  6083. + local pkg
  6084. + for pkg in "$@"
  6085. + pkg=($(_mapPackage "$pkg"))
  6086. ++ _mapPackage mc
  6087. ++ local pkg=mc
  6088. ++ case "$pkg" in
  6089. ++ echo mc
  6090. + [[ mc == \R\P ]]
  6091. + [[ install == \r\e\m\o\v\e ]]
  6092. + hasPackage mc
  6093. + local pkg=mc
  6094. + local req_ver=
  6095. + local comp=
  6096. + [[ -z '' ]]
  6097. + comp=ge
  6098. + local ver
  6099. + local status
  6100. ++ dpkg-query -W '--showformat=${Status} ${Version}' mc
  6101. + local 'out=install ok installed 3:4.8.22-1'
  6102. + [[ 0 -eq 0 ]]
  6103. + ver=3:4.8.22-1
  6104. + status='install ok installed'
  6105. + local installed=0
  6106. + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
  6107. + installed=1
  6108. + [[ -z '' ]]
  6109. + [[ 1 -eq 1 ]]
  6110. + return 0
  6111. + [[ 0 -eq 0 ]]
  6112. + [[ 0 -eq 0 ]]
  6113. + return
  6114. + [[ -n '' ]]
  6115. + [[ 0 -eq 0 ]]
  6116. + [[ -n '' ]]
  6117. + [[ -d /home/pi/RetroPie-Setup/tmp/build/retropiemenu ]]
  6118. + local ret=0
  6119. + [[ 0 -gt 0 ]]
  6120. + [[ depends == \i\n\s\t\a\l\l\_\b\i\n ]]
  6121. + [[ depends == \i\n\s\t\a\l\l ]]
  6122. + fnExists install_retropiemenu
  6123. + declare -f install_retropiemenu
  6124. + return 1
  6125. + [[ depends == \b\u\i\l\d ]]
  6126. + [[ 0 -gt 0 ]]
  6127. + [[ 1 -eq 0 ]]
  6128. + return 0
  6129. + for mode in depends install_bin configure
  6130. + rp_callModule retropiemenu install_bin
  6131. + local md_id=retropiemenu
  6132. + local mode=install_bin
  6133. + shift 2
  6134. + rp_hasModule retropiemenu
  6135. + local id=retropiemenu
  6136. + [[ -n 217 ]]
  6137. + return 0
  6138. + rp_isEnabled retropiemenu
  6139. + local id=retropiemenu
  6140. + [[ 1 -eq 0 ]]
  6141. + return 0
  6142. + case "$mode" in
  6143. ++ rp_moduleVars retropiemenu
  6144. ++ local id=retropiemenu
  6145. ++ local code
  6146. ++ read -d '' -r code
  6147. +++ rp_getInstallPath retropiemenu
  6148. +++ local id=retropiemenu
  6149. +++ echo /opt/retropie/supplementary/retropiemenu
  6150. ++ echo 'local md_desc="RetroPie configuration menu for EmulationStation"
  6151. local md_help=""
  6152. local md_type="supplementary"
  6153. local md_flags="nonet"
  6154. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
  6155.  
  6156. local md_repo_type=""
  6157. local md_repo_url=""
  6158. local md_repo_branch=""
  6159. local md_repo_commit=""
  6160.  
  6161. local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
  6162. local md_inst="/opt/retropie/supplementary/retropiemenu"
  6163. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  6164. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
  6165. + eval 'local md_desc="RetroPie configuration menu for EmulationStation"
  6166. local md_help=""
  6167. local md_type="supplementary"
  6168. local md_flags="nonet"
  6169. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
  6170.  
  6171. local md_repo_type=""
  6172. local md_repo_url=""
  6173. local md_repo_branch=""
  6174. local md_repo_commit=""
  6175.  
  6176. local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
  6177. local md_inst="/opt/retropie/supplementary/retropiemenu"
  6178. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  6179. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
  6180. ++ local 'md_desc=RetroPie configuration menu for EmulationStation'
  6181. ++ local md_help=
  6182. ++ local md_type=supplementary
  6183. ++ local md_flags=nonet
  6184. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh
  6185. ++ local md_repo_type=
  6186. ++ local md_repo_url=
  6187. ++ local md_repo_branch=
  6188. ++ local md_repo_commit=
  6189. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/retropiemenu
  6190. ++ local md_inst=/opt/retropie/supplementary/retropiemenu
  6191. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu
  6192. + local md_mode=install
  6193. + local md_conf_root
  6194. + [[ supplementary == \p\o\r\t\s ]]
  6195. + setConfigRoot ''
  6196. + local dir=
  6197. + md_conf_root=/opt/retropie/configs
  6198. + [[ -n '' ]]
  6199. + mkUserDir /opt/retropie/configs
  6200. + mkdir -p /opt/retropie/configs
  6201. + chown pi:pi /opt/retropie/configs
  6202. + case "$mode" in
  6203. + function=install_bin_retropiemenu
  6204. + fnExists install_bin_retropiemenu
  6205. + declare -f install_bin_retropiemenu
  6206. + return 0
  6207. + md_ret_require=()
  6208. + local md_ret_require
  6209. + md_ret_files=()
  6210. + local md_ret_files
  6211. + md_ret_errors=()
  6212. + local md_ret_errors
  6213. + md_ret_info=()
  6214. + local md_ret_info
  6215. + local action
  6216. + local pushed=1
  6217. + case "$mode" in
  6218. + action='Installing (binary)'
  6219. + [[ -n Installing (binary) ]]
  6220. + printHeading 'Installing (binary) '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
  6221. + printMsgs heading 'Installing (binary) '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
  6222. + local type=heading
  6223. + shift
  6224. + [[ 0 == \1 ]]
  6225. + for msg in "$@"
  6226. + [[ heading == \d\i\a\l\o\g ]]
  6227. + [[ heading == \c\o\n\s\o\l\e ]]
  6228. + [[ heading == \h\e\a\d\i\n\g ]]
  6229. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling (binary) '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation\n= = = = = = = = = = = = = = = = = = = = =\n'
  6230.  
  6231. = = = = = = = = = = = = = = = = = = = = =
  6232. Installing (binary) 'retropiemenu' : RetroPie configuration menu for EmulationStation
  6233. = = = = = = = = = = = = = = = = = = = = =
  6234.  
  6235. + return 0
  6236. + case "$mode" in
  6237. + fnExists install_bin_retropiemenu
  6238. + declare -f install_bin_retropiemenu
  6239. + return 0
  6240. + mkdir -p /opt/retropie/supplementary/retropiemenu
  6241. + install_bin_retropiemenu
  6242. + return
  6243. + [[ -n '' ]]
  6244. + [[ 0 -eq 0 ]]
  6245. + [[ -n '' ]]
  6246. + [[ -d /home/pi/RetroPie-Setup/tmp/build/retropiemenu ]]
  6247. + local ret=0
  6248. + [[ 0 -gt 0 ]]
  6249. + [[ install_bin == \i\n\s\t\a\l\l\_\b\i\n ]]
  6250. + rp_setPackageInfo retropiemenu binary
  6251. + local id=retropiemenu
  6252. ++ rp_getInstallPath retropiemenu
  6253. ++ local id=retropiemenu
  6254. ++ echo /opt/retropie/supplementary/retropiemenu
  6255. + local install_path=/opt/retropie/supplementary/retropiemenu
  6256. + [[ ! -d /opt/retropie/supplementary/retropiemenu ]]
  6257. + local pkg=/opt/retropie/supplementary/retropiemenu/retropie.pkg
  6258. + local origin=binary
  6259. + rp_clearCachedInfo retropiemenu
  6260. + local id=retropiemenu
  6261. + __mod_info[$id/pkg_info]=0
  6262. + __mod_info[$id/has_binary]=
  6263. + __mod_info[$id/has_newer]=
  6264. + iniConfig = '"' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  6265. + __ini_cfg_delim==
  6266. + __ini_cfg_quote='"'
  6267. + __ini_cfg_file=/opt/retropie/supplementary/retropiemenu/retropie.pkg
  6268. + iniSet pkg_origin binary
  6269. + iniProcess set pkg_origin binary ''
  6270. + local cmd=set
  6271. + local key=pkg_origin
  6272. + local value=binary
  6273. + local file=
  6274. + [[ -z '' ]]
  6275. + file=/opt/retropie/supplementary/retropiemenu/retropie.pkg
  6276. + local delim==
  6277. + local 'quote="'
  6278. + [[ -z /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
  6279. + [[ -z pkg_origin ]]
  6280. + local delim_strip==
  6281. + [[ -z = ]]
  6282. + local 'match_re=^[[:space:]#]*pkg_origin[[:space:]]*=.*$'
  6283. + local match
  6284. + [[ -f /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
  6285. ++ egrep -i '^[[:space:]#]*pkg_origin[[:space:]]*=.*$' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  6286. ++ tail -1
  6287. + match='pkg_origin="binary"'
  6288. + [[ set == \d\e\l ]]
  6289. + [[ set == \u\n\s\e\t ]]
  6290. + local 'replace=pkg_origin="binary"'
  6291. + [[ -z pkg_origin="binary" ]]
  6292. ++ sedQuote 'pkg_origin="binary"'
  6293. ++ local 'string=pkg_origin="binary"'
  6294. ++ string='pkg_origin="binary"'
  6295. ++ string='pkg_origin="binary"'
  6296. ++ string='pkg_origin="binary"'
  6297. ++ string='pkg_origin="binary"'
  6298. ++ echo 'pkg_origin="binary"'
  6299. ++ sedQuote 'pkg_origin="binary"'
  6300. ++ local 'string=pkg_origin="binary"'
  6301. ++ string='pkg_origin="binary"'
  6302. ++ string='pkg_origin="binary"'
  6303. ++ string='pkg_origin="binary"'
  6304. ++ string='pkg_origin="binary"'
  6305. ++ echo 'pkg_origin="binary"'
  6306. + sed -i --follow-symlinks 's|pkg_origin="binary"|pkg_origin="binary"|g' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  6307. + [[ /opt/retropie/supplementary/retropiemenu/retropie.pkg =~ retroarch\.cfg$ ]]
  6308. + return 0
  6309. + local pkg_date
  6310. + local pkg_repo_type
  6311. + local pkg_repo_url
  6312. + local pkg_repo_branch
  6313. + local pkg_repo_commit
  6314. + local pkg_repo_date
  6315. + local pkg_repo_extra
  6316. + [[ binary == \b\i\n\a\r\y ]]
  6317. ++ rp_getBinaryDate retropiemenu
  6318. ++ local id=retropiemenu
  6319. +++ rp_getBinaryUrl retropiemenu
  6320. +++ local id=retropiemenu
  6321. +++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/retropiemenu.tar.gz
  6322. +++ fnExists install_bin_retropiemenu
  6323. +++ declare -f install_bin_retropiemenu
  6324. +++ return 0
  6325. +++ fnExists __binary_url_retropiemenu
  6326. +++ declare -f __binary_url_retropiemenu
  6327. +++ return 1
  6328. +++ url=notest
  6329. +++ echo notest
  6330. ++ local url=notest
  6331. ++ [[ -z notest ]]
  6332. ++ [[ notest == \n\o\t\e\s\t ]]
  6333. ++ return 1
  6334. + pkg_date=
  6335. + iniSet pkg_date ''
  6336. + iniProcess set pkg_date '' ''
  6337. + local cmd=set
  6338. + local key=pkg_date
  6339. + local value=
  6340. + local file=
  6341. + [[ -z '' ]]
  6342. + file=/opt/retropie/supplementary/retropiemenu/retropie.pkg
  6343. + local delim==
  6344. + local 'quote="'
  6345. + [[ -z /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
  6346. + [[ -z pkg_date ]]
  6347. + local delim_strip==
  6348. + [[ -z = ]]
  6349. + local 'match_re=^[[:space:]#]*pkg_date[[:space:]]*=.*$'
  6350. + local match
  6351. + [[ -f /opt/retropie/supplementary/retropiemenu/retropie.pkg ]]
  6352. ++ egrep -i '^[[:space:]#]*pkg_date[[:space:]]*=.*$' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  6353. ++ tail -1
  6354. + match='pkg_date=""'
  6355. + [[ set == \d\e\l ]]
  6356. + [[ set == \u\n\s\e\t ]]
  6357. + local 'replace=pkg_date=""'
  6358. + [[ -z pkg_date="" ]]
  6359. ++ sedQuote 'pkg_date=""'
  6360. ++ local 'string=pkg_date=""'
  6361. ++ string='pkg_date=""'
  6362. ++ string='pkg_date=""'
  6363. ++ string='pkg_date=""'
  6364. ++ string='pkg_date=""'
  6365. ++ echo 'pkg_date=""'
  6366. ++ sedQuote 'pkg_date=""'
  6367. ++ local 'string=pkg_date=""'
  6368. ++ string='pkg_date=""'
  6369. ++ string='pkg_date=""'
  6370. ++ string='pkg_date=""'
  6371. ++ string='pkg_date=""'
  6372. ++ echo 'pkg_date=""'
  6373. + sed -i --follow-symlinks 's|pkg_date=""|pkg_date=""|g' /opt/retropie/supplementary/retropiemenu/retropie.pkg
  6374. + [[ /opt/retropie/supplementary/retropiemenu/retropie.pkg =~ retroarch\.cfg$ ]]
  6375. + return 0
  6376. + [[ install_bin == \i\n\s\t\a\l\l ]]
  6377. + fnExists install_retropiemenu
  6378. + declare -f install_retropiemenu
  6379. + return 1
  6380. + [[ install_bin == \b\u\i\l\d ]]
  6381. + [[ 0 -gt 0 ]]
  6382. + [[ 1 -eq 0 ]]
  6383. + return 0
  6384. + for mode in depends install_bin configure
  6385. + rp_callModule retropiemenu configure
  6386. + local md_id=retropiemenu
  6387. + local mode=configure
  6388. + shift 2
  6389. + rp_hasModule retropiemenu
  6390. + local id=retropiemenu
  6391. + [[ -n 217 ]]
  6392. + return 0
  6393. + rp_isEnabled retropiemenu
  6394. + local id=retropiemenu
  6395. + [[ 1 -eq 0 ]]
  6396. + return 0
  6397. + case "$mode" in
  6398. ++ rp_moduleVars retropiemenu
  6399. ++ local id=retropiemenu
  6400. ++ local code
  6401. ++ read -d '' -r code
  6402. +++ rp_getInstallPath retropiemenu
  6403. +++ local id=retropiemenu
  6404. +++ echo /opt/retropie/supplementary/retropiemenu
  6405. ++ echo 'local md_desc="RetroPie configuration menu for EmulationStation"
  6406. local md_help=""
  6407. local md_type="supplementary"
  6408. local md_flags="nonet"
  6409. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
  6410.  
  6411. local md_repo_type=""
  6412. local md_repo_url=""
  6413. local md_repo_branch=""
  6414. local md_repo_commit=""
  6415.  
  6416. local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
  6417. local md_inst="/opt/retropie/supplementary/retropiemenu"
  6418. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  6419. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
  6420. + eval 'local md_desc="RetroPie configuration menu for EmulationStation"
  6421. local md_help=""
  6422. local md_type="supplementary"
  6423. local md_flags="nonet"
  6424. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh"
  6425.  
  6426. local md_repo_type=""
  6427. local md_repo_url=""
  6428. local md_repo_branch=""
  6429. local md_repo_commit=""
  6430.  
  6431. local md_build="/home/pi/RetroPie-Setup/tmp/build/retropiemenu"
  6432. local md_inst="/opt/retropie/supplementary/retropiemenu"
  6433. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  6434. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu"'
  6435. ++ local 'md_desc=RetroPie configuration menu for EmulationStation'
  6436. ++ local md_help=
  6437. ++ local md_type=supplementary
  6438. ++ local md_flags=nonet
  6439. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu.sh
  6440. ++ local md_repo_type=
  6441. ++ local md_repo_url=
  6442. ++ local md_repo_branch=
  6443. ++ local md_repo_commit=
  6444. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/retropiemenu
  6445. ++ local md_inst=/opt/retropie/supplementary/retropiemenu
  6446. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu
  6447. + local md_mode=install
  6448. + local md_conf_root
  6449. + [[ supplementary == \p\o\r\t\s ]]
  6450. + setConfigRoot ''
  6451. + local dir=
  6452. + md_conf_root=/opt/retropie/configs
  6453. + [[ -n '' ]]
  6454. + mkUserDir /opt/retropie/configs
  6455. + mkdir -p /opt/retropie/configs
  6456. + chown pi:pi /opt/retropie/configs
  6457. + case "$mode" in
  6458. + function=configure_retropiemenu
  6459. + fnExists configure_retropiemenu
  6460. + declare -f configure_retropiemenu
  6461. + return 0
  6462. + md_ret_require=()
  6463. + local md_ret_require
  6464. + md_ret_files=()
  6465. + local md_ret_files
  6466. + md_ret_errors=()
  6467. + local md_ret_errors
  6468. + md_ret_info=()
  6469. + local md_ret_info
  6470. + local action
  6471. + local pushed=1
  6472. + case "$mode" in
  6473. + action=Configuring
  6474. + pushd /opt/retropie/supplementary/retropiemenu
  6475. /opt/retropie/supplementary/retropiemenu /home/pi/RetroPie-Setup
  6476. + pushed=0
  6477. + [[ -n Configuring ]]
  6478. + printHeading 'Configuring '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
  6479. + printMsgs heading 'Configuring '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation'
  6480. + local type=heading
  6481. + shift
  6482. + [[ 0 == \1 ]]
  6483. + for msg in "$@"
  6484. + [[ heading == \d\i\a\l\o\g ]]
  6485. + [[ heading == \c\o\n\s\o\l\e ]]
  6486. + [[ heading == \h\e\a\d\i\n\g ]]
  6487. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nConfiguring '\''retropiemenu'\'' : RetroPie configuration menu for EmulationStation\n= = = = = = = = = = = = = = = = = = = = =\n'
  6488.  
  6489. = = = = = = = = = = = = = = = = = = = = =
  6490. Configuring 'retropiemenu' : RetroPie configuration menu for EmulationStation
  6491. = = = = = = = = = = = = = = = = = = = = =
  6492.  
  6493. + return 0
  6494. + case "$mode" in
  6495. + configure_retropiemenu
  6496. + [[ install == \r\e\m\o\v\e ]]
  6497. + local rpdir=/home/pi/RetroPie/retropiemenu
  6498. + mkdir -p /home/pi/RetroPie/retropiemenu
  6499. + cp -Rv /home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons /home/pi/RetroPie/retropiemenu/
  6500. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/audiosettings.png' -> '/home/pi/RetroPie/retropiemenu/icons/audiosettings.png'
  6501. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/bluetooth.png' -> '/home/pi/RetroPie/retropiemenu/icons/bluetooth.png'
  6502. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/configedit.png' -> '/home/pi/RetroPie/retropiemenu/icons/configedit.png'
  6503. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/esthemes.png' -> '/home/pi/RetroPie/retropiemenu/icons/esthemes.png'
  6504. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/filemanager.png' -> '/home/pi/RetroPie/retropiemenu/icons/filemanager.png'
  6505. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/raspiconfig.png' -> '/home/pi/RetroPie/retropiemenu/icons/raspiconfig.png'
  6506. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/retroarch.png' -> '/home/pi/RetroPie/retropiemenu/icons/retroarch.png'
  6507. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/retronetplay.png' -> '/home/pi/RetroPie/retropiemenu/icons/retronetplay.png'
  6508. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/rpsetup.png' -> '/home/pi/RetroPie/retropiemenu/icons/rpsetup.png'
  6509. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/runcommand.png' -> '/home/pi/RetroPie/retropiemenu/icons/runcommand.png'
  6510. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/showip.png' -> '/home/pi/RetroPie/retropiemenu/icons/showip.png'
  6511. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/splashscreen.png' -> '/home/pi/RetroPie/retropiemenu/icons/splashscreen.png'
  6512. '/home/pi/RetroPie-Setup/scriptmodules/supplementary/retropiemenu/icons/wifi.png' -> '/home/pi/RetroPie/retropiemenu/icons/wifi.png'
  6513. + chown -R pi:pi /home/pi/RetroPie/retropiemenu
  6514. + isPlatform rpi
  6515. + local flag=rpi
  6516. + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
  6517. + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
  6518. + local flag=rpi
  6519. + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
  6520. + [[ -z rpi ]]
  6521. + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
  6522. + return 0
  6523. + return 0
  6524. + rm -f /home/pi/RetroPie/retropiemenu/dispmanx.rp
  6525. + files=('audiosettings' 'bluetooth' 'configedit' 'esthemes' 'filemanager' 'raspiconfig' 'retroarch' 'retronetplay' 'rpsetup' 'runcommand' 'showip' 'splashscreen' 'wifi')
  6526. + local files
  6527. + 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')
  6528. + local names
  6529. + 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.')
  6530. + local descs
  6531. + 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
  6532. + local function
  6533. ++ compgen -A function _add_system_
  6534. + for function in $(compgen -A function _add_system_)
  6535. + _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
  6536. ++ _get_configdir_attractmode
  6537. ++ echo /opt/retropie/configs/all/attractmode
  6538. + local attract_dir=/opt/retropie/configs/all/attractmode
  6539. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  6540. + return 0
  6541. + for function in $(compgen -A function _add_system_)
  6542. + _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
  6543. + local fullname=RetroPie
  6544. + local name=retropie
  6545. + local path=/home/pi/RetroPie/retropiemenu
  6546. + local 'extension=.rp .sh'
  6547. + local 'command=sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty'
  6548. + local platform=
  6549. + local theme=retropie
  6550. + local conf=/etc/emulationstation/es_systems.cfg
  6551. + mkdir -p /etc/emulationstation
  6552. + [[ ! -f /etc/emulationstation/es_systems.cfg ]]
  6553. + cp /etc/emulationstation/es_systems.cfg /etc/emulationstation/es_systems.cfg.bak
  6554. ++ xmlstarlet sel -t -v 'count(/systemList/system[name='\''retropie'\''])' /etc/emulationstation/es_systems.cfg
  6555. + [[ 1 -eq 0 ]]
  6556. + 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
  6557. + local conf_local=/opt/retropie/configs/all/emulationstation/es_systems.cfg
  6558. + [[ -f /opt/retropie/configs/all/emulationstation/es_systems.cfg ]]
  6559. + _sort_systems_emulationstation name
  6560. + local field=name
  6561. + cp /etc/emulationstation/es_systems.cfg /etc/emulationstation/es_systems.cfg.bak
  6562. + xmlstarlet sel -D -I -t -m / -e systemList -m //system -s A:T:U name -c . /etc/emulationstation/es_systems.cfg.bak
  6563. + for function in $(compgen -A function _add_system_)
  6564. + _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
  6565. ++ _get_database_mehstation
  6566. ++ echo /opt/retropie/configs/all/mehstation/database.db
  6567. + local db=/opt/retropie/configs/all/mehstation/database.db
  6568. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  6569. + return 0
  6570. + local file
  6571. + local name
  6572. + local desc
  6573. + local image
  6574. + local i
  6575. + for i in "${!files[@]}"
  6576. + case "${files[i]}" in
  6577. + isPlatform rpi
  6578. + local flag=rpi
  6579. + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
  6580. + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
  6581. + local flag=rpi
  6582. + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
  6583. + [[ -z rpi ]]
  6584. + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
  6585. + return 0
  6586. + return 0
  6587. + file=audiosettings
  6588. + name=Audio
  6589. + desc='Configure audio settings. Choose default of auto, 3.5mm jack, or HDMI. Mixer controls, and apply default settings.'
  6590. + image=/home/pi/RetroPie/retropiemenu/icons/audiosettings.png
  6591. + touch /home/pi/RetroPie/retropiemenu/audiosettings.rp
  6592. + local function
  6593. ++ compgen -A function _add_rom_
  6594. + for function in $(compgen -A function _add_rom_)
  6595. + _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
  6596. ++ _get_configdir_attractmode
  6597. ++ echo /opt/retropie/configs/all/attractmode
  6598. + local attract_dir=/opt/retropie/configs/all/attractmode
  6599. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  6600. + return 0
  6601. + for function in $(compgen -A function _add_rom_)
  6602. + _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
  6603. + local system_name=retropie
  6604. + local system_fullname=RetroPie
  6605. + local path=./audiosettings.rp
  6606. + local name=Audio
  6607. + local 'desc=Configure audio settings. Choose default of auto, 3.5mm jack, or HDMI. Mixer controls, and apply default settings.'
  6608. + local image=/home/pi/RetroPie/retropiemenu/icons/audiosettings.png
  6609. + local config_dir=/opt/retropie/configs/all/emulationstation
  6610. + mkUserDir /opt/retropie/configs/all/emulationstation
  6611. + mkdir -p /opt/retropie/configs/all/emulationstation
  6612. + chown pi:pi /opt/retropie/configs/all/emulationstation
  6613. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  6614. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  6615. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  6616. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6617. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6618. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6619. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6620. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  6621. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./audiosettings.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6622. + [[ 1 -eq 0 ]]
  6623. + 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
  6624. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6625. + for function in $(compgen -A function _add_rom_)
  6626. + _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
  6627. ++ _get_database_mehstation
  6628. ++ echo /opt/retropie/configs/all/mehstation/database.db
  6629. + local db=/opt/retropie/configs/all/mehstation/database.db
  6630. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  6631. + return 0
  6632. + for i in "${!files[@]}"
  6633. + case "${files[i]}" in
  6634. + file=bluetooth
  6635. + name=Bluetooth
  6636. + desc='Register and connect to Bluetooth devices. Unregister and remove devices, and display registered and connected devices.'
  6637. + image=/home/pi/RetroPie/retropiemenu/icons/bluetooth.png
  6638. + touch /home/pi/RetroPie/retropiemenu/bluetooth.rp
  6639. + local function
  6640. ++ compgen -A function _add_rom_
  6641. + for function in $(compgen -A function _add_rom_)
  6642. + _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
  6643. ++ _get_configdir_attractmode
  6644. ++ echo /opt/retropie/configs/all/attractmode
  6645. + local attract_dir=/opt/retropie/configs/all/attractmode
  6646. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  6647. + return 0
  6648. + for function in $(compgen -A function _add_rom_)
  6649. + _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
  6650. + local system_name=retropie
  6651. + local system_fullname=RetroPie
  6652. + local path=./bluetooth.rp
  6653. + local name=Bluetooth
  6654. + local 'desc=Register and connect to Bluetooth devices. Unregister and remove devices, and display registered and connected devices.'
  6655. + local image=/home/pi/RetroPie/retropiemenu/icons/bluetooth.png
  6656. + local config_dir=/opt/retropie/configs/all/emulationstation
  6657. + mkUserDir /opt/retropie/configs/all/emulationstation
  6658. + mkdir -p /opt/retropie/configs/all/emulationstation
  6659. + chown pi:pi /opt/retropie/configs/all/emulationstation
  6660. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  6661. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  6662. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  6663. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6664. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6665. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6666. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6667. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  6668. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./bluetooth.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6669. + [[ 1 -eq 0 ]]
  6670. + 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
  6671. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6672. + for function in $(compgen -A function _add_rom_)
  6673. + _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
  6674. ++ _get_database_mehstation
  6675. ++ echo /opt/retropie/configs/all/mehstation/database.db
  6676. + local db=/opt/retropie/configs/all/mehstation/database.db
  6677. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  6678. + return 0
  6679. + for i in "${!files[@]}"
  6680. + case "${files[i]}" in
  6681. + file=configedit
  6682. + name='Configuration Editor'
  6683. + desc='Change common RetroArch options, and manually edit RetroArch configs, global configs, and non-RetroArch configs.'
  6684. + image=/home/pi/RetroPie/retropiemenu/icons/configedit.png
  6685. + touch /home/pi/RetroPie/retropiemenu/configedit.rp
  6686. + local function
  6687. ++ compgen -A function _add_rom_
  6688. + for function in $(compgen -A function _add_rom_)
  6689. + _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
  6690. ++ _get_configdir_attractmode
  6691. ++ echo /opt/retropie/configs/all/attractmode
  6692. + local attract_dir=/opt/retropie/configs/all/attractmode
  6693. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  6694. + return 0
  6695. + for function in $(compgen -A function _add_rom_)
  6696. + _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
  6697. + local system_name=retropie
  6698. + local system_fullname=RetroPie
  6699. + local path=./configedit.rp
  6700. + local 'name=Configuration Editor'
  6701. + local 'desc=Change common RetroArch options, and manually edit RetroArch configs, global configs, and non-RetroArch configs.'
  6702. + local image=/home/pi/RetroPie/retropiemenu/icons/configedit.png
  6703. + local config_dir=/opt/retropie/configs/all/emulationstation
  6704. + mkUserDir /opt/retropie/configs/all/emulationstation
  6705. + mkdir -p /opt/retropie/configs/all/emulationstation
  6706. + chown pi:pi /opt/retropie/configs/all/emulationstation
  6707. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  6708. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  6709. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  6710. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6711. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6712. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6713. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6714. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  6715. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./configedit.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6716. + [[ 1 -eq 0 ]]
  6717. + 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
  6718. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6719. + for function in $(compgen -A function _add_rom_)
  6720. + _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
  6721. ++ _get_database_mehstation
  6722. ++ echo /opt/retropie/configs/all/mehstation/database.db
  6723. + local db=/opt/retropie/configs/all/mehstation/database.db
  6724. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  6725. + return 0
  6726. + for i in "${!files[@]}"
  6727. + case "${files[i]}" in
  6728. + file=esthemes
  6729. + name='ES Themes'
  6730. + desc='Install, uninstall, or update EmulationStation themes. Most themes can be previewed at https://retropie.org.uk/docs/Themes/.'
  6731. + image=/home/pi/RetroPie/retropiemenu/icons/esthemes.png
  6732. + touch /home/pi/RetroPie/retropiemenu/esthemes.rp
  6733. + local function
  6734. ++ compgen -A function _add_rom_
  6735. + for function in $(compgen -A function _add_rom_)
  6736. + _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
  6737. ++ _get_configdir_attractmode
  6738. ++ echo /opt/retropie/configs/all/attractmode
  6739. + local attract_dir=/opt/retropie/configs/all/attractmode
  6740. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  6741. + return 0
  6742. + for function in $(compgen -A function _add_rom_)
  6743. + _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
  6744. + local system_name=retropie
  6745. + local system_fullname=RetroPie
  6746. + local path=./esthemes.rp
  6747. + local 'name=ES Themes'
  6748. + local 'desc=Install, uninstall, or update EmulationStation themes. Most themes can be previewed at https://retropie.org.uk/docs/Themes/.'
  6749. + local image=/home/pi/RetroPie/retropiemenu/icons/esthemes.png
  6750. + local config_dir=/opt/retropie/configs/all/emulationstation
  6751. + mkUserDir /opt/retropie/configs/all/emulationstation
  6752. + mkdir -p /opt/retropie/configs/all/emulationstation
  6753. + chown pi:pi /opt/retropie/configs/all/emulationstation
  6754. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  6755. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  6756. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  6757. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6758. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6759. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6760. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6761. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  6762. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./esthemes.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6763. + [[ 1 -eq 0 ]]
  6764. + 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
  6765. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6766. + for function in $(compgen -A function _add_rom_)
  6767. + _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
  6768. ++ _get_database_mehstation
  6769. ++ echo /opt/retropie/configs/all/mehstation/database.db
  6770. + local db=/opt/retropie/configs/all/mehstation/database.db
  6771. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  6772. + return 0
  6773. + for i in "${!files[@]}"
  6774. + case "${files[i]}" in
  6775. + file=filemanager
  6776. + name='File Manager'
  6777. + desc='Basic ASCII file manager for Linux allowing you to browse, copy, delete, and move files.'
  6778. + image=/home/pi/RetroPie/retropiemenu/icons/filemanager.png
  6779. + touch /home/pi/RetroPie/retropiemenu/filemanager.rp
  6780. + local function
  6781. ++ compgen -A function _add_rom_
  6782. + for function in $(compgen -A function _add_rom_)
  6783. + _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
  6784. ++ _get_configdir_attractmode
  6785. ++ echo /opt/retropie/configs/all/attractmode
  6786. + local attract_dir=/opt/retropie/configs/all/attractmode
  6787. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  6788. + return 0
  6789. + for function in $(compgen -A function _add_rom_)
  6790. + _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
  6791. + local system_name=retropie
  6792. + local system_fullname=RetroPie
  6793. + local path=./filemanager.rp
  6794. + local 'name=File Manager'
  6795. + local 'desc=Basic ASCII file manager for Linux allowing you to browse, copy, delete, and move files.'
  6796. + local image=/home/pi/RetroPie/retropiemenu/icons/filemanager.png
  6797. + local config_dir=/opt/retropie/configs/all/emulationstation
  6798. + mkUserDir /opt/retropie/configs/all/emulationstation
  6799. + mkdir -p /opt/retropie/configs/all/emulationstation
  6800. + chown pi:pi /opt/retropie/configs/all/emulationstation
  6801. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  6802. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  6803. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  6804. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6805. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6806. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6807. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6808. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  6809. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./filemanager.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6810. + [[ 1 -eq 0 ]]
  6811. + 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
  6812. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6813. + for function in $(compgen -A function _add_rom_)
  6814. + _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
  6815. ++ _get_database_mehstation
  6816. ++ echo /opt/retropie/configs/all/mehstation/database.db
  6817. + local db=/opt/retropie/configs/all/mehstation/database.db
  6818. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  6819. + return 0
  6820. + for i in "${!files[@]}"
  6821. + case "${files[i]}" in
  6822. + isPlatform rpi
  6823. + local flag=rpi
  6824. + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
  6825. + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
  6826. + local flag=rpi
  6827. + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
  6828. + [[ -z rpi ]]
  6829. + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
  6830. + return 0
  6831. + return 0
  6832. + file=raspiconfig
  6833. + name=Raspi-Config
  6834. + desc='Change user password, boot options, internationalization, camera, add your Pi to Rastrack, overclock, overscan, memory split, SSH and more.'
  6835. + image=/home/pi/RetroPie/retropiemenu/icons/raspiconfig.png
  6836. + touch /home/pi/RetroPie/retropiemenu/raspiconfig.rp
  6837. + local function
  6838. ++ compgen -A function _add_rom_
  6839. + for function in $(compgen -A function _add_rom_)
  6840. + _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
  6841. ++ _get_configdir_attractmode
  6842. ++ echo /opt/retropie/configs/all/attractmode
  6843. + local attract_dir=/opt/retropie/configs/all/attractmode
  6844. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  6845. + return 0
  6846. + for function in $(compgen -A function _add_rom_)
  6847. + _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
  6848. + local system_name=retropie
  6849. + local system_fullname=RetroPie
  6850. + local path=./raspiconfig.rp
  6851. + local name=Raspi-Config
  6852. + local 'desc=Change user password, boot options, internationalization, camera, add your Pi to Rastrack, overclock, overscan, memory split, SSH and more.'
  6853. + local image=/home/pi/RetroPie/retropiemenu/icons/raspiconfig.png
  6854. + local config_dir=/opt/retropie/configs/all/emulationstation
  6855. + mkUserDir /opt/retropie/configs/all/emulationstation
  6856. + mkdir -p /opt/retropie/configs/all/emulationstation
  6857. + chown pi:pi /opt/retropie/configs/all/emulationstation
  6858. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  6859. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  6860. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  6861. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6862. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6863. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6864. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6865. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  6866. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./raspiconfig.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6867. + [[ 1 -eq 0 ]]
  6868. + 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
  6869. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6870. + for function in $(compgen -A function _add_rom_)
  6871. + _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
  6872. ++ _get_database_mehstation
  6873. ++ echo /opt/retropie/configs/all/mehstation/database.db
  6874. + local db=/opt/retropie/configs/all/mehstation/database.db
  6875. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  6876. + return 0
  6877. + for i in "${!files[@]}"
  6878. + case "${files[i]}" in
  6879. + file=retroarch
  6880. + name=Retroarch
  6881. + 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.'
  6882. + image=/home/pi/RetroPie/retropiemenu/icons/retroarch.png
  6883. + touch /home/pi/RetroPie/retropiemenu/retroarch.rp
  6884. + local function
  6885. ++ compgen -A function _add_rom_
  6886. + for function in $(compgen -A function _add_rom_)
  6887. + _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
  6888. ++ _get_configdir_attractmode
  6889. ++ echo /opt/retropie/configs/all/attractmode
  6890. + local attract_dir=/opt/retropie/configs/all/attractmode
  6891. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  6892. + return 0
  6893. + for function in $(compgen -A function _add_rom_)
  6894. + _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
  6895. + local system_name=retropie
  6896. + local system_fullname=RetroPie
  6897. + local path=./retroarch.rp
  6898. + local name=Retroarch
  6899. + 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.'
  6900. + local image=/home/pi/RetroPie/retropiemenu/icons/retroarch.png
  6901. + local config_dir=/opt/retropie/configs/all/emulationstation
  6902. + mkUserDir /opt/retropie/configs/all/emulationstation
  6903. + mkdir -p /opt/retropie/configs/all/emulationstation
  6904. + chown pi:pi /opt/retropie/configs/all/emulationstation
  6905. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  6906. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  6907. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  6908. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6909. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6910. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6911. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6912. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  6913. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./retroarch.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6914. + [[ 1 -eq 0 ]]
  6915. + 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
  6916. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6917. + for function in $(compgen -A function _add_rom_)
  6918. + _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
  6919. ++ _get_database_mehstation
  6920. ++ echo /opt/retropie/configs/all/mehstation/database.db
  6921. + local db=/opt/retropie/configs/all/mehstation/database.db
  6922. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  6923. + return 0
  6924. + for i in "${!files[@]}"
  6925. + case "${files[i]}" in
  6926. + file=retronetplay
  6927. + name='RetroArch Net Play'
  6928. + desc='Set up RetroArch Netplay options, choose host or client, port, host IP, delay frames, and your nickname.'
  6929. + image=/home/pi/RetroPie/retropiemenu/icons/retronetplay.png
  6930. + touch /home/pi/RetroPie/retropiemenu/retronetplay.rp
  6931. + local function
  6932. ++ compgen -A function _add_rom_
  6933. + for function in $(compgen -A function _add_rom_)
  6934. + _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
  6935. ++ _get_configdir_attractmode
  6936. ++ echo /opt/retropie/configs/all/attractmode
  6937. + local attract_dir=/opt/retropie/configs/all/attractmode
  6938. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  6939. + return 0
  6940. + for function in $(compgen -A function _add_rom_)
  6941. + _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
  6942. + local system_name=retropie
  6943. + local system_fullname=RetroPie
  6944. + local path=./retronetplay.rp
  6945. + local 'name=RetroArch Net Play'
  6946. + local 'desc=Set up RetroArch Netplay options, choose host or client, port, host IP, delay frames, and your nickname.'
  6947. + local image=/home/pi/RetroPie/retropiemenu/icons/retronetplay.png
  6948. + local config_dir=/opt/retropie/configs/all/emulationstation
  6949. + mkUserDir /opt/retropie/configs/all/emulationstation
  6950. + mkdir -p /opt/retropie/configs/all/emulationstation
  6951. + chown pi:pi /opt/retropie/configs/all/emulationstation
  6952. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  6953. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  6954. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  6955. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6956. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6957. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  6958. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6959. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  6960. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./retronetplay.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6961. + [[ 1 -eq 0 ]]
  6962. + 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
  6963. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  6964. + for function in $(compgen -A function _add_rom_)
  6965. + _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
  6966. ++ _get_database_mehstation
  6967. ++ echo /opt/retropie/configs/all/mehstation/database.db
  6968. + local db=/opt/retropie/configs/all/mehstation/database.db
  6969. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  6970. + return 0
  6971. + for i in "${!files[@]}"
  6972. + case "${files[i]}" in
  6973. + file=rpsetup
  6974. + name='RetroPie Setup'
  6975. + desc='Install RetroPie from binary or source, install experimental packages, additional drivers, edit Samba shares, custom scraper, as well as other RetroPie-related configurations.'
  6976. + image=/home/pi/RetroPie/retropiemenu/icons/rpsetup.png
  6977. + touch /home/pi/RetroPie/retropiemenu/rpsetup.rp
  6978. + local function
  6979. ++ compgen -A function _add_rom_
  6980. + for function in $(compgen -A function _add_rom_)
  6981. + _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
  6982. ++ _get_configdir_attractmode
  6983. ++ echo /opt/retropie/configs/all/attractmode
  6984. + local attract_dir=/opt/retropie/configs/all/attractmode
  6985. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  6986. + return 0
  6987. + for function in $(compgen -A function _add_rom_)
  6988. + _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
  6989. + local system_name=retropie
  6990. + local system_fullname=RetroPie
  6991. + local path=./rpsetup.rp
  6992. + local 'name=RetroPie Setup'
  6993. + 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.'
  6994. + local image=/home/pi/RetroPie/retropiemenu/icons/rpsetup.png
  6995. + local config_dir=/opt/retropie/configs/all/emulationstation
  6996. + mkUserDir /opt/retropie/configs/all/emulationstation
  6997. + mkdir -p /opt/retropie/configs/all/emulationstation
  6998. + chown pi:pi /opt/retropie/configs/all/emulationstation
  6999. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  7000. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  7001. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  7002. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7003. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7004. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7005. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7006. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  7007. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./rpsetup.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7008. + [[ 1 -eq 0 ]]
  7009. + 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
  7010. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7011. + for function in $(compgen -A function _add_rom_)
  7012. + _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
  7013. ++ _get_database_mehstation
  7014. ++ echo /opt/retropie/configs/all/mehstation/database.db
  7015. + local db=/opt/retropie/configs/all/mehstation/database.db
  7016. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  7017. + return 0
  7018. + for i in "${!files[@]}"
  7019. + case "${files[i]}" in
  7020. + file=runcommand
  7021. + name='Run Command Configuration'
  7022. + desc='Change what appears on the runcommand screen. Enable or disable the menu, enable or disable box art, and change CPU configuration.'
  7023. + image=/home/pi/RetroPie/retropiemenu/icons/runcommand.png
  7024. + touch /home/pi/RetroPie/retropiemenu/runcommand.rp
  7025. + local function
  7026. ++ compgen -A function _add_rom_
  7027. + for function in $(compgen -A function _add_rom_)
  7028. + _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
  7029. ++ _get_configdir_attractmode
  7030. ++ echo /opt/retropie/configs/all/attractmode
  7031. + local attract_dir=/opt/retropie/configs/all/attractmode
  7032. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  7033. + return 0
  7034. + for function in $(compgen -A function _add_rom_)
  7035. + _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
  7036. + local system_name=retropie
  7037. + local system_fullname=RetroPie
  7038. + local path=./runcommand.rp
  7039. + local 'name=Run Command Configuration'
  7040. + local 'desc=Change what appears on the runcommand screen. Enable or disable the menu, enable or disable box art, and change CPU configuration.'
  7041. + local image=/home/pi/RetroPie/retropiemenu/icons/runcommand.png
  7042. + local config_dir=/opt/retropie/configs/all/emulationstation
  7043. + mkUserDir /opt/retropie/configs/all/emulationstation
  7044. + mkdir -p /opt/retropie/configs/all/emulationstation
  7045. + chown pi:pi /opt/retropie/configs/all/emulationstation
  7046. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  7047. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  7048. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  7049. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7050. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7051. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7052. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7053. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  7054. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./runcommand.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7055. + [[ 1 -eq 0 ]]
  7056. + 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
  7057. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7058. + for function in $(compgen -A function _add_rom_)
  7059. + _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
  7060. ++ _get_database_mehstation
  7061. ++ echo /opt/retropie/configs/all/mehstation/database.db
  7062. + local db=/opt/retropie/configs/all/mehstation/database.db
  7063. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  7064. + return 0
  7065. + for i in "${!files[@]}"
  7066. + case "${files[i]}" in
  7067. + file=showip
  7068. + name='Show IP'
  7069. + desc='Displays your current IP address, as well as other information provided by the command "ip addr show."'
  7070. + image=/home/pi/RetroPie/retropiemenu/icons/showip.png
  7071. + touch /home/pi/RetroPie/retropiemenu/showip.rp
  7072. + local function
  7073. ++ compgen -A function _add_rom_
  7074. + for function in $(compgen -A function _add_rom_)
  7075. + _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
  7076. ++ _get_configdir_attractmode
  7077. ++ echo /opt/retropie/configs/all/attractmode
  7078. + local attract_dir=/opt/retropie/configs/all/attractmode
  7079. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  7080. + return 0
  7081. + for function in $(compgen -A function _add_rom_)
  7082. + _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
  7083. + local system_name=retropie
  7084. + local system_fullname=RetroPie
  7085. + local path=./showip.rp
  7086. + local 'name=Show IP'
  7087. + local 'desc=Displays your current IP address, as well as other information provided by the command "ip addr show."'
  7088. + local image=/home/pi/RetroPie/retropiemenu/icons/showip.png
  7089. + local config_dir=/opt/retropie/configs/all/emulationstation
  7090. + mkUserDir /opt/retropie/configs/all/emulationstation
  7091. + mkdir -p /opt/retropie/configs/all/emulationstation
  7092. + chown pi:pi /opt/retropie/configs/all/emulationstation
  7093. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  7094. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  7095. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  7096. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7097. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7098. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7099. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7100. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  7101. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./showip.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7102. + [[ 1 -eq 0 ]]
  7103. + 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
  7104. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7105. + for function in $(compgen -A function _add_rom_)
  7106. + _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
  7107. ++ _get_database_mehstation
  7108. ++ echo /opt/retropie/configs/all/mehstation/database.db
  7109. + local db=/opt/retropie/configs/all/mehstation/database.db
  7110. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  7111. + return 0
  7112. + for i in "${!files[@]}"
  7113. + case "${files[i]}" in
  7114. + isPlatform rpi
  7115. + local flag=rpi
  7116. + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
  7117. + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
  7118. + local flag=rpi
  7119. + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
  7120. + [[ -z rpi ]]
  7121. + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
  7122. + return 0
  7123. + return 0
  7124. + file=splashscreen
  7125. + name='Splash Screens'
  7126. + desc='Enable or disable the splashscreen on RetroPie boot. Choose a splashscreen, download new splashscreens, and return splashscreen to default.'
  7127. + image=/home/pi/RetroPie/retropiemenu/icons/splashscreen.png
  7128. + touch /home/pi/RetroPie/retropiemenu/splashscreen.rp
  7129. + local function
  7130. ++ compgen -A function _add_rom_
  7131. + for function in $(compgen -A function _add_rom_)
  7132. + _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
  7133. ++ _get_configdir_attractmode
  7134. ++ echo /opt/retropie/configs/all/attractmode
  7135. + local attract_dir=/opt/retropie/configs/all/attractmode
  7136. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  7137. + return 0
  7138. + for function in $(compgen -A function _add_rom_)
  7139. + _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
  7140. + local system_name=retropie
  7141. + local system_fullname=RetroPie
  7142. + local path=./splashscreen.rp
  7143. + local 'name=Splash Screens'
  7144. + local 'desc=Enable or disable the splashscreen on RetroPie boot. Choose a splashscreen, download new splashscreens, and return splashscreen to default.'
  7145. + local image=/home/pi/RetroPie/retropiemenu/icons/splashscreen.png
  7146. + local config_dir=/opt/retropie/configs/all/emulationstation
  7147. + mkUserDir /opt/retropie/configs/all/emulationstation
  7148. + mkdir -p /opt/retropie/configs/all/emulationstation
  7149. + chown pi:pi /opt/retropie/configs/all/emulationstation
  7150. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  7151. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  7152. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  7153. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7154. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7155. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7156. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7157. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  7158. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./splashscreen.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7159. + [[ 1 -eq 0 ]]
  7160. + 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
  7161. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7162. + for function in $(compgen -A function _add_rom_)
  7163. + _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
  7164. ++ _get_database_mehstation
  7165. ++ echo /opt/retropie/configs/all/mehstation/database.db
  7166. + local db=/opt/retropie/configs/all/mehstation/database.db
  7167. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  7168. + return 0
  7169. + for i in "${!files[@]}"
  7170. + case "${files[i]}" in
  7171. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  7172. + file=wifi
  7173. + name=WiFi
  7174. + desc='Connect to or disconnect from a WiFi network and configure WiFi settings.'
  7175. + image=/home/pi/RetroPie/retropiemenu/icons/wifi.png
  7176. + touch /home/pi/RetroPie/retropiemenu/wifi.rp
  7177. + local function
  7178. ++ compgen -A function _add_rom_
  7179. + for function in $(compgen -A function _add_rom_)
  7180. + _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
  7181. ++ _get_configdir_attractmode
  7182. ++ echo /opt/retropie/configs/all/attractmode
  7183. + local attract_dir=/opt/retropie/configs/all/attractmode
  7184. + [[ ! -d /opt/retropie/configs/all/attractmode ]]
  7185. + return 0
  7186. + for function in $(compgen -A function _add_rom_)
  7187. + _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
  7188. + local system_name=retropie
  7189. + local system_fullname=RetroPie
  7190. + local path=./wifi.rp
  7191. + local name=WiFi
  7192. + local 'desc=Connect to or disconnect from a WiFi network and configure WiFi settings.'
  7193. + local image=/home/pi/RetroPie/retropiemenu/icons/wifi.png
  7194. + local config_dir=/opt/retropie/configs/all/emulationstation
  7195. + mkUserDir /opt/retropie/configs/all/emulationstation
  7196. + mkdir -p /opt/retropie/configs/all/emulationstation
  7197. + chown pi:pi /opt/retropie/configs/all/emulationstation
  7198. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists
  7199. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists
  7200. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists
  7201. + mkUserDir /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7202. + mkdir -p /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7203. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie
  7204. + local config=/opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7205. + [[ ! -f /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml ]]
  7206. ++ xmlstarlet sel -t -v 'count(/gameList/game[path='\''./wifi.rp'\''])' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7207. + [[ 1 -eq 0 ]]
  7208. + 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
  7209. + chown pi:pi /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
  7210. + for function in $(compgen -A function _add_rom_)
  7211. + _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
  7212. ++ _get_database_mehstation
  7213. ++ echo /opt/retropie/configs/all/mehstation/database.db
  7214. + local db=/opt/retropie/configs/all/mehstation/database.db
  7215. + [[ ! -f /opt/retropie/configs/all/mehstation/database.db ]]
  7216. + return 0
  7217. + [[ -n '' ]]
  7218. + [[ 0 -eq 0 ]]
  7219. + [[ -n '' ]]
  7220. + [[ -d /home/pi/RetroPie-Setup/tmp/build/retropiemenu ]]
  7221. + local ret=0
  7222. + [[ 0 -gt 0 ]]
  7223. + [[ configure == \i\n\s\t\a\l\l\_\b\i\n ]]
  7224. + [[ configure == \i\n\s\t\a\l\l ]]
  7225. + fnExists install_retropiemenu
  7226. + declare -f install_retropiemenu
  7227. + return 1
  7228. + [[ configure == \b\u\i\l\d ]]
  7229. + [[ 0 -gt 0 ]]
  7230. + [[ 0 -eq 0 ]]
  7231. + popd
  7232. /home/pi/RetroPie-Setup
  7233. + return 0
  7234. + return 0
  7235. + return 0
  7236. + return 0
  7237. + for id in ${__mod_id[@]}
  7238. + rp_isInstalled runcommand
  7239. + local id=runcommand
  7240. + local md_inst=/opt/retropie/supplementary/runcommand
  7241. + [[ -d /opt/retropie/supplementary/runcommand ]]
  7242. + return 0
  7243. + [[ core != \d\e\p\e\n\d\s ]]
  7244. + rp_installModule runcommand _update_
  7245. + local id=runcommand
  7246. + local mode=_update_
  7247. + [[ -z _update_ ]]
  7248. + rp_callModule runcommand _update_
  7249. + local md_id=runcommand
  7250. + local mode=_update_
  7251. + shift 2
  7252. + rp_hasModule runcommand
  7253. + local id=runcommand
  7254. + [[ -n 218 ]]
  7255. + return 0
  7256. + rp_isEnabled runcommand
  7257. + local id=runcommand
  7258. + [[ 1 -eq 0 ]]
  7259. + return 0
  7260. + case "$mode" in
  7261. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  7262. + rp_isInstalled runcommand
  7263. + local id=runcommand
  7264. + local md_inst=/opt/retropie/supplementary/runcommand
  7265. + [[ -d /opt/retropie/supplementary/runcommand ]]
  7266. + return 0
  7267. + rp_loadPackageInfo runcommand pkg_origin
  7268. + local id=runcommand
  7269. + [[ '' -eq 1 ]]
  7270. + local keys
  7271. + local cache=1
  7272. + [[ -z pkg_origin ]]
  7273. + shift
  7274. + keys=("$@")
  7275. + cache=0
  7276. + local load=0
  7277. ++ rp_getInstallPath runcommand
  7278. ++ local id=runcommand
  7279. ++ echo /opt/retropie/supplementary/runcommand
  7280. + local pkg_file=/opt/retropie/supplementary/runcommand/retropie.pkg
  7281. + [[ -f /opt/retropie/supplementary/runcommand/retropie.pkg ]]
  7282. + load=1
  7283. + local key
  7284. + local data
  7285. + for key in "${keys[@]}"
  7286. + data=
  7287. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  7288. + data=unknown
  7289. + __mod_info[$id/$key]=unknown
  7290. + [[ 1 -eq 1 ]]
  7291. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
  7292. + data=binary
  7293. + [[ -n binary ]]
  7294. + __mod_info[$id/$key]=binary
  7295. + [[ 0 -eq 1 ]]
  7296. + local pkg_origin=binary
  7297. + local has_binary=0
  7298. + local has_net=0
  7299. ++ getIPAddress
  7300. ++ local dev=
  7301. ++ local ip_route
  7302. +++ ip -4 route get 8.8.8.8
  7303. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  7304. cache '
  7305. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  7306. cache ]]
  7307. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  7308. cache ]]
  7309. ++ grep -oP 'src \K[^\s]+'
  7310. + local ip=192.168.2.5
  7311. + [[ -n 192.168.2.5 ]]
  7312. + has_net=1
  7313. + hasFlag nonet nonet
  7314. + local string=nonet
  7315. + local flag=nonet
  7316. + [[ -z nonet ]]
  7317. + [[ -z nonet ]]
  7318. + [[ nonet =~ (^| )nonet($| ) ]]
  7319. + return 0
  7320. + has_net=1
  7321. + [[ 1 -eq 1 ]]
  7322. + rp_hasBinary runcommand
  7323. + local id=runcommand
  7324. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  7325. ++ rp_getBinaryUrl runcommand
  7326. ++ local id=runcommand
  7327. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/runcommand.tar.gz
  7328. ++ fnExists install_bin_runcommand
  7329. ++ declare -f install_bin_runcommand
  7330. ++ return 0
  7331. ++ fnExists __binary_url_runcommand
  7332. ++ declare -f __binary_url_runcommand
  7333. ++ return 1
  7334. ++ url=notest
  7335. ++ echo notest
  7336. + local url=notest
  7337. + [[ notest == \n\o\t\e\s\t ]]
  7338. + return 0
  7339. + local ret=0
  7340. + [[ 0 -eq 0 ]]
  7341. + has_binary=1
  7342. + [[ 0 -eq 2 ]]
  7343. + [[ 1 -eq 0 ]]
  7344. + local do_update=0
  7345. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  7346. + printMsgs heading 'Checking for updates for runcommand'
  7347. + local type=heading
  7348. + shift
  7349. + [[ 0 == \1 ]]
  7350. + for msg in "$@"
  7351. + [[ heading == \d\i\a\l\o\g ]]
  7352. + [[ heading == \c\o\n\s\o\l\e ]]
  7353. + [[ heading == \h\e\a\d\i\n\g ]]
  7354. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nChecking for updates for runcommand\n= = = = = = = = = = = = = = = = = = = = =\n'
  7355.  
  7356. = = = = = = = = = = = = = = = = = = = = =
  7357. Checking for updates for runcommand
  7358. = = = = = = = = = = = = = = = = = = = = =
  7359.  
  7360. + return 0
  7361. + rp_hasNewerModule runcommand binary
  7362. + local id=runcommand
  7363. + local type=binary
  7364. + [[ -n '' ]]
  7365. + rp_loadPackageInfo runcommand
  7366. + local id=runcommand
  7367. + [[ '' -eq 1 ]]
  7368. + local keys
  7369. + local cache=1
  7370. + [[ -z '' ]]
  7371. + keys=(pkg_origin pkg_date pkg_repo_type pkg_repo_url pkg_repo_branch pkg_repo_commit pkg_repo_date pkg_repo_extra)
  7372. + local load=0
  7373. ++ rp_getInstallPath runcommand
  7374. ++ local id=runcommand
  7375. ++ echo /opt/retropie/supplementary/runcommand
  7376. + local pkg_file=/opt/retropie/supplementary/runcommand/retropie.pkg
  7377. + [[ -f /opt/retropie/supplementary/runcommand/retropie.pkg ]]
  7378. + load=1
  7379. + local key
  7380. + local data
  7381. + for key in "${keys[@]}"
  7382. + data=
  7383. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  7384. + data=unknown
  7385. + __mod_info[$id/$key]=unknown
  7386. + [[ 1 -eq 1 ]]
  7387. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
  7388. + data=binary
  7389. + [[ -n binary ]]
  7390. + __mod_info[$id/$key]=binary
  7391. + for key in "${keys[@]}"
  7392. + data=
  7393. + [[ pkg_date == \p\k\g\_\o\r\i\g\i\n ]]
  7394. + __mod_info[$id/$key]=
  7395. + [[ 1 -eq 1 ]]
  7396. ++ grep -oP 'pkg_date="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
  7397. + data=
  7398. + [[ -n '' ]]
  7399. + for key in "${keys[@]}"
  7400. + data=
  7401. + [[ pkg_repo_type == \p\k\g\_\o\r\i\g\i\n ]]
  7402. + __mod_info[$id/$key]=
  7403. + [[ 1 -eq 1 ]]
  7404. ++ grep -oP 'pkg_repo_type="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
  7405. + data=
  7406. + [[ -n '' ]]
  7407. + for key in "${keys[@]}"
  7408. + data=
  7409. + [[ pkg_repo_url == \p\k\g\_\o\r\i\g\i\n ]]
  7410. + __mod_info[$id/$key]=
  7411. + [[ 1 -eq 1 ]]
  7412. ++ grep -oP 'pkg_repo_url="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
  7413. + data=
  7414. + [[ -n '' ]]
  7415. + for key in "${keys[@]}"
  7416. + data=
  7417. + [[ pkg_repo_branch == \p\k\g\_\o\r\i\g\i\n ]]
  7418. + __mod_info[$id/$key]=
  7419. + [[ 1 -eq 1 ]]
  7420. ++ grep -oP 'pkg_repo_branch="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
  7421. + data=
  7422. + [[ -n '' ]]
  7423. + for key in "${keys[@]}"
  7424. + data=
  7425. + [[ pkg_repo_commit == \p\k\g\_\o\r\i\g\i\n ]]
  7426. + __mod_info[$id/$key]=
  7427. + [[ 1 -eq 1 ]]
  7428. ++ grep -oP 'pkg_repo_commit="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
  7429. + data=
  7430. + [[ -n '' ]]
  7431. + for key in "${keys[@]}"
  7432. + data=
  7433. + [[ pkg_repo_date == \p\k\g\_\o\r\i\g\i\n ]]
  7434. + __mod_info[$id/$key]=
  7435. + [[ 1 -eq 1 ]]
  7436. ++ grep -oP 'pkg_repo_date="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
  7437. + data=
  7438. + [[ -n '' ]]
  7439. + for key in "${keys[@]}"
  7440. + data=
  7441. + [[ pkg_repo_extra == \p\k\g\_\o\r\i\g\i\n ]]
  7442. + __mod_info[$id/$key]=
  7443. + [[ 1 -eq 1 ]]
  7444. ++ grep -oP 'pkg_repo_extra="\K[^"]+' /opt/retropie/supplementary/runcommand/retropie.pkg
  7445. + data=
  7446. + [[ -n '' ]]
  7447. + [[ 1 -eq 1 ]]
  7448. + __mod_info[$id/pkg_info]=1
  7449. + local pkg_origin=binary
  7450. + local pkg_date=
  7451. + local pkg_repo_date=
  7452. + local pkg_repo_commit=
  7453. + local ret=1
  7454. + case "$type" in
  7455. + ret=
  7456. + [[ -n '' ]]
  7457. + [[ -z '' ]]
  7458. + ret=2
  7459. + __mod_info[$id/has_newer]=2
  7460. + return 2
  7461. + [[ 2 -eq 0 ]]
  7462. + [[ 2 == 2 ]]
  7463. + do_update=1
  7464. + [[ 0 -eq 3 ]]
  7465. + [[ 1 -eq 1 ]]
  7466. + printMsgs console 'Update is available - updating ...'
  7467. + local type=console
  7468. + shift
  7469. + [[ 0 == \1 ]]
  7470. + for msg in "$@"
  7471. + [[ console == \d\i\a\l\o\g ]]
  7472. + [[ console == \c\o\n\s\o\l\e ]]
  7473. + echo -e 'Update is available - updating ...'
  7474. Update is available - updating ...
  7475. + [[ console == \h\e\a\d\i\n\g ]]
  7476. + return 0
  7477. + [[ 1 -eq 1 ]]
  7478. + [[ binary != \s\o\u\r\c\e ]]
  7479. + [[ 1 -eq 1 ]]
  7480. + rp_callModule runcommand _binary_
  7481. + local md_id=runcommand
  7482. + local mode=_binary_
  7483. + shift 2
  7484. + rp_hasModule runcommand
  7485. + local id=runcommand
  7486. + [[ -n 218 ]]
  7487. + return 0
  7488. + rp_isEnabled runcommand
  7489. + local id=runcommand
  7490. + [[ 1 -eq 0 ]]
  7491. + return 0
  7492. + case "$mode" in
  7493. + for mode in depends install_bin configure
  7494. + rp_callModule runcommand depends
  7495. + local md_id=runcommand
  7496. + local mode=depends
  7497. + shift 2
  7498. + rp_hasModule runcommand
  7499. + local id=runcommand
  7500. + [[ -n 218 ]]
  7501. + return 0
  7502. + rp_isEnabled runcommand
  7503. + local id=runcommand
  7504. + [[ 1 -eq 0 ]]
  7505. + return 0
  7506. + case "$mode" in
  7507. ++ rp_moduleVars runcommand
  7508. ++ local id=runcommand
  7509. ++ local code
  7510. ++ read -d '' -r code
  7511. +++ rp_getInstallPath runcommand
  7512. +++ local id=runcommand
  7513. +++ echo /opt/retropie/supplementary/runcommand
  7514. ++ echo 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
  7515. local md_help=""
  7516. local md_type="supplementary"
  7517. local md_flags="nonet"
  7518. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
  7519.  
  7520. local md_repo_type=""
  7521. local md_repo_url=""
  7522. local md_repo_branch=""
  7523. local md_repo_commit=""
  7524.  
  7525. local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
  7526. local md_inst="/opt/retropie/supplementary/runcommand"
  7527. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  7528. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
  7529. + eval 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
  7530. local md_help=""
  7531. local md_type="supplementary"
  7532. local md_flags="nonet"
  7533. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
  7534.  
  7535. local md_repo_type=""
  7536. local md_repo_url=""
  7537. local md_repo_branch=""
  7538. local md_repo_commit=""
  7539.  
  7540. local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
  7541. local md_inst="/opt/retropie/supplementary/runcommand"
  7542. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  7543. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
  7544. ++ local 'md_desc=The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
  7545. ++ local md_help=
  7546. ++ local md_type=supplementary
  7547. ++ local md_flags=nonet
  7548. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh
  7549. ++ local md_repo_type=
  7550. ++ local md_repo_url=
  7551. ++ local md_repo_branch=
  7552. ++ local md_repo_commit=
  7553. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/runcommand
  7554. ++ local md_inst=/opt/retropie/supplementary/runcommand
  7555. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand
  7556. + local md_mode=install
  7557. + local md_conf_root
  7558. + [[ supplementary == \p\o\r\t\s ]]
  7559. + setConfigRoot ''
  7560. + local dir=
  7561. + md_conf_root=/opt/retropie/configs
  7562. + [[ -n '' ]]
  7563. + mkUserDir /opt/retropie/configs
  7564. + mkdir -p /opt/retropie/configs
  7565. + chown pi:pi /opt/retropie/configs
  7566. + case "$mode" in
  7567. + function=depends_runcommand
  7568. + fnExists depends_runcommand
  7569. + declare -f depends_runcommand
  7570. + return 0
  7571. + md_ret_require=()
  7572. + local md_ret_require
  7573. + md_ret_files=()
  7574. + local md_ret_files
  7575. + md_ret_errors=()
  7576. + local md_ret_errors
  7577. + md_ret_info=()
  7578. + local md_ret_info
  7579. + local action
  7580. + local pushed=1
  7581. + case "$mode" in
  7582. + [[ '' == \r\e\m\o\v\e ]]
  7583. + action=Installing
  7584. + action+=' dependencies for'
  7585. + [[ -n Installing dependencies for ]]
  7586. + printHeading 'Installing dependencies for '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
  7587. + printMsgs heading 'Installing dependencies for '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
  7588. + local type=heading
  7589. + shift
  7590. + [[ 0 == \1 ]]
  7591. + for msg in "$@"
  7592. + [[ heading == \d\i\a\l\o\g ]]
  7593. + [[ heading == \c\o\n\s\o\l\e ]]
  7594. + [[ heading == \h\e\a\d\i\n\g ]]
  7595. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling dependencies for '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend\n= = = = = = = = = = = = = = = = = = = = =\n'
  7596.  
  7597. = = = = = = = = = = = = = = = = = = = = =
  7598. Installing dependencies for 'runcommand' : The 'runcommand' launch script - needed for launching the emulators from the frontend
  7599. = = = = = = = = = = = = = = = = = = = = =
  7600.  
  7601. + return 0
  7602. + case "$mode" in
  7603. + depends_runcommand
  7604. + depends=()
  7605. + local depends
  7606. + isPlatform rpi
  7607. + local flag=rpi
  7608. + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
  7609. + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
  7610. + local flag=rpi
  7611. + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
  7612. + [[ -z rpi ]]
  7613. + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
  7614. + return 0
  7615. + return 0
  7616. + depends+=(libraspberrypi-bin)
  7617. + isPlatform rpi
  7618. + local flag=rpi
  7619. + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' rpi
  7620. + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
  7621. + local flag=rpi
  7622. + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
  7623. + [[ -z rpi ]]
  7624. + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )rpi($| ) ]]
  7625. + return 0
  7626. + return 0
  7627. + depends+=(fbi fbset)
  7628. + isPlatform x11
  7629. + local flag=x11
  7630. + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' x11
  7631. + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
  7632. + local flag=x11
  7633. + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
  7634. + [[ -z x11 ]]
  7635. + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )x11($| ) ]]
  7636. + return 1
  7637. + return 1
  7638. + getDepends libraspberrypi-bin fbi fbset
  7639. + own_pkgs=()
  7640. + local own_pkgs
  7641. + apt_pkgs=()
  7642. + local apt_pkgs
  7643. + all_pkgs=()
  7644. + local all_pkgs
  7645. + local pkg
  7646. + for pkg in "$@"
  7647. + pkg=($(_mapPackage "$pkg"))
  7648. ++ _mapPackage libraspberrypi-bin
  7649. ++ local pkg=libraspberrypi-bin
  7650. ++ case "$pkg" in
  7651. ++ isPlatform osmc
  7652. ++ local flag=osmc
  7653. ++ hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' osmc
  7654. ++ local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
  7655. ++ local flag=osmc
  7656. ++ [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
  7657. ++ [[ -z osmc ]]
  7658. ++ [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )osmc($| ) ]]
  7659. ++ return 1
  7660. ++ return 1
  7661. ++ isPlatform xbian
  7662. ++ local flag=xbian
  7663. ++ hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' xbian
  7664. ++ local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
  7665. ++ local flag=xbian
  7666. ++ [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
  7667. ++ [[ -z xbian ]]
  7668. ++ [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )xbian($| ) ]]
  7669. ++ return 1
  7670. ++ return 1
  7671. ++ echo libraspberrypi-bin
  7672. + [[ libraspberrypi-bin == \R\P ]]
  7673. + [[ install == \r\e\m\o\v\e ]]
  7674. + hasPackage libraspberrypi-bin
  7675. + local pkg=libraspberrypi-bin
  7676. + local req_ver=
  7677. + local comp=
  7678. + [[ -z '' ]]
  7679. + comp=ge
  7680. + local ver
  7681. + local status
  7682. ++ dpkg-query -W '--showformat=${Status} ${Version}' libraspberrypi-bin
  7683. + local 'out=install ok installed 1.20210201-1'
  7684. + [[ 0 -eq 0 ]]
  7685. + ver=1.20210201-1
  7686. + status='install ok installed'
  7687. + local installed=0
  7688. + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
  7689. + installed=1
  7690. + [[ -z '' ]]
  7691. + [[ 1 -eq 1 ]]
  7692. + return 0
  7693. + for pkg in "$@"
  7694. + pkg=($(_mapPackage "$pkg"))
  7695. ++ _mapPackage fbi
  7696. ++ local pkg=fbi
  7697. ++ case "$pkg" in
  7698. ++ echo fbi
  7699. + [[ fbi == \R\P ]]
  7700. + [[ install == \r\e\m\o\v\e ]]
  7701. + hasPackage fbi
  7702. + local pkg=fbi
  7703. + local req_ver=
  7704. + local comp=
  7705. + [[ -z '' ]]
  7706. + comp=ge
  7707. + local ver
  7708. + local status
  7709. ++ dpkg-query -W '--showformat=${Status} ${Version}' fbi
  7710. + local 'out=install ok installed 2.10-3'
  7711. + [[ 0 -eq 0 ]]
  7712. + ver=2.10-3
  7713. + status='install ok installed'
  7714. + local installed=0
  7715. + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
  7716. + installed=1
  7717. + [[ -z '' ]]
  7718. + [[ 1 -eq 1 ]]
  7719. + return 0
  7720. + for pkg in "$@"
  7721. + pkg=($(_mapPackage "$pkg"))
  7722. ++ _mapPackage fbset
  7723. ++ local pkg=fbset
  7724. ++ case "$pkg" in
  7725. ++ echo fbset
  7726. + [[ fbset == \R\P ]]
  7727. + [[ install == \r\e\m\o\v\e ]]
  7728. + hasPackage fbset
  7729. + local pkg=fbset
  7730. + local req_ver=
  7731. + local comp=
  7732. + [[ -z '' ]]
  7733. + comp=ge
  7734. + local ver
  7735. + local status
  7736. ++ dpkg-query -W '--showformat=${Status} ${Version}' fbset
  7737. + local 'out=install ok installed 2.1-30'
  7738. + [[ 0 -eq 0 ]]
  7739. + ver=2.1-30
  7740. + status='install ok installed'
  7741. + local installed=0
  7742. + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
  7743. + installed=1
  7744. + [[ -z '' ]]
  7745. + [[ 1 -eq 1 ]]
  7746. + return 0
  7747. + [[ 0 -eq 0 ]]
  7748. + [[ 0 -eq 0 ]]
  7749. + return
  7750. + [[ -n '' ]]
  7751. + [[ 0 -eq 0 ]]
  7752. + [[ -n '' ]]
  7753. + [[ -d /home/pi/RetroPie-Setup/tmp/build/runcommand ]]
  7754. + local ret=0
  7755. + [[ 0 -gt 0 ]]
  7756. + [[ depends == \i\n\s\t\a\l\l\_\b\i\n ]]
  7757. + [[ depends == \i\n\s\t\a\l\l ]]
  7758. + fnExists install_runcommand
  7759. + declare -f install_runcommand
  7760. + return 1
  7761. + [[ depends == \b\u\i\l\d ]]
  7762. + [[ 0 -gt 0 ]]
  7763. + [[ 1 -eq 0 ]]
  7764. + return 0
  7765. + for mode in depends install_bin configure
  7766. + rp_callModule runcommand install_bin
  7767. + local md_id=runcommand
  7768. + local mode=install_bin
  7769. + shift 2
  7770. + rp_hasModule runcommand
  7771. + local id=runcommand
  7772. + [[ -n 218 ]]
  7773. + return 0
  7774. + rp_isEnabled runcommand
  7775. + local id=runcommand
  7776. + [[ 1 -eq 0 ]]
  7777. + return 0
  7778. + case "$mode" in
  7779. ++ rp_moduleVars runcommand
  7780. ++ local id=runcommand
  7781. ++ local code
  7782. ++ read -d '' -r code
  7783. +++ rp_getInstallPath runcommand
  7784. +++ local id=runcommand
  7785. +++ echo /opt/retropie/supplementary/runcommand
  7786. ++ echo 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
  7787. local md_help=""
  7788. local md_type="supplementary"
  7789. local md_flags="nonet"
  7790. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
  7791.  
  7792. local md_repo_type=""
  7793. local md_repo_url=""
  7794. local md_repo_branch=""
  7795. local md_repo_commit=""
  7796.  
  7797. local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
  7798. local md_inst="/opt/retropie/supplementary/runcommand"
  7799. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  7800. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
  7801. + eval 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
  7802. local md_help=""
  7803. local md_type="supplementary"
  7804. local md_flags="nonet"
  7805. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
  7806.  
  7807. local md_repo_type=""
  7808. local md_repo_url=""
  7809. local md_repo_branch=""
  7810. local md_repo_commit=""
  7811.  
  7812. local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
  7813. local md_inst="/opt/retropie/supplementary/runcommand"
  7814. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  7815. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
  7816. ++ local 'md_desc=The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
  7817. ++ local md_help=
  7818. ++ local md_type=supplementary
  7819. ++ local md_flags=nonet
  7820. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh
  7821. ++ local md_repo_type=
  7822. ++ local md_repo_url=
  7823. ++ local md_repo_branch=
  7824. ++ local md_repo_commit=
  7825. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/runcommand
  7826. ++ local md_inst=/opt/retropie/supplementary/runcommand
  7827. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand
  7828. + local md_mode=install
  7829. + local md_conf_root
  7830. + [[ supplementary == \p\o\r\t\s ]]
  7831. + setConfigRoot ''
  7832. + local dir=
  7833. + md_conf_root=/opt/retropie/configs
  7834. + [[ -n '' ]]
  7835. + mkUserDir /opt/retropie/configs
  7836. + mkdir -p /opt/retropie/configs
  7837. + chown pi:pi /opt/retropie/configs
  7838. + case "$mode" in
  7839. + function=install_bin_runcommand
  7840. + fnExists install_bin_runcommand
  7841. + declare -f install_bin_runcommand
  7842. + return 0
  7843. + md_ret_require=()
  7844. + local md_ret_require
  7845. + md_ret_files=()
  7846. + local md_ret_files
  7847. + md_ret_errors=()
  7848. + local md_ret_errors
  7849. + md_ret_info=()
  7850. + local md_ret_info
  7851. + local action
  7852. + local pushed=1
  7853. + case "$mode" in
  7854. + action='Installing (binary)'
  7855. + [[ -n Installing (binary) ]]
  7856. + printHeading 'Installing (binary) '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
  7857. + printMsgs heading 'Installing (binary) '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
  7858. + local type=heading
  7859. + shift
  7860. + [[ 0 == \1 ]]
  7861. + for msg in "$@"
  7862. + [[ heading == \d\i\a\l\o\g ]]
  7863. + [[ heading == \c\o\n\s\o\l\e ]]
  7864. + [[ heading == \h\e\a\d\i\n\g ]]
  7865. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling (binary) '\''runcommand'\'' : The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend\n= = = = = = = = = = = = = = = = = = = = =\n'
  7866.  
  7867. = = = = = = = = = = = = = = = = = = = = =
  7868. Installing (binary) 'runcommand' : The 'runcommand' launch script - needed for launching the emulators from the frontend
  7869. = = = = = = = = = = = = = = = = = = = = =
  7870.  
  7871. + return 0
  7872. + case "$mode" in
  7873. + fnExists install_bin_runcommand
  7874. + declare -f install_bin_runcommand
  7875. + return 0
  7876. + mkdir -p /opt/retropie/supplementary/runcommand
  7877. + install_bin_runcommand
  7878. + cp /home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand/runcommand.sh /opt/retropie/supplementary/runcommand/
  7879. + cp /home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand/joy2key.py /opt/retropie/supplementary/runcommand/
  7880. + chmod a+x /opt/retropie/supplementary/runcommand/runcommand.sh
  7881. + chmod a+x /opt/retropie/supplementary/runcommand/joy2key.py
  7882. + python3 -m compileall /opt/retropie/supplementary/runcommand/joy2key.py
  7883. Compiling '/opt/retropie/supplementary/runcommand/joy2key.py'...
  7884. + [[ ! -f /opt/retropie/configs/all/runcommand.cfg ]]
  7885. + [[ ! -f /opt/retropie/configs/all/runcommand-launch-dialog.cfg ]]
  7886. + compareVersions 10 ge 10
  7887. + dpkg --compare-versions 10 ge 10
  7888. + return 0
  7889. + rp_installModule mesa-drm _autoupdate_
  7890. + local id=mesa-drm
  7891. + local mode=_autoupdate_
  7892. + [[ -z _autoupdate_ ]]
  7893. + rp_callModule mesa-drm _autoupdate_
  7894. + local md_id=mesa-drm
  7895. + local mode=_autoupdate_
  7896. + shift 2
  7897. + rp_hasModule mesa-drm
  7898. + local id=mesa-drm
  7899. + [[ -n 205 ]]
  7900. + return 0
  7901. + rp_isEnabled mesa-drm
  7902. + local id=mesa-drm
  7903. + [[ 1 -eq 0 ]]
  7904. + return 0
  7905. + case "$mode" in
  7906. + rp_isInstalled mesa-drm
  7907. + local id=mesa-drm
  7908. + local md_inst=/opt/retropie/supplementary/mesa-drm
  7909. + [[ -d /opt/retropie/supplementary/mesa-drm ]]
  7910. + return 0
  7911. + rp_callModule mesa-drm _update_
  7912. + local md_id=mesa-drm
  7913. + local mode=_update_
  7914. + shift 2
  7915. + rp_hasModule mesa-drm
  7916. + local id=mesa-drm
  7917. + [[ -n 205 ]]
  7918. + return 0
  7919. + rp_isEnabled mesa-drm
  7920. + local id=mesa-drm
  7921. + [[ 1 -eq 0 ]]
  7922. + return 0
  7923. + case "$mode" in
  7924. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  7925. + rp_isInstalled mesa-drm
  7926. + local id=mesa-drm
  7927. + local md_inst=/opt/retropie/supplementary/mesa-drm
  7928. + [[ -d /opt/retropie/supplementary/mesa-drm ]]
  7929. + return 0
  7930. + rp_loadPackageInfo mesa-drm pkg_origin
  7931. + local id=mesa-drm
  7932. + [[ '' -eq 1 ]]
  7933. + local keys
  7934. + local cache=1
  7935. + [[ -z pkg_origin ]]
  7936. + shift
  7937. + keys=("$@")
  7938. + cache=0
  7939. + local load=0
  7940. ++ rp_getInstallPath mesa-drm
  7941. ++ local id=mesa-drm
  7942. ++ echo /opt/retropie/supplementary/mesa-drm
  7943. + local pkg_file=/opt/retropie/supplementary/mesa-drm/retropie.pkg
  7944. + [[ -f /opt/retropie/supplementary/mesa-drm/retropie.pkg ]]
  7945. + load=1
  7946. + local key
  7947. + local data
  7948. + for key in "${keys[@]}"
  7949. + data=
  7950. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  7951. + data=unknown
  7952. + __mod_info[$id/$key]=unknown
  7953. + [[ 1 -eq 1 ]]
  7954. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/mesa-drm/retropie.pkg
  7955. + data=binary
  7956. + [[ -n binary ]]
  7957. + __mod_info[$id/$key]=binary
  7958. + [[ 0 -eq 1 ]]
  7959. + local pkg_origin=binary
  7960. + local has_binary=0
  7961. + local has_net=0
  7962. ++ getIPAddress
  7963. ++ local dev=
  7964. ++ local ip_route
  7965. +++ ip -4 route get 8.8.8.8
  7966. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  7967. cache '
  7968. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  7969. cache ]]
  7970. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  7971. cache ]]
  7972. ++ grep -oP 'src \K[^\s]+'
  7973. + local ip=192.168.2.5
  7974. + [[ -n 192.168.2.5 ]]
  7975. + has_net=1
  7976. + hasFlag '' nonet
  7977. + local string=
  7978. + local flag=nonet
  7979. + [[ -z '' ]]
  7980. + return 1
  7981. + [[ 1 -eq 1 ]]
  7982. + rp_hasBinary mesa-drm
  7983. + local id=mesa-drm
  7984. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  7985. ++ rp_getBinaryUrl mesa-drm
  7986. ++ local id=mesa-drm
  7987. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
  7988. ++ fnExists install_bin_mesa-drm
  7989. ++ declare -f install_bin_mesa-drm
  7990. ++ return 1
  7991. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
  7992. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
  7993. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz == \n\o\t\e\s\t ]]
  7994. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz ]]
  7995. + [[ -n '' ]]
  7996. + local ret=1
  7997. + rp_hasBinaries
  7998. + [[ 1 -eq 1 ]]
  7999. + return 0
  8000. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
  8001. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
  8002. + local ret
  8003. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/mesa-drm.tar.gz
  8004. + ret=28
  8005. + [[ 28 -eq 0 ]]
  8006. + [[ 28 -eq 22 ]]
  8007. + return 2
  8008. + ret=2
  8009. + [[ 2 -ne 2 ]]
  8010. + return 2
  8011. + local ret=2
  8012. + [[ 2 -eq 0 ]]
  8013. + [[ 2 -eq 2 ]]
  8014. + has_net=0
  8015. + [[ 0 -eq 0 ]]
  8016. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  8017. + return 1
  8018. + return 1
  8019. + return 1
  8020. + md_ret_require=/opt/retropie/supplementary/runcommand/runcommand.sh
  8021. + [[ -n /opt/retropie/supplementary/runcommand/runcommand.sh ]]
  8022. + for file in "${md_ret_require[@]}"
  8023. + [[ ! -e /opt/retropie/supplementary/runcommand/runcommand.sh ]]
  8024. + [[ 0 -eq 0 ]]
  8025. + [[ -n '' ]]
  8026. + [[ -d /home/pi/RetroPie-Setup/tmp/build/runcommand ]]
  8027. + local ret=0
  8028. + [[ 0 -gt 0 ]]
  8029. + [[ install_bin == \i\n\s\t\a\l\l\_\b\i\n ]]
  8030. + rp_setPackageInfo runcommand binary
  8031. + local id=runcommand
  8032. ++ rp_getInstallPath runcommand
  8033. ++ local id=runcommand
  8034. ++ echo /opt/retropie/supplementary/runcommand
  8035. + local install_path=/opt/retropie/supplementary/runcommand
  8036. + [[ ! -d /opt/retropie/supplementary/runcommand ]]
  8037. + local pkg=/opt/retropie/supplementary/runcommand/retropie.pkg
  8038. + local origin=binary
  8039. + rp_clearCachedInfo runcommand
  8040. + local id=runcommand
  8041. + __mod_info[$id/pkg_info]=0
  8042. + __mod_info[$id/has_binary]=
  8043. + __mod_info[$id/has_newer]=
  8044. + iniConfig = '"' /opt/retropie/supplementary/runcommand/retropie.pkg
  8045. + __ini_cfg_delim==
  8046. + __ini_cfg_quote='"'
  8047. + __ini_cfg_file=/opt/retropie/supplementary/runcommand/retropie.pkg
  8048. + iniSet pkg_origin binary
  8049. + iniProcess set pkg_origin binary ''
  8050. + local cmd=set
  8051. + local key=pkg_origin
  8052. + local value=binary
  8053. + local file=
  8054. + [[ -z '' ]]
  8055. + file=/opt/retropie/supplementary/runcommand/retropie.pkg
  8056. + local delim==
  8057. + local 'quote="'
  8058. + [[ -z /opt/retropie/supplementary/runcommand/retropie.pkg ]]
  8059. + [[ -z pkg_origin ]]
  8060. + local delim_strip==
  8061. + [[ -z = ]]
  8062. + local 'match_re=^[[:space:]#]*pkg_origin[[:space:]]*=.*$'
  8063. + local match
  8064. + [[ -f /opt/retropie/supplementary/runcommand/retropie.pkg ]]
  8065. ++ egrep -i '^[[:space:]#]*pkg_origin[[:space:]]*=.*$' /opt/retropie/supplementary/runcommand/retropie.pkg
  8066. ++ tail -1
  8067. + match='pkg_origin="binary"'
  8068. + [[ set == \d\e\l ]]
  8069. + [[ set == \u\n\s\e\t ]]
  8070. + local 'replace=pkg_origin="binary"'
  8071. + [[ -z pkg_origin="binary" ]]
  8072. ++ sedQuote 'pkg_origin="binary"'
  8073. ++ local 'string=pkg_origin="binary"'
  8074. ++ string='pkg_origin="binary"'
  8075. ++ string='pkg_origin="binary"'
  8076. ++ string='pkg_origin="binary"'
  8077. ++ string='pkg_origin="binary"'
  8078. ++ echo 'pkg_origin="binary"'
  8079. ++ sedQuote 'pkg_origin="binary"'
  8080. ++ local 'string=pkg_origin="binary"'
  8081. ++ string='pkg_origin="binary"'
  8082. ++ string='pkg_origin="binary"'
  8083. ++ string='pkg_origin="binary"'
  8084. ++ string='pkg_origin="binary"'
  8085. ++ echo 'pkg_origin="binary"'
  8086. + sed -i --follow-symlinks 's|pkg_origin="binary"|pkg_origin="binary"|g' /opt/retropie/supplementary/runcommand/retropie.pkg
  8087. + [[ /opt/retropie/supplementary/runcommand/retropie.pkg =~ retroarch\.cfg$ ]]
  8088. + return 0
  8089. + local pkg_date
  8090. + local pkg_repo_type
  8091. + local pkg_repo_url
  8092. + local pkg_repo_branch
  8093. + local pkg_repo_commit
  8094. + local pkg_repo_date
  8095. + local pkg_repo_extra
  8096. + [[ binary == \b\i\n\a\r\y ]]
  8097. ++ rp_getBinaryDate runcommand
  8098. ++ local id=runcommand
  8099. +++ rp_getBinaryUrl runcommand
  8100. +++ local id=runcommand
  8101. +++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/runcommand.tar.gz
  8102. +++ fnExists install_bin_runcommand
  8103. +++ declare -f install_bin_runcommand
  8104. +++ return 0
  8105. +++ fnExists __binary_url_runcommand
  8106. +++ declare -f __binary_url_runcommand
  8107. +++ return 1
  8108. +++ url=notest
  8109. +++ echo notest
  8110. ++ local url=notest
  8111. ++ [[ -z notest ]]
  8112. ++ [[ notest == \n\o\t\e\s\t ]]
  8113. ++ return 1
  8114. + pkg_date=
  8115. + iniSet pkg_date ''
  8116. + iniProcess set pkg_date '' ''
  8117. + local cmd=set
  8118. + local key=pkg_date
  8119. + local value=
  8120. + local file=
  8121. + [[ -z '' ]]
  8122. + file=/opt/retropie/supplementary/runcommand/retropie.pkg
  8123. + local delim==
  8124. + local 'quote="'
  8125. + [[ -z /opt/retropie/supplementary/runcommand/retropie.pkg ]]
  8126. + [[ -z pkg_date ]]
  8127. + local delim_strip==
  8128. + [[ -z = ]]
  8129. + local 'match_re=^[[:space:]#]*pkg_date[[:space:]]*=.*$'
  8130. + local match
  8131. + [[ -f /opt/retropie/supplementary/runcommand/retropie.pkg ]]
  8132. ++ egrep -i '^[[:space:]#]*pkg_date[[:space:]]*=.*$' /opt/retropie/supplementary/runcommand/retropie.pkg
  8133. ++ tail -1
  8134. + match='pkg_date=""'
  8135. + [[ set == \d\e\l ]]
  8136. + [[ set == \u\n\s\e\t ]]
  8137. + local 'replace=pkg_date=""'
  8138. + [[ -z pkg_date="" ]]
  8139. ++ sedQuote 'pkg_date=""'
  8140. ++ local 'string=pkg_date=""'
  8141. ++ string='pkg_date=""'
  8142. ++ string='pkg_date=""'
  8143. ++ string='pkg_date=""'
  8144. ++ string='pkg_date=""'
  8145. ++ echo 'pkg_date=""'
  8146. ++ sedQuote 'pkg_date=""'
  8147. ++ local 'string=pkg_date=""'
  8148. ++ string='pkg_date=""'
  8149. ++ string='pkg_date=""'
  8150. ++ string='pkg_date=""'
  8151. ++ string='pkg_date=""'
  8152. ++ echo 'pkg_date=""'
  8153. + sed -i --follow-symlinks 's|pkg_date=""|pkg_date=""|g' /opt/retropie/supplementary/runcommand/retropie.pkg
  8154. + [[ /opt/retropie/supplementary/runcommand/retropie.pkg =~ retroarch\.cfg$ ]]
  8155. + return 0
  8156. + [[ install_bin == \i\n\s\t\a\l\l ]]
  8157. + fnExists install_runcommand
  8158. + declare -f install_runcommand
  8159. + return 1
  8160. + [[ install_bin == \b\u\i\l\d ]]
  8161. + [[ 0 -gt 0 ]]
  8162. + [[ 1 -eq 0 ]]
  8163. + return 0
  8164. + for mode in depends install_bin configure
  8165. + rp_callModule runcommand configure
  8166. + local md_id=runcommand
  8167. + local mode=configure
  8168. + shift 2
  8169. + rp_hasModule runcommand
  8170. + local id=runcommand
  8171. + [[ -n 218 ]]
  8172. + return 0
  8173. + rp_isEnabled runcommand
  8174. + local id=runcommand
  8175. + [[ 1 -eq 0 ]]
  8176. + return 0
  8177. + case "$mode" in
  8178. ++ rp_moduleVars runcommand
  8179. ++ local id=runcommand
  8180. ++ local code
  8181. ++ read -d '' -r code
  8182. +++ rp_getInstallPath runcommand
  8183. +++ local id=runcommand
  8184. +++ echo /opt/retropie/supplementary/runcommand
  8185. ++ echo 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
  8186. local md_help=""
  8187. local md_type="supplementary"
  8188. local md_flags="nonet"
  8189. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
  8190.  
  8191. local md_repo_type=""
  8192. local md_repo_url=""
  8193. local md_repo_branch=""
  8194. local md_repo_commit=""
  8195.  
  8196. local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
  8197. local md_inst="/opt/retropie/supplementary/runcommand"
  8198. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  8199. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
  8200. + eval 'local md_desc="The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend"
  8201. local md_help=""
  8202. local md_type="supplementary"
  8203. local md_flags="nonet"
  8204. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh"
  8205.  
  8206. local md_repo_type=""
  8207. local md_repo_url=""
  8208. local md_repo_branch=""
  8209. local md_repo_commit=""
  8210.  
  8211. local md_build="/home/pi/RetroPie-Setup/tmp/build/runcommand"
  8212. local md_inst="/opt/retropie/supplementary/runcommand"
  8213. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  8214. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand"'
  8215. ++ local 'md_desc=The '\''runcommand'\'' launch script - needed for launching the emulators from the frontend'
  8216. ++ local md_help=
  8217. ++ local md_type=supplementary
  8218. ++ local md_flags=nonet
  8219. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand.sh
  8220. ++ local md_repo_type=
  8221. ++ local md_repo_url=
  8222. ++ local md_repo_branch=
  8223. ++ local md_repo_commit=
  8224. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/runcommand
  8225. ++ local md_inst=/opt/retropie/supplementary/runcommand
  8226. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand
  8227. + local md_mode=install
  8228. + local md_conf_root
  8229. + [[ supplementary == \p\o\r\t\s ]]
  8230. + setConfigRoot ''
  8231. + local dir=
  8232. + md_conf_root=/opt/retropie/configs
  8233. + [[ -n '' ]]
  8234. + mkUserDir /opt/retropie/configs
  8235. + mkdir -p /opt/retropie/configs
  8236. + chown pi:pi /opt/retropie/configs
  8237. + case "$mode" in
  8238. + function=configure_runcommand
  8239. + fnExists configure_runcommand
  8240. + declare -f configure_runcommand
  8241. + return 1
  8242. + [[ configure == \i\n\s\t\a\l\l ]]
  8243. + [[ configure != \i\n\s\t\a\l\l\_\b\i\n ]]
  8244. + [[ configure != \r\e\m\o\v\e ]]
  8245. + return 0
  8246. + return 0
  8247. + return 0
  8248. + return 0
  8249. + for id in ${__mod_id[@]}
  8250. + rp_isInstalled samba
  8251. + local id=samba
  8252. + local md_inst=/opt/retropie/supplementary/samba
  8253. + [[ -d /opt/retropie/supplementary/samba ]]
  8254. + return 1
  8255. + for id in ${__mod_id[@]}
  8256. + rp_isInstalled scraper
  8257. + local id=scraper
  8258. + local md_inst=/opt/retropie/supplementary/scraper
  8259. + [[ -d /opt/retropie/supplementary/scraper ]]
  8260. + return 1
  8261. + for id in ${__mod_id[@]}
  8262. + rp_isInstalled sdl1
  8263. + local id=sdl1
  8264. + local md_inst=/opt/retropie/supplementary/sdl1
  8265. + [[ -d /opt/retropie/supplementary/sdl1 ]]
  8266. + return 0
  8267. + [[ depends != \d\e\p\e\n\d\s ]]
  8268. + for id in ${__mod_id[@]}
  8269. + rp_isInstalled sdl2
  8270. + local id=sdl2
  8271. + local md_inst=/opt/retropie/supplementary/sdl2
  8272. + [[ -d /opt/retropie/supplementary/sdl2 ]]
  8273. + return 0
  8274. + [[ depends != \d\e\p\e\n\d\s ]]
  8275. + for id in ${__mod_id[@]}
  8276. + rp_isInstalled sixaxis
  8277. + local id=sixaxis
  8278. + local md_inst=/opt/retropie/supplementary/sixaxis
  8279. + [[ -d /opt/retropie/supplementary/sixaxis ]]
  8280. + return 1
  8281. + for id in ${__mod_id[@]}
  8282. + rp_isInstalled skyscraper
  8283. + local id=skyscraper
  8284. + local md_inst=/opt/retropie/supplementary/skyscraper
  8285. + [[ -d /opt/retropie/supplementary/skyscraper ]]
  8286. + return 1
  8287. + for id in ${__mod_id[@]}
  8288. + rp_isInstalled snesdev
  8289. + local id=snesdev
  8290. + local md_inst=/opt/retropie/supplementary/snesdev
  8291. + [[ -d /opt/retropie/supplementary/snesdev ]]
  8292. + return 1
  8293. + for id in ${__mod_id[@]}
  8294. + rp_isInstalled splashscreen
  8295. + local id=splashscreen
  8296. + local md_inst=/opt/retropie/supplementary/splashscreen
  8297. + [[ -d /opt/retropie/supplementary/splashscreen ]]
  8298. + return 0
  8299. + [[ main != \d\e\p\e\n\d\s ]]
  8300. + rp_installModule splashscreen _update_
  8301. + local id=splashscreen
  8302. + local mode=_update_
  8303. + [[ -z _update_ ]]
  8304. + rp_callModule splashscreen _update_
  8305. + local md_id=splashscreen
  8306. + local mode=_update_
  8307. + shift 2
  8308. + rp_hasModule splashscreen
  8309. + local id=splashscreen
  8310. + [[ -n 226 ]]
  8311. + return 0
  8312. + rp_isEnabled splashscreen
  8313. + local id=splashscreen
  8314. + [[ 1 -eq 0 ]]
  8315. + return 0
  8316. + case "$mode" in
  8317. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  8318. + rp_isInstalled splashscreen
  8319. + local id=splashscreen
  8320. + local md_inst=/opt/retropie/supplementary/splashscreen
  8321. + [[ -d /opt/retropie/supplementary/splashscreen ]]
  8322. + return 0
  8323. + rp_loadPackageInfo splashscreen pkg_origin
  8324. + local id=splashscreen
  8325. + [[ '' -eq 1 ]]
  8326. + local keys
  8327. + local cache=1
  8328. + [[ -z pkg_origin ]]
  8329. + shift
  8330. + keys=("$@")
  8331. + cache=0
  8332. + local load=0
  8333. ++ rp_getInstallPath splashscreen
  8334. ++ local id=splashscreen
  8335. ++ echo /opt/retropie/supplementary/splashscreen
  8336. + local pkg_file=/opt/retropie/supplementary/splashscreen/retropie.pkg
  8337. + [[ -f /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
  8338. + load=1
  8339. + local key
  8340. + local data
  8341. + for key in "${keys[@]}"
  8342. + data=
  8343. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  8344. + data=unknown
  8345. + __mod_info[$id/$key]=unknown
  8346. + [[ 1 -eq 1 ]]
  8347. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
  8348. + data=binary
  8349. + [[ -n binary ]]
  8350. + __mod_info[$id/$key]=binary
  8351. + [[ 0 -eq 1 ]]
  8352. + local pkg_origin=binary
  8353. + local has_binary=0
  8354. + local has_net=0
  8355. ++ getIPAddress
  8356. ++ local dev=
  8357. ++ local ip_route
  8358. +++ ip -4 route get 8.8.8.8
  8359. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  8360. cache '
  8361. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  8362. cache ]]
  8363. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  8364. cache ]]
  8365. ++ grep -oP 'src \K[^\s]+'
  8366. + local ip=192.168.2.5
  8367. + [[ -n 192.168.2.5 ]]
  8368. + has_net=1
  8369. + hasFlag 'noinstclean !all rpi !osmc !xbian !aarch64' nonet
  8370. + local 'string=noinstclean !all rpi !osmc !xbian !aarch64'
  8371. + local flag=nonet
  8372. + [[ -z noinstclean !all rpi !osmc !xbian !aarch64 ]]
  8373. + [[ -z nonet ]]
  8374. + [[ noinstclean !all rpi !osmc !xbian !aarch64 =~ (^| )nonet($| ) ]]
  8375. + return 1
  8376. + [[ 1 -eq 1 ]]
  8377. + rp_hasBinary splashscreen
  8378. + local id=splashscreen
  8379. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  8380. ++ rp_getBinaryUrl splashscreen
  8381. ++ local id=splashscreen
  8382. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/splashscreen.tar.gz
  8383. ++ fnExists install_bin_splashscreen
  8384. ++ declare -f install_bin_splashscreen
  8385. ++ return 0
  8386. ++ fnExists __binary_url_splashscreen
  8387. ++ declare -f __binary_url_splashscreen
  8388. ++ return 1
  8389. ++ url=notest
  8390. ++ echo notest
  8391. + local url=notest
  8392. + [[ notest == \n\o\t\e\s\t ]]
  8393. + return 0
  8394. + local ret=0
  8395. + [[ 0 -eq 0 ]]
  8396. + has_binary=1
  8397. + [[ 0 -eq 2 ]]
  8398. + [[ 1 -eq 0 ]]
  8399. + local do_update=0
  8400. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  8401. + printMsgs heading 'Checking for updates for splashscreen'
  8402. + local type=heading
  8403. + shift
  8404. + [[ 0 == \1 ]]
  8405. + for msg in "$@"
  8406. + [[ heading == \d\i\a\l\o\g ]]
  8407. + [[ heading == \c\o\n\s\o\l\e ]]
  8408. + [[ heading == \h\e\a\d\i\n\g ]]
  8409. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nChecking for updates for splashscreen\n= = = = = = = = = = = = = = = = = = = = =\n'
  8410.  
  8411. = = = = = = = = = = = = = = = = = = = = =
  8412. Checking for updates for splashscreen
  8413. = = = = = = = = = = = = = = = = = = = = =
  8414.  
  8415. + return 0
  8416. + rp_hasNewerModule splashscreen binary
  8417. + local id=splashscreen
  8418. + local type=binary
  8419. + [[ -n '' ]]
  8420. + rp_loadPackageInfo splashscreen
  8421. + local id=splashscreen
  8422. + [[ '' -eq 1 ]]
  8423. + local keys
  8424. + local cache=1
  8425. + [[ -z '' ]]
  8426. + keys=(pkg_origin pkg_date pkg_repo_type pkg_repo_url pkg_repo_branch pkg_repo_commit pkg_repo_date pkg_repo_extra)
  8427. + local load=0
  8428. ++ rp_getInstallPath splashscreen
  8429. ++ local id=splashscreen
  8430. ++ echo /opt/retropie/supplementary/splashscreen
  8431. + local pkg_file=/opt/retropie/supplementary/splashscreen/retropie.pkg
  8432. + [[ -f /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
  8433. + load=1
  8434. + local key
  8435. + local data
  8436. + for key in "${keys[@]}"
  8437. + data=
  8438. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  8439. + data=unknown
  8440. + __mod_info[$id/$key]=unknown
  8441. + [[ 1 -eq 1 ]]
  8442. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
  8443. + data=binary
  8444. + [[ -n binary ]]
  8445. + __mod_info[$id/$key]=binary
  8446. + for key in "${keys[@]}"
  8447. + data=
  8448. + [[ pkg_date == \p\k\g\_\o\r\i\g\i\n ]]
  8449. + __mod_info[$id/$key]=
  8450. + [[ 1 -eq 1 ]]
  8451. ++ grep -oP 'pkg_date="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
  8452. + data=
  8453. + [[ -n '' ]]
  8454. + for key in "${keys[@]}"
  8455. + data=
  8456. + [[ pkg_repo_type == \p\k\g\_\o\r\i\g\i\n ]]
  8457. + __mod_info[$id/$key]=
  8458. + [[ 1 -eq 1 ]]
  8459. ++ grep -oP 'pkg_repo_type="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
  8460. + data=
  8461. + [[ -n '' ]]
  8462. + for key in "${keys[@]}"
  8463. + data=
  8464. + [[ pkg_repo_url == \p\k\g\_\o\r\i\g\i\n ]]
  8465. + __mod_info[$id/$key]=
  8466. + [[ 1 -eq 1 ]]
  8467. ++ grep -oP 'pkg_repo_url="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
  8468. + data=
  8469. + [[ -n '' ]]
  8470. + for key in "${keys[@]}"
  8471. + data=
  8472. + [[ pkg_repo_branch == \p\k\g\_\o\r\i\g\i\n ]]
  8473. + __mod_info[$id/$key]=
  8474. + [[ 1 -eq 1 ]]
  8475. ++ grep -oP 'pkg_repo_branch="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
  8476. + data=
  8477. + [[ -n '' ]]
  8478. + for key in "${keys[@]}"
  8479. + data=
  8480. + [[ pkg_repo_commit == \p\k\g\_\o\r\i\g\i\n ]]
  8481. + __mod_info[$id/$key]=
  8482. + [[ 1 -eq 1 ]]
  8483. ++ grep -oP 'pkg_repo_commit="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
  8484. + data=
  8485. + [[ -n '' ]]
  8486. + for key in "${keys[@]}"
  8487. + data=
  8488. + [[ pkg_repo_date == \p\k\g\_\o\r\i\g\i\n ]]
  8489. + __mod_info[$id/$key]=
  8490. + [[ 1 -eq 1 ]]
  8491. ++ grep -oP 'pkg_repo_date="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
  8492. + data=
  8493. + [[ -n '' ]]
  8494. + for key in "${keys[@]}"
  8495. + data=
  8496. + [[ pkg_repo_extra == \p\k\g\_\o\r\i\g\i\n ]]
  8497. + __mod_info[$id/$key]=
  8498. + [[ 1 -eq 1 ]]
  8499. ++ grep -oP 'pkg_repo_extra="\K[^"]+' /opt/retropie/supplementary/splashscreen/retropie.pkg
  8500. + data=
  8501. + [[ -n '' ]]
  8502. + [[ 1 -eq 1 ]]
  8503. + __mod_info[$id/pkg_info]=1
  8504. + local pkg_origin=binary
  8505. + local pkg_date=
  8506. + local pkg_repo_date=
  8507. + local pkg_repo_commit=
  8508. + local ret=1
  8509. + case "$type" in
  8510. + ret=
  8511. + [[ -n '' ]]
  8512. + [[ -z '' ]]
  8513. + ret=2
  8514. + __mod_info[$id/has_newer]=2
  8515. + return 2
  8516. + [[ 2 -eq 0 ]]
  8517. + [[ 2 == 2 ]]
  8518. + do_update=1
  8519. + [[ 0 -eq 3 ]]
  8520. + [[ 1 -eq 1 ]]
  8521. + printMsgs console 'Update is available - updating ...'
  8522. + local type=console
  8523. + shift
  8524. + [[ 0 == \1 ]]
  8525. + for msg in "$@"
  8526. + [[ console == \d\i\a\l\o\g ]]
  8527. + [[ console == \c\o\n\s\o\l\e ]]
  8528. + echo -e 'Update is available - updating ...'
  8529. Update is available - updating ...
  8530. + [[ console == \h\e\a\d\i\n\g ]]
  8531. + return 0
  8532. + [[ 1 -eq 1 ]]
  8533. + [[ binary != \s\o\u\r\c\e ]]
  8534. + [[ 1 -eq 1 ]]
  8535. + rp_callModule splashscreen _binary_
  8536. + local md_id=splashscreen
  8537. + local mode=_binary_
  8538. + shift 2
  8539. + rp_hasModule splashscreen
  8540. + local id=splashscreen
  8541. + [[ -n 226 ]]
  8542. + return 0
  8543. + rp_isEnabled splashscreen
  8544. + local id=splashscreen
  8545. + [[ 1 -eq 0 ]]
  8546. + return 0
  8547. + case "$mode" in
  8548. + for mode in depends install_bin configure
  8549. + rp_callModule splashscreen depends
  8550. + local md_id=splashscreen
  8551. + local mode=depends
  8552. + shift 2
  8553. + rp_hasModule splashscreen
  8554. + local id=splashscreen
  8555. + [[ -n 226 ]]
  8556. + return 0
  8557. + rp_isEnabled splashscreen
  8558. + local id=splashscreen
  8559. + [[ 1 -eq 0 ]]
  8560. + return 0
  8561. + case "$mode" in
  8562. ++ rp_moduleVars splashscreen
  8563. ++ local id=splashscreen
  8564. ++ local code
  8565. ++ read -d '' -r code
  8566. +++ rp_getInstallPath splashscreen
  8567. +++ local id=splashscreen
  8568. +++ echo /opt/retropie/supplementary/splashscreen
  8569. ++ echo 'local md_desc="Configure Splashscreen"
  8570. local md_help=""
  8571. local md_type="supplementary"
  8572. local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
  8573. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
  8574.  
  8575. local md_repo_type="git"
  8576. local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
  8577. local md_repo_branch="master"
  8578. local md_repo_commit=""
  8579.  
  8580. local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
  8581. local md_inst="/opt/retropie/supplementary/splashscreen"
  8582. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  8583. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
  8584. + eval 'local md_desc="Configure Splashscreen"
  8585. local md_help=""
  8586. local md_type="supplementary"
  8587. local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
  8588. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
  8589.  
  8590. local md_repo_type="git"
  8591. local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
  8592. local md_repo_branch="master"
  8593. local md_repo_commit=""
  8594.  
  8595. local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
  8596. local md_inst="/opt/retropie/supplementary/splashscreen"
  8597. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  8598. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
  8599. ++ local 'md_desc=Configure Splashscreen'
  8600. ++ local md_help=
  8601. ++ local md_type=supplementary
  8602. ++ local 'md_flags=noinstclean !all rpi !osmc !xbian !aarch64'
  8603. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh
  8604. ++ local md_repo_type=git
  8605. ++ local md_repo_url=https://github.com/RetroPie/retropie-splashscreens.git
  8606. ++ local md_repo_branch=master
  8607. ++ local md_repo_commit=
  8608. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/splashscreen
  8609. ++ local md_inst=/opt/retropie/supplementary/splashscreen
  8610. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen
  8611. + local md_mode=install
  8612. + local md_conf_root
  8613. + [[ supplementary == \p\o\r\t\s ]]
  8614. + setConfigRoot ''
  8615. + local dir=
  8616. + md_conf_root=/opt/retropie/configs
  8617. + [[ -n '' ]]
  8618. + mkUserDir /opt/retropie/configs
  8619. + mkdir -p /opt/retropie/configs
  8620. + chown pi:pi /opt/retropie/configs
  8621. + case "$mode" in
  8622. + function=depends_splashscreen
  8623. + fnExists depends_splashscreen
  8624. + declare -f depends_splashscreen
  8625. + return 0
  8626. + md_ret_require=()
  8627. + local md_ret_require
  8628. + md_ret_files=()
  8629. + local md_ret_files
  8630. + md_ret_errors=()
  8631. + local md_ret_errors
  8632. + md_ret_info=()
  8633. + local md_ret_info
  8634. + local action
  8635. + local pushed=1
  8636. + case "$mode" in
  8637. + [[ '' == \r\e\m\o\v\e ]]
  8638. + action=Installing
  8639. + action+=' dependencies for'
  8640. + [[ -n Installing dependencies for ]]
  8641. + printHeading 'Installing dependencies for '\''splashscreen'\'' : Configure Splashscreen'
  8642. + printMsgs heading 'Installing dependencies for '\''splashscreen'\'' : Configure Splashscreen'
  8643. + local type=heading
  8644. + shift
  8645. + [[ 0 == \1 ]]
  8646. + for msg in "$@"
  8647. + [[ heading == \d\i\a\l\o\g ]]
  8648. + [[ heading == \c\o\n\s\o\l\e ]]
  8649. + [[ heading == \h\e\a\d\i\n\g ]]
  8650. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling dependencies for '\''splashscreen'\'' : Configure Splashscreen\n= = = = = = = = = = = = = = = = = = = = =\n'
  8651.  
  8652. = = = = = = = = = = = = = = = = = = = = =
  8653. Installing dependencies for 'splashscreen' : Configure Splashscreen
  8654. = = = = = = = = = = = = = = = = = = = = =
  8655.  
  8656. + return 0
  8657. + case "$mode" in
  8658. + depends_splashscreen
  8659. + params=(insserv)
  8660. + local params
  8661. + isPlatform 32bit
  8662. + local flag=32bit
  8663. + hasFlag 'rpi3 32bit arm armv8 neon rpi gles videocore dispmanx' 32bit
  8664. + local 'string=rpi3 32bit arm armv8 neon rpi gles videocore dispmanx'
  8665. + local flag=32bit
  8666. + [[ -z rpi3 32bit arm armv8 neon rpi gles videocore dispmanx ]]
  8667. + [[ -z 32bit ]]
  8668. + [[ rpi3 32bit arm armv8 neon rpi gles videocore dispmanx =~ (^| )32bit($| ) ]]
  8669. + return 0
  8670. + return 0
  8671. + params+=(omxplayer)
  8672. + getDepends insserv omxplayer
  8673. + own_pkgs=()
  8674. + local own_pkgs
  8675. + apt_pkgs=()
  8676. + local apt_pkgs
  8677. + all_pkgs=()
  8678. + local all_pkgs
  8679. + local pkg
  8680. + for pkg in "$@"
  8681. + pkg=($(_mapPackage "$pkg"))
  8682. ++ _mapPackage insserv
  8683. ++ local pkg=insserv
  8684. ++ case "$pkg" in
  8685. ++ echo insserv
  8686. + [[ insserv == \R\P ]]
  8687. + [[ install == \r\e\m\o\v\e ]]
  8688. + hasPackage insserv
  8689. + local pkg=insserv
  8690. + local req_ver=
  8691. + local comp=
  8692. + [[ -z '' ]]
  8693. + comp=ge
  8694. + local ver
  8695. + local status
  8696. ++ dpkg-query -W '--showformat=${Status} ${Version}' insserv
  8697. + local 'out=install ok installed 1.18.0-2'
  8698. + [[ 0 -eq 0 ]]
  8699. + ver=1.18.0-2
  8700. + status='install ok installed'
  8701. + local installed=0
  8702. + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
  8703. + installed=1
  8704. + [[ -z '' ]]
  8705. + [[ 1 -eq 1 ]]
  8706. + return 0
  8707. + for pkg in "$@"
  8708. + pkg=($(_mapPackage "$pkg"))
  8709. ++ _mapPackage omxplayer
  8710. ++ local pkg=omxplayer
  8711. ++ case "$pkg" in
  8712. ++ echo omxplayer
  8713. + [[ omxplayer == \R\P ]]
  8714. + [[ install == \r\e\m\o\v\e ]]
  8715. + hasPackage omxplayer
  8716. + local pkg=omxplayer
  8717. + local req_ver=
  8718. + local comp=
  8719. + [[ -z '' ]]
  8720. + comp=ge
  8721. + local ver
  8722. + local status
  8723. ++ dpkg-query -W '--showformat=${Status} ${Version}' omxplayer
  8724. + local 'out=install ok installed 20190723+gitf543a0d-1'
  8725. + [[ 0 -eq 0 ]]
  8726. + ver=20190723+gitf543a0d-1
  8727. + status='install ok installed'
  8728. + local installed=0
  8729. + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
  8730. + installed=1
  8731. + [[ -z '' ]]
  8732. + [[ 1 -eq 1 ]]
  8733. + return 0
  8734. + [[ 0 -eq 0 ]]
  8735. + [[ 0 -eq 0 ]]
  8736. + return
  8737. + [[ -n '' ]]
  8738. + [[ 0 -eq 0 ]]
  8739. + [[ -n '' ]]
  8740. + [[ -d /home/pi/RetroPie-Setup/tmp/build/splashscreen ]]
  8741. + local ret=0
  8742. + [[ 0 -gt 0 ]]
  8743. + [[ depends == \i\n\s\t\a\l\l\_\b\i\n ]]
  8744. + [[ depends == \i\n\s\t\a\l\l ]]
  8745. + fnExists install_splashscreen
  8746. + declare -f install_splashscreen
  8747. + return 1
  8748. + [[ depends == \b\u\i\l\d ]]
  8749. + [[ 0 -gt 0 ]]
  8750. + [[ 1 -eq 0 ]]
  8751. + return 0
  8752. + for mode in depends install_bin configure
  8753. + rp_callModule splashscreen install_bin
  8754. + local md_id=splashscreen
  8755. + local mode=install_bin
  8756. + shift 2
  8757. + rp_hasModule splashscreen
  8758. + local id=splashscreen
  8759. + [[ -n 226 ]]
  8760. + return 0
  8761. + rp_isEnabled splashscreen
  8762. + local id=splashscreen
  8763. + [[ 1 -eq 0 ]]
  8764. + return 0
  8765. + case "$mode" in
  8766. ++ rp_moduleVars splashscreen
  8767. ++ local id=splashscreen
  8768. ++ local code
  8769. ++ read -d '' -r code
  8770. +++ rp_getInstallPath splashscreen
  8771. +++ local id=splashscreen
  8772. +++ echo /opt/retropie/supplementary/splashscreen
  8773. ++ echo 'local md_desc="Configure Splashscreen"
  8774. local md_help=""
  8775. local md_type="supplementary"
  8776. local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
  8777. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
  8778.  
  8779. local md_repo_type="git"
  8780. local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
  8781. local md_repo_branch="master"
  8782. local md_repo_commit=""
  8783.  
  8784. local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
  8785. local md_inst="/opt/retropie/supplementary/splashscreen"
  8786. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  8787. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
  8788. + eval 'local md_desc="Configure Splashscreen"
  8789. local md_help=""
  8790. local md_type="supplementary"
  8791. local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
  8792. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
  8793.  
  8794. local md_repo_type="git"
  8795. local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
  8796. local md_repo_branch="master"
  8797. local md_repo_commit=""
  8798.  
  8799. local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
  8800. local md_inst="/opt/retropie/supplementary/splashscreen"
  8801. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  8802. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
  8803. ++ local 'md_desc=Configure Splashscreen'
  8804. ++ local md_help=
  8805. ++ local md_type=supplementary
  8806. ++ local 'md_flags=noinstclean !all rpi !osmc !xbian !aarch64'
  8807. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh
  8808. ++ local md_repo_type=git
  8809. ++ local md_repo_url=https://github.com/RetroPie/retropie-splashscreens.git
  8810. ++ local md_repo_branch=master
  8811. ++ local md_repo_commit=
  8812. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/splashscreen
  8813. ++ local md_inst=/opt/retropie/supplementary/splashscreen
  8814. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen
  8815. + local md_mode=install
  8816. + local md_conf_root
  8817. + [[ supplementary == \p\o\r\t\s ]]
  8818. + setConfigRoot ''
  8819. + local dir=
  8820. + md_conf_root=/opt/retropie/configs
  8821. + [[ -n '' ]]
  8822. + mkUserDir /opt/retropie/configs
  8823. + mkdir -p /opt/retropie/configs
  8824. + chown pi:pi /opt/retropie/configs
  8825. + case "$mode" in
  8826. + function=install_bin_splashscreen
  8827. + fnExists install_bin_splashscreen
  8828. + declare -f install_bin_splashscreen
  8829. + return 0
  8830. + md_ret_require=()
  8831. + local md_ret_require
  8832. + md_ret_files=()
  8833. + local md_ret_files
  8834. + md_ret_errors=()
  8835. + local md_ret_errors
  8836. + md_ret_info=()
  8837. + local md_ret_info
  8838. + local action
  8839. + local pushed=1
  8840. + case "$mode" in
  8841. + action='Installing (binary)'
  8842. + [[ -n Installing (binary) ]]
  8843. + printHeading 'Installing (binary) '\''splashscreen'\'' : Configure Splashscreen'
  8844. + printMsgs heading 'Installing (binary) '\''splashscreen'\'' : Configure Splashscreen'
  8845. + local type=heading
  8846. + shift
  8847. + [[ 0 == \1 ]]
  8848. + for msg in "$@"
  8849. + [[ heading == \d\i\a\l\o\g ]]
  8850. + [[ heading == \c\o\n\s\o\l\e ]]
  8851. + [[ heading == \h\e\a\d\i\n\g ]]
  8852. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling (binary) '\''splashscreen'\'' : Configure Splashscreen\n= = = = = = = = = = = = = = = = = = = = =\n'
  8853.  
  8854. = = = = = = = = = = = = = = = = = = = = =
  8855. Installing (binary) 'splashscreen' : Configure Splashscreen
  8856. = = = = = = = = = = = = = = = = = = = = =
  8857.  
  8858. + return 0
  8859. + case "$mode" in
  8860. + fnExists install_bin_splashscreen
  8861. + declare -f install_bin_splashscreen
  8862. + return 0
  8863. + mkdir -p /opt/retropie/supplementary/splashscreen
  8864. + install_bin_splashscreen
  8865. + cat
  8866. + rp_installModule omxiv _autoupdate_
  8867. + local id=omxiv
  8868. + local mode=_autoupdate_
  8869. + [[ -z _autoupdate_ ]]
  8870. + rp_callModule omxiv _autoupdate_
  8871. + local md_id=omxiv
  8872. + local mode=_autoupdate_
  8873. + shift 2
  8874. + rp_hasModule omxiv
  8875. + local id=omxiv
  8876. + [[ -n 209 ]]
  8877. + return 0
  8878. + rp_isEnabled omxiv
  8879. + local id=omxiv
  8880. + [[ 1 -eq 0 ]]
  8881. + return 0
  8882. + case "$mode" in
  8883. + rp_isInstalled omxiv
  8884. + local id=omxiv
  8885. + local md_inst=/opt/retropie/supplementary/omxiv
  8886. + [[ -d /opt/retropie/supplementary/omxiv ]]
  8887. + return 0
  8888. + rp_callModule omxiv _update_
  8889. + local md_id=omxiv
  8890. + local mode=_update_
  8891. + shift 2
  8892. + rp_hasModule omxiv
  8893. + local id=omxiv
  8894. + [[ -n 209 ]]
  8895. + return 0
  8896. + rp_isEnabled omxiv
  8897. + local id=omxiv
  8898. + [[ 1 -eq 0 ]]
  8899. + return 0
  8900. + case "$mode" in
  8901. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  8902. + rp_isInstalled omxiv
  8903. + local id=omxiv
  8904. + local md_inst=/opt/retropie/supplementary/omxiv
  8905. + [[ -d /opt/retropie/supplementary/omxiv ]]
  8906. + return 0
  8907. + rp_loadPackageInfo omxiv pkg_origin
  8908. + local id=omxiv
  8909. + [[ '' -eq 1 ]]
  8910. + local keys
  8911. + local cache=1
  8912. + [[ -z pkg_origin ]]
  8913. + shift
  8914. + keys=("$@")
  8915. + cache=0
  8916. + local load=0
  8917. ++ rp_getInstallPath omxiv
  8918. ++ local id=omxiv
  8919. ++ echo /opt/retropie/supplementary/omxiv
  8920. + local pkg_file=/opt/retropie/supplementary/omxiv/retropie.pkg
  8921. + [[ -f /opt/retropie/supplementary/omxiv/retropie.pkg ]]
  8922. + load=1
  8923. + local key
  8924. + local data
  8925. + for key in "${keys[@]}"
  8926. + data=
  8927. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  8928. + data=unknown
  8929. + __mod_info[$id/$key]=unknown
  8930. + [[ 1 -eq 1 ]]
  8931. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/omxiv/retropie.pkg
  8932. + data=binary
  8933. + [[ -n binary ]]
  8934. + __mod_info[$id/$key]=binary
  8935. + [[ 0 -eq 1 ]]
  8936. + local pkg_origin=binary
  8937. + local has_binary=0
  8938. + local has_net=0
  8939. ++ getIPAddress
  8940. ++ local dev=
  8941. ++ local ip_route
  8942. +++ ip -4 route get 8.8.8.8
  8943. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  8944. cache '
  8945. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  8946. cache ]]
  8947. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  8948. cache ]]
  8949. ++ grep -oP 'src \K[^\s]+'
  8950. + local ip=192.168.2.5
  8951. + [[ -n 192.168.2.5 ]]
  8952. + has_net=1
  8953. + hasFlag '!all rpi' nonet
  8954. + local 'string=!all rpi'
  8955. + local flag=nonet
  8956. + [[ -z !all rpi ]]
  8957. + [[ -z nonet ]]
  8958. + [[ !all rpi =~ (^| )nonet($| ) ]]
  8959. + return 1
  8960. + [[ 1 -eq 1 ]]
  8961. + rp_hasBinary omxiv
  8962. + local id=omxiv
  8963. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  8964. ++ rp_getBinaryUrl omxiv
  8965. ++ local id=omxiv
  8966. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
  8967. ++ fnExists install_bin_omxiv
  8968. ++ declare -f install_bin_omxiv
  8969. ++ return 1
  8970. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
  8971. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
  8972. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz == \n\o\t\e\s\t ]]
  8973. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz ]]
  8974. + [[ -n '' ]]
  8975. + local ret=1
  8976. + rp_hasBinaries
  8977. + [[ 1 -eq 1 ]]
  8978. + return 0
  8979. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
  8980. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
  8981. + local ret
  8982. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/omxiv.tar.gz
  8983. + ret=28
  8984. + [[ 28 -eq 0 ]]
  8985. + [[ 28 -eq 22 ]]
  8986. + return 2
  8987. + ret=2
  8988. + [[ 2 -ne 2 ]]
  8989. + return 2
  8990. + local ret=2
  8991. + [[ 2 -eq 0 ]]
  8992. + [[ 2 -eq 2 ]]
  8993. + has_net=0
  8994. + [[ 0 -eq 0 ]]
  8995. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  8996. + return 1
  8997. + return 1
  8998. + return 1
  8999. + gitPullOrClone /opt/retropie/supplementary/splashscreen
  9000. + local dir=/opt/retropie/supplementary/splashscreen
  9001. + [[ -z /opt/retropie/supplementary/splashscreen ]]
  9002. + local repo=
  9003. + local branch=
  9004. + local commit=
  9005. + local depth=
  9006. + [[ -z '' ]]
  9007. + [[ -n https://github.com/RetroPie/retropie-splashscreens.git ]]
  9008. ++ rp_resolveRepoParam https://github.com/RetroPie/retropie-splashscreens.git
  9009. ++ local param=https://github.com/RetroPie/retropie-splashscreens.git
  9010. ++ [[ https://github.com/RetroPie/retropie-splashscreens.git == :* ]]
  9011. ++ echo https://github.com/RetroPie/retropie-splashscreens.git
  9012. + repo=https://github.com/RetroPie/retropie-splashscreens.git
  9013. ++ rp_resolveRepoParam master
  9014. ++ local param=master
  9015. ++ [[ master == :* ]]
  9016. ++ echo master
  9017. + branch=master
  9018. ++ rp_resolveRepoParam ''
  9019. ++ local param=
  9020. ++ [[ '' == :* ]]
  9021. ++ echo ''
  9022. + commit=
  9023. + [[ -z https://github.com/RetroPie/retropie-splashscreens.git ]]
  9024. + [[ -z master ]]
  9025. + [[ -z '' ]]
  9026. + [[ '' -ne 1 ]]
  9027. + [[ -z '' ]]
  9028. + depth=1
  9029. + [[ -z /opt/retropie/supplementary/splashscreen ]]
  9030. + [[ -d /opt/retropie/supplementary/splashscreen/.git ]]
  9031. + pushd /opt/retropie/supplementary/splashscreen
  9032. + runCmd git checkout master
  9033. + local ret
  9034. + git checkout master
  9035. Already on 'master'
  9036. Your branch is up to date with 'origin/master'.
  9037. + ret=0
  9038. + [[ 0 -ne 0 ]]
  9039. + return 0
  9040. + runCmd git pull --ff-only
  9041. + local ret
  9042. + git pull --ff-only
  9043. Already up to date.
  9044. + ret=0
  9045. + [[ 0 -ne 0 ]]
  9046. + return 0
  9047. + runCmd git submodule update --init --recursive
  9048. + local ret
  9049. + git submodule update --init --recursive
  9050. + ret=0
  9051. + [[ 0 -ne 0 ]]
  9052. + return 0
  9053. + popd
  9054. + [[ -n '' ]]
  9055. ++ runCmd git -C /opt/retropie/supplementary/splashscreen rev-parse --abbrev-ref HEAD
  9056. ++ local ret
  9057. ++ git -C /opt/retropie/supplementary/splashscreen rev-parse --abbrev-ref HEAD
  9058. ++ ret=0
  9059. ++ [[ 0 -ne 0 ]]
  9060. ++ return 0
  9061. + branch=master
  9062. ++ runCmd git -C /opt/retropie/supplementary/splashscreen rev-parse HEAD
  9063. ++ local ret
  9064. ++ git -C /opt/retropie/supplementary/splashscreen rev-parse HEAD
  9065. ++ ret=0
  9066. ++ [[ 0 -ne 0 ]]
  9067. ++ return 0
  9068. + commit=b8645a8197d977a0492fc56341dc7248f7d7bb10
  9069. + printMsgs console 'HEAD is now in branch '\''master'\'' at commit '\''b8645a8197d977a0492fc56341dc7248f7d7bb10'\'''
  9070. + local type=console
  9071. + shift
  9072. + [[ 0 == \1 ]]
  9073. + for msg in "$@"
  9074. + [[ console == \d\i\a\l\o\g ]]
  9075. + [[ console == \c\o\n\s\o\l\e ]]
  9076. + echo -e 'HEAD is now in branch '\''master'\'' at commit '\''b8645a8197d977a0492fc56341dc7248f7d7bb10'\'''
  9077. HEAD is now in branch 'master' at commit 'b8645a8197d977a0492fc56341dc7248f7d7bb10'
  9078. + [[ console == \h\e\a\d\i\n\g ]]
  9079. + return 0
  9080. + cp /home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen/asplashscreen.sh /opt/retropie/supplementary/splashscreen
  9081. + iniConfig = '"' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9082. + __ini_cfg_delim==
  9083. + __ini_cfg_quote='"'
  9084. + __ini_cfg_file=/opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9085. + iniSet ROOTDIR /opt/retropie
  9086. + iniProcess set ROOTDIR /opt/retropie ''
  9087. + local cmd=set
  9088. + local key=ROOTDIR
  9089. + local value=/opt/retropie
  9090. + local file=
  9091. + [[ -z '' ]]
  9092. + file=/opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9093. + local delim==
  9094. + local 'quote="'
  9095. + [[ -z /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
  9096. + [[ -z ROOTDIR ]]
  9097. + local delim_strip==
  9098. + [[ -z = ]]
  9099. + local 'match_re=^[[:space:]#]*ROOTDIR[[:space:]]*=.*$'
  9100. + local match
  9101. + [[ -f /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
  9102. ++ egrep -i '^[[:space:]#]*ROOTDIR[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9103. ++ tail -1
  9104. + match='ROOTDIR=""'
  9105. + [[ set == \d\e\l ]]
  9106. + [[ set == \u\n\s\e\t ]]
  9107. + local 'replace=ROOTDIR="/opt/retropie"'
  9108. + [[ -z ROOTDIR="" ]]
  9109. ++ sedQuote 'ROOTDIR=""'
  9110. ++ local 'string=ROOTDIR=""'
  9111. ++ string='ROOTDIR=""'
  9112. ++ string='ROOTDIR=""'
  9113. ++ string='ROOTDIR=""'
  9114. ++ string='ROOTDIR=""'
  9115. ++ echo 'ROOTDIR=""'
  9116. ++ sedQuote 'ROOTDIR="/opt/retropie"'
  9117. ++ local 'string=ROOTDIR="/opt/retropie"'
  9118. ++ string='ROOTDIR="/opt/retropie"'
  9119. ++ string='ROOTDIR="/opt/retropie"'
  9120. ++ string='ROOTDIR="/opt/retropie"'
  9121. ++ string='ROOTDIR="/opt/retropie"'
  9122. ++ echo 'ROOTDIR="/opt/retropie"'
  9123. + sed -i --follow-symlinks 's|ROOTDIR=""|ROOTDIR="/opt/retropie"|g' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9124. + [[ /opt/retropie/supplementary/splashscreen/asplashscreen.sh =~ retroarch\.cfg$ ]]
  9125. + return 0
  9126. + iniSet DATADIR /home/pi/RetroPie
  9127. + iniProcess set DATADIR /home/pi/RetroPie ''
  9128. + local cmd=set
  9129. + local key=DATADIR
  9130. + local value=/home/pi/RetroPie
  9131. + local file=
  9132. + [[ -z '' ]]
  9133. + file=/opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9134. + local delim==
  9135. + local 'quote="'
  9136. + [[ -z /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
  9137. + [[ -z DATADIR ]]
  9138. + local delim_strip==
  9139. + [[ -z = ]]
  9140. + local 'match_re=^[[:space:]#]*DATADIR[[:space:]]*=.*$'
  9141. + local match
  9142. + [[ -f /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
  9143. ++ egrep -i '^[[:space:]#]*DATADIR[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9144. ++ tail -1
  9145. + match='DATADIR=""'
  9146. + [[ set == \d\e\l ]]
  9147. + [[ set == \u\n\s\e\t ]]
  9148. + local 'replace=DATADIR="/home/pi/RetroPie"'
  9149. + [[ -z DATADIR="" ]]
  9150. ++ sedQuote 'DATADIR=""'
  9151. ++ local 'string=DATADIR=""'
  9152. ++ string='DATADIR=""'
  9153. ++ string='DATADIR=""'
  9154. ++ string='DATADIR=""'
  9155. ++ string='DATADIR=""'
  9156. ++ echo 'DATADIR=""'
  9157. ++ sedQuote 'DATADIR="/home/pi/RetroPie"'
  9158. ++ local 'string=DATADIR="/home/pi/RetroPie"'
  9159. ++ string='DATADIR="/home/pi/RetroPie"'
  9160. ++ string='DATADIR="/home/pi/RetroPie"'
  9161. ++ string='DATADIR="/home/pi/RetroPie"'
  9162. ++ string='DATADIR="/home/pi/RetroPie"'
  9163. ++ echo 'DATADIR="/home/pi/RetroPie"'
  9164. + sed -i --follow-symlinks 's|DATADIR=""|DATADIR="/home/pi/RetroPie"|g' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9165. + [[ /opt/retropie/supplementary/splashscreen/asplashscreen.sh =~ retroarch\.cfg$ ]]
  9166. + return 0
  9167. ++ _image_exts_splashscreen
  9168. ++ echo '\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp'
  9169. + iniSet REGEX_IMAGE '\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp'
  9170. + iniProcess set REGEX_IMAGE '\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp' ''
  9171. + local cmd=set
  9172. + local key=REGEX_IMAGE
  9173. + local 'value=\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp'
  9174. + local file=
  9175. + [[ -z '' ]]
  9176. + file=/opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9177. + local delim==
  9178. + local 'quote="'
  9179. + [[ -z /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
  9180. + [[ -z REGEX_IMAGE ]]
  9181. + local delim_strip==
  9182. + [[ -z = ]]
  9183. + local 'match_re=^[[:space:]#]*REGEX_IMAGE[[:space:]]*=.*$'
  9184. + local match
  9185. + [[ -f /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
  9186. ++ egrep -i '^[[:space:]#]*REGEX_IMAGE[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9187. ++ tail -1
  9188. + match='REGEX_IMAGE=""'
  9189. + [[ set == \d\e\l ]]
  9190. + [[ set == \u\n\s\e\t ]]
  9191. + local 'replace=REGEX_IMAGE="\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp"'
  9192. + [[ -z REGEX_IMAGE="" ]]
  9193. ++ sedQuote 'REGEX_IMAGE=""'
  9194. ++ local 'string=REGEX_IMAGE=""'
  9195. ++ string='REGEX_IMAGE=""'
  9196. ++ string='REGEX_IMAGE=""'
  9197. ++ string='REGEX_IMAGE=""'
  9198. ++ string='REGEX_IMAGE=""'
  9199. ++ echo 'REGEX_IMAGE=""'
  9200. ++ sedQuote 'REGEX_IMAGE="\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp"'
  9201. ++ local 'string=REGEX_IMAGE="\.bmp\|\.jpg\|\.jpeg\|\.gif\|\.png\|\.ppm\|\.tiff\|\.webp"'
  9202. ++ string='REGEX_IMAGE="\\.bmp\\|\\.jpg\\|\\.jpeg\\|\\.gif\\|\\.png\\|\\.ppm\\|\\.tiff\\|\\.webp"'
  9203. ++ string='REGEX_IMAGE="\\.bmp\\\|\\.jpg\\\|\\.jpeg\\\|\\.gif\\\|\\.png\\\|\\.ppm\\\|\\.tiff\\\|\\.webp"'
  9204. ++ string='REGEX_IMAGE="\\.bmp\\\|\\.jpg\\\|\\.jpeg\\\|\\.gif\\\|\\.png\\\|\\.ppm\\\|\\.tiff\\\|\\.webp"'
  9205. ++ string='REGEX_IMAGE="\\.bmp\\\|\\.jpg\\\|\\.jpeg\\\|\\.gif\\\|\\.png\\\|\\.ppm\\\|\\.tiff\\\|\\.webp"'
  9206. ++ echo 'REGEX_IMAGE="\\.bmp\\\|\\.jpg\\\|\\.jpeg\\\|\\.gif\\\|\\.png\\\|\\.ppm\\\|\\.tiff\\\|\\.webp"'
  9207. + sed -i --follow-symlinks 's|REGEX_IMAGE=""|REGEX_IMAGE="\\.bmp\\\|\\.jpg\\\|\\.jpeg\\\|\\.gif\\\|\\.png\\\|\\.ppm\\\|\\.tiff\\\|\\.webp"|g' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9208. + [[ /opt/retropie/supplementary/splashscreen/asplashscreen.sh =~ retroarch\.cfg$ ]]
  9209. + return 0
  9210. ++ _video_exts_splashscreen
  9211. ++ echo '\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac'
  9212. + iniSet REGEX_VIDEO '\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac'
  9213. + iniProcess set REGEX_VIDEO '\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac' ''
  9214. + local cmd=set
  9215. + local key=REGEX_VIDEO
  9216. + local 'value=\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac'
  9217. + local file=
  9218. + [[ -z '' ]]
  9219. + file=/opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9220. + local delim==
  9221. + local 'quote="'
  9222. + [[ -z /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
  9223. + [[ -z REGEX_VIDEO ]]
  9224. + local delim_strip==
  9225. + [[ -z = ]]
  9226. + local 'match_re=^[[:space:]#]*REGEX_VIDEO[[:space:]]*=.*$'
  9227. + local match
  9228. + [[ -f /opt/retropie/supplementary/splashscreen/asplashscreen.sh ]]
  9229. ++ egrep -i '^[[:space:]#]*REGEX_VIDEO[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/asplashscreen.sh
  9230. ++ tail -1
  9231. + match='REGEX_VIDEO=""'
  9232. + [[ set == \d\e\l ]]
  9233. + [[ set == \u\n\s\e\t ]]
  9234. + local 'replace=REGEX_VIDEO="\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac"'
  9235. + [[ -z REGEX_VIDEO="" ]]
  9236. ++ sedQuote 'REGEX_VIDEO=""'
  9237. ++ local 'string=REGEX_VIDEO=""'
  9238. ++ string='REGEX_VIDEO=""'
  9239. ++ string='REGEX_VIDEO=""'
  9240. ++ string='REGEX_VIDEO=""'
  9241. ++ string='REGEX_VIDEO=""'
  9242. ++ echo 'REGEX_VIDEO=""'
  9243. ++ sedQuote 'REGEX_VIDEO="\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac"'
  9244. ++ local 'string=REGEX_VIDEO="\.avi\|\.mov\|\.mp4\|\.mkv\|\.3gp\|\.mpg\|\.mp3\|\.wav\|\.m4a\|\.aac\|\.ogg\|\.flac"'
  9245. ++ string='REGEX_VIDEO="\\.avi\\|\\.mov\\|\\.mp4\\|\\.mkv\\|\\.3gp\\|\\.mpg\\|\\.mp3\\|\\.wav\\|\\.m4a\\|\\.aac\\|\\.ogg\\|\\.flac"'
  9246. ++ string='REGEX_VIDEO="\\.avi\\\|\\.mov\\\|\\.mp4\\\|\\.mkv\\\|\\.3gp\\\|\\.mpg\\\|\\.mp3\\\|\\.wav\\\|\\.m4a\\\|\\.aac\\\|\\.ogg\\\|\\.flac"'
  9247. ++ string='REGEX_VIDEO="\\.avi\\\|\\.mov\\\|\\.mp4\\\|\\.mkv\\\|\\.3gp\\\|\\.mpg\\\|\\.mp3\\\|\\.wav\\\|\\.m4a\\\|\\.aac\\\|\\.ogg\\\|\\.flac"'
  9248. ++ string='REGEX_VIDEO="\\.avi\\\|\\.mov\\\|\\.mp4\\\|\\.mkv\\\|\\.3gp\\\|\\.mpg\\\|\\.mp3\\\|\\.wav\\\|\\.m4a\\\|\\.aac\\\|\\.ogg\\\|\\.flac"'
  9249. ++ echo 'REGEX_VIDEO="\\.avi\\\|\\.mov\\\|\\.mp4\\\|\\.mkv\\\|\\.3gp\\\|\\.mpg\\\|\\.mp3\\\|\\.wav\\\|\\.m4a\\\|\\.aac\\\|\\.ogg\\\|\\.flac"'
  9250. + 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
  9251. + [[ /opt/retropie/supplementary/splashscreen/asplashscreen.sh =~ retroarch\.cfg$ ]]
  9252. + return 0
  9253. + [[ ! -f /opt/retropie/configs/all/splashscreen.cfg ]]
  9254. + chown pi:pi /opt/retropie/configs/all/splashscreen.cfg
  9255. + mkUserDir /home/pi/RetroPie/splashscreens
  9256. + mkdir -p /home/pi/RetroPie/splashscreens
  9257. + chown pi:pi /home/pi/RetroPie/splashscreens
  9258. + echo 'Place your own splashscreens in here.'
  9259. + chown pi:pi /home/pi/RetroPie/splashscreens/README.txt
  9260. + [[ -n '' ]]
  9261. + [[ 0 -eq 0 ]]
  9262. + [[ -n '' ]]
  9263. + [[ -d /home/pi/RetroPie-Setup/tmp/build/splashscreen ]]
  9264. + local ret=0
  9265. + [[ 0 -gt 0 ]]
  9266. + [[ install_bin == \i\n\s\t\a\l\l\_\b\i\n ]]
  9267. + rp_setPackageInfo splashscreen binary
  9268. + local id=splashscreen
  9269. ++ rp_getInstallPath splashscreen
  9270. ++ local id=splashscreen
  9271. ++ echo /opt/retropie/supplementary/splashscreen
  9272. + local install_path=/opt/retropie/supplementary/splashscreen
  9273. + [[ ! -d /opt/retropie/supplementary/splashscreen ]]
  9274. + local pkg=/opt/retropie/supplementary/splashscreen/retropie.pkg
  9275. + local origin=binary
  9276. + rp_clearCachedInfo splashscreen
  9277. + local id=splashscreen
  9278. + __mod_info[$id/pkg_info]=0
  9279. + __mod_info[$id/has_binary]=
  9280. + __mod_info[$id/has_newer]=
  9281. + iniConfig = '"' /opt/retropie/supplementary/splashscreen/retropie.pkg
  9282. + __ini_cfg_delim==
  9283. + __ini_cfg_quote='"'
  9284. + __ini_cfg_file=/opt/retropie/supplementary/splashscreen/retropie.pkg
  9285. + iniSet pkg_origin binary
  9286. + iniProcess set pkg_origin binary ''
  9287. + local cmd=set
  9288. + local key=pkg_origin
  9289. + local value=binary
  9290. + local file=
  9291. + [[ -z '' ]]
  9292. + file=/opt/retropie/supplementary/splashscreen/retropie.pkg
  9293. + local delim==
  9294. + local 'quote="'
  9295. + [[ -z /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
  9296. + [[ -z pkg_origin ]]
  9297. + local delim_strip==
  9298. + [[ -z = ]]
  9299. + local 'match_re=^[[:space:]#]*pkg_origin[[:space:]]*=.*$'
  9300. + local match
  9301. + [[ -f /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
  9302. ++ egrep -i '^[[:space:]#]*pkg_origin[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/retropie.pkg
  9303. ++ tail -1
  9304. + match='pkg_origin="binary"'
  9305. + [[ set == \d\e\l ]]
  9306. + [[ set == \u\n\s\e\t ]]
  9307. + local 'replace=pkg_origin="binary"'
  9308. + [[ -z pkg_origin="binary" ]]
  9309. ++ sedQuote 'pkg_origin="binary"'
  9310. ++ local 'string=pkg_origin="binary"'
  9311. ++ string='pkg_origin="binary"'
  9312. ++ string='pkg_origin="binary"'
  9313. ++ string='pkg_origin="binary"'
  9314. ++ string='pkg_origin="binary"'
  9315. ++ echo 'pkg_origin="binary"'
  9316. ++ sedQuote 'pkg_origin="binary"'
  9317. ++ local 'string=pkg_origin="binary"'
  9318. ++ string='pkg_origin="binary"'
  9319. ++ string='pkg_origin="binary"'
  9320. ++ string='pkg_origin="binary"'
  9321. ++ string='pkg_origin="binary"'
  9322. ++ echo 'pkg_origin="binary"'
  9323. + sed -i --follow-symlinks 's|pkg_origin="binary"|pkg_origin="binary"|g' /opt/retropie/supplementary/splashscreen/retropie.pkg
  9324. + [[ /opt/retropie/supplementary/splashscreen/retropie.pkg =~ retroarch\.cfg$ ]]
  9325. + return 0
  9326. + local pkg_date
  9327. + local pkg_repo_type
  9328. + local pkg_repo_url
  9329. + local pkg_repo_branch
  9330. + local pkg_repo_commit
  9331. + local pkg_repo_date
  9332. + local pkg_repo_extra
  9333. + [[ binary == \b\i\n\a\r\y ]]
  9334. ++ rp_getBinaryDate splashscreen
  9335. ++ local id=splashscreen
  9336. +++ rp_getBinaryUrl splashscreen
  9337. +++ local id=splashscreen
  9338. +++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/splashscreen.tar.gz
  9339. +++ fnExists install_bin_splashscreen
  9340. +++ declare -f install_bin_splashscreen
  9341. +++ return 0
  9342. +++ fnExists __binary_url_splashscreen
  9343. +++ declare -f __binary_url_splashscreen
  9344. +++ return 1
  9345. +++ url=notest
  9346. +++ echo notest
  9347. ++ local url=notest
  9348. ++ [[ -z notest ]]
  9349. ++ [[ notest == \n\o\t\e\s\t ]]
  9350. ++ return 1
  9351. + pkg_date=
  9352. + iniSet pkg_date ''
  9353. + iniProcess set pkg_date '' ''
  9354. + local cmd=set
  9355. + local key=pkg_date
  9356. + local value=
  9357. + local file=
  9358. + [[ -z '' ]]
  9359. + file=/opt/retropie/supplementary/splashscreen/retropie.pkg
  9360. + local delim==
  9361. + local 'quote="'
  9362. + [[ -z /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
  9363. + [[ -z pkg_date ]]
  9364. + local delim_strip==
  9365. + [[ -z = ]]
  9366. + local 'match_re=^[[:space:]#]*pkg_date[[:space:]]*=.*$'
  9367. + local match
  9368. + [[ -f /opt/retropie/supplementary/splashscreen/retropie.pkg ]]
  9369. ++ egrep -i '^[[:space:]#]*pkg_date[[:space:]]*=.*$' /opt/retropie/supplementary/splashscreen/retropie.pkg
  9370. ++ tail -1
  9371. + match='pkg_date=""'
  9372. + [[ set == \d\e\l ]]
  9373. + [[ set == \u\n\s\e\t ]]
  9374. + local 'replace=pkg_date=""'
  9375. + [[ -z pkg_date="" ]]
  9376. ++ sedQuote 'pkg_date=""'
  9377. ++ local 'string=pkg_date=""'
  9378. ++ string='pkg_date=""'
  9379. ++ string='pkg_date=""'
  9380. ++ string='pkg_date=""'
  9381. ++ string='pkg_date=""'
  9382. ++ echo 'pkg_date=""'
  9383. ++ sedQuote 'pkg_date=""'
  9384. ++ local 'string=pkg_date=""'
  9385. ++ string='pkg_date=""'
  9386. ++ string='pkg_date=""'
  9387. ++ string='pkg_date=""'
  9388. ++ string='pkg_date=""'
  9389. ++ echo 'pkg_date=""'
  9390. + sed -i --follow-symlinks 's|pkg_date=""|pkg_date=""|g' /opt/retropie/supplementary/splashscreen/retropie.pkg
  9391. + [[ /opt/retropie/supplementary/splashscreen/retropie.pkg =~ retroarch\.cfg$ ]]
  9392. + return 0
  9393. + [[ install_bin == \i\n\s\t\a\l\l ]]
  9394. + fnExists install_splashscreen
  9395. + declare -f install_splashscreen
  9396. + return 1
  9397. + [[ install_bin == \b\u\i\l\d ]]
  9398. + [[ 0 -gt 0 ]]
  9399. + [[ 1 -eq 0 ]]
  9400. + return 0
  9401. + for mode in depends install_bin configure
  9402. + rp_callModule splashscreen configure
  9403. + local md_id=splashscreen
  9404. + local mode=configure
  9405. + shift 2
  9406. + rp_hasModule splashscreen
  9407. + local id=splashscreen
  9408. + [[ -n 226 ]]
  9409. + return 0
  9410. + rp_isEnabled splashscreen
  9411. + local id=splashscreen
  9412. + [[ 1 -eq 0 ]]
  9413. + return 0
  9414. + case "$mode" in
  9415. ++ rp_moduleVars splashscreen
  9416. ++ local id=splashscreen
  9417. ++ local code
  9418. ++ read -d '' -r code
  9419. +++ rp_getInstallPath splashscreen
  9420. +++ local id=splashscreen
  9421. +++ echo /opt/retropie/supplementary/splashscreen
  9422. ++ echo 'local md_desc="Configure Splashscreen"
  9423. local md_help=""
  9424. local md_type="supplementary"
  9425. local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
  9426. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
  9427.  
  9428. local md_repo_type="git"
  9429. local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
  9430. local md_repo_branch="master"
  9431. local md_repo_commit=""
  9432.  
  9433. local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
  9434. local md_inst="/opt/retropie/supplementary/splashscreen"
  9435. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  9436. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
  9437. + eval 'local md_desc="Configure Splashscreen"
  9438. local md_help=""
  9439. local md_type="supplementary"
  9440. local md_flags="noinstclean !all rpi !osmc !xbian !aarch64"
  9441. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh"
  9442.  
  9443. local md_repo_type="git"
  9444. local md_repo_url="https://github.com/RetroPie/retropie-splashscreens.git"
  9445. local md_repo_branch="master"
  9446. local md_repo_commit=""
  9447.  
  9448. local md_build="/home/pi/RetroPie-Setup/tmp/build/splashscreen"
  9449. local md_inst="/opt/retropie/supplementary/splashscreen"
  9450. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  9451. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen"'
  9452. ++ local 'md_desc=Configure Splashscreen'
  9453. ++ local md_help=
  9454. ++ local md_type=supplementary
  9455. ++ local 'md_flags=noinstclean !all rpi !osmc !xbian !aarch64'
  9456. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen.sh
  9457. ++ local md_repo_type=git
  9458. ++ local md_repo_url=https://github.com/RetroPie/retropie-splashscreens.git
  9459. ++ local md_repo_branch=master
  9460. ++ local md_repo_commit=
  9461. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/splashscreen
  9462. ++ local md_inst=/opt/retropie/supplementary/splashscreen
  9463. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/splashscreen
  9464. + local md_mode=install
  9465. + local md_conf_root
  9466. + [[ supplementary == \p\o\r\t\s ]]
  9467. + setConfigRoot ''
  9468. + local dir=
  9469. + md_conf_root=/opt/retropie/configs
  9470. + [[ -n '' ]]
  9471. + mkUserDir /opt/retropie/configs
  9472. + mkdir -p /opt/retropie/configs
  9473. + chown pi:pi /opt/retropie/configs
  9474. + case "$mode" in
  9475. + function=configure_splashscreen
  9476. + fnExists configure_splashscreen
  9477. + declare -f configure_splashscreen
  9478. + return 0
  9479. + md_ret_require=()
  9480. + local md_ret_require
  9481. + md_ret_files=()
  9482. + local md_ret_files
  9483. + md_ret_errors=()
  9484. + local md_ret_errors
  9485. + md_ret_info=()
  9486. + local md_ret_info
  9487. + local action
  9488. + local pushed=1
  9489. + case "$mode" in
  9490. + action=Configuring
  9491. + pushd /opt/retropie/supplementary/splashscreen
  9492. /opt/retropie/supplementary/splashscreen /home/pi/RetroPie-Setup
  9493. + pushed=0
  9494. + [[ -n Configuring ]]
  9495. + printHeading 'Configuring '\''splashscreen'\'' : Configure Splashscreen'
  9496. + printMsgs heading 'Configuring '\''splashscreen'\'' : Configure Splashscreen'
  9497. + local type=heading
  9498. + shift
  9499. + [[ 0 == \1 ]]
  9500. + for msg in "$@"
  9501. + [[ heading == \d\i\a\l\o\g ]]
  9502. + [[ heading == \c\o\n\s\o\l\e ]]
  9503. + [[ heading == \h\e\a\d\i\n\g ]]
  9504. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nConfiguring '\''splashscreen'\'' : Configure Splashscreen\n= = = = = = = = = = = = = = = = = = = = =\n'
  9505.  
  9506. = = = = = = = = = = = = = = = = = = = = =
  9507. Configuring 'splashscreen' : Configure Splashscreen
  9508. = = = = = = = = = = = = = = = = = = = = =
  9509.  
  9510. + return 0
  9511. + case "$mode" in
  9512. + configure_splashscreen
  9513. + [[ install == \r\e\m\o\v\e ]]
  9514. + [[ -f /etc/init.d/asplashscreen ]]
  9515. + disable_plymouth_splashscreen
  9516. + local config=/boot/cmdline.txt
  9517. + [[ -f /boot/cmdline.txt ]]
  9518. + grep -q plymouth.enable /boot/cmdline.txt
  9519. + enable_splashscreen
  9520. + systemctl enable asplashscreen
  9521. + [[ ! -f /etc/splashscreen.list ]]
  9522. + [[ -n '' ]]
  9523. + [[ 0 -eq 0 ]]
  9524. + [[ -n '' ]]
  9525. + [[ -d /home/pi/RetroPie-Setup/tmp/build/splashscreen ]]
  9526. + local ret=0
  9527. + [[ 0 -gt 0 ]]
  9528. + [[ configure == \i\n\s\t\a\l\l\_\b\i\n ]]
  9529. + [[ configure == \i\n\s\t\a\l\l ]]
  9530. + fnExists install_splashscreen
  9531. + declare -f install_splashscreen
  9532. + return 1
  9533. + [[ configure == \b\u\i\l\d ]]
  9534. + [[ 0 -gt 0 ]]
  9535. + [[ 0 -eq 0 ]]
  9536. + popd
  9537. /home/pi/RetroPie-Setup
  9538. + return 0
  9539. + return 0
  9540. + return 0
  9541. + return 0
  9542. + for id in ${__mod_id[@]}
  9543. + rp_isInstalled steamcontroller
  9544. + local id=steamcontroller
  9545. + local md_inst=/opt/retropie/supplementary/steamcontroller
  9546. + [[ -d /opt/retropie/supplementary/steamcontroller ]]
  9547. + return 1
  9548. + for id in ${__mod_id[@]}
  9549. + rp_isInstalled usbromservice
  9550. + local id=usbromservice
  9551. + local md_inst=/opt/retropie/supplementary/usbromservice
  9552. + [[ -d /opt/retropie/supplementary/usbromservice ]]
  9553. + return 0
  9554. + [[ opt != \d\e\p\e\n\d\s ]]
  9555. + rp_installModule usbromservice _update_
  9556. + local id=usbromservice
  9557. + local mode=_update_
  9558. + [[ -z _update_ ]]
  9559. + rp_callModule usbromservice _update_
  9560. + local md_id=usbromservice
  9561. + local mode=_update_
  9562. + shift 2
  9563. + rp_hasModule usbromservice
  9564. + local id=usbromservice
  9565. + [[ -n 228 ]]
  9566. + return 0
  9567. + rp_isEnabled usbromservice
  9568. + local id=usbromservice
  9569. + [[ 1 -eq 0 ]]
  9570. + return 0
  9571. + case "$mode" in
  9572. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  9573. + rp_isInstalled usbromservice
  9574. + local id=usbromservice
  9575. + local md_inst=/opt/retropie/supplementary/usbromservice
  9576. + [[ -d /opt/retropie/supplementary/usbromservice ]]
  9577. + return 0
  9578. + rp_loadPackageInfo usbromservice pkg_origin
  9579. + local id=usbromservice
  9580. + [[ '' -eq 1 ]]
  9581. + local keys
  9582. + local cache=1
  9583. + [[ -z pkg_origin ]]
  9584. + shift
  9585. + keys=("$@")
  9586. + cache=0
  9587. + local load=0
  9588. ++ rp_getInstallPath usbromservice
  9589. ++ local id=usbromservice
  9590. ++ echo /opt/retropie/supplementary/usbromservice
  9591. + local pkg_file=/opt/retropie/supplementary/usbromservice/retropie.pkg
  9592. + [[ -f /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
  9593. + load=1
  9594. + local key
  9595. + local data
  9596. + for key in "${keys[@]}"
  9597. + data=
  9598. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  9599. + data=unknown
  9600. + __mod_info[$id/$key]=unknown
  9601. + [[ 1 -eq 1 ]]
  9602. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
  9603. + data=binary
  9604. + [[ -n binary ]]
  9605. + __mod_info[$id/$key]=binary
  9606. + [[ 0 -eq 1 ]]
  9607. + local pkg_origin=binary
  9608. + local has_binary=0
  9609. + local has_net=0
  9610. ++ getIPAddress
  9611. ++ local dev=
  9612. ++ local ip_route
  9613. +++ ip -4 route get 8.8.8.8
  9614. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  9615. cache '
  9616. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  9617. cache ]]
  9618. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  9619. cache ]]
  9620. ++ grep -oP 'src \K[^\s]+'
  9621. + local ip=192.168.2.5
  9622. + [[ -n 192.168.2.5 ]]
  9623. + has_net=1
  9624. + hasFlag '' nonet
  9625. + local string=
  9626. + local flag=nonet
  9627. + [[ -z '' ]]
  9628. + return 1
  9629. + [[ 1 -eq 1 ]]
  9630. + rp_hasBinary usbromservice
  9631. + local id=usbromservice
  9632. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  9633. ++ rp_getBinaryUrl usbromservice
  9634. ++ local id=usbromservice
  9635. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/usbromservice.tar.gz
  9636. ++ fnExists install_bin_usbromservice
  9637. ++ declare -f install_bin_usbromservice
  9638. ++ return 0
  9639. ++ fnExists __binary_url_usbromservice
  9640. ++ declare -f __binary_url_usbromservice
  9641. ++ return 1
  9642. ++ url=notest
  9643. ++ echo notest
  9644. + local url=notest
  9645. + [[ notest == \n\o\t\e\s\t ]]
  9646. + return 0
  9647. + local ret=0
  9648. + [[ 0 -eq 0 ]]
  9649. + has_binary=1
  9650. + [[ 0 -eq 2 ]]
  9651. + [[ 1 -eq 0 ]]
  9652. + local do_update=0
  9653. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  9654. + printMsgs heading 'Checking for updates for usbromservice'
  9655. + local type=heading
  9656. + shift
  9657. + [[ 0 == \1 ]]
  9658. + for msg in "$@"
  9659. + [[ heading == \d\i\a\l\o\g ]]
  9660. + [[ heading == \c\o\n\s\o\l\e ]]
  9661. + [[ heading == \h\e\a\d\i\n\g ]]
  9662. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nChecking for updates for usbromservice\n= = = = = = = = = = = = = = = = = = = = =\n'
  9663.  
  9664. = = = = = = = = = = = = = = = = = = = = =
  9665. Checking for updates for usbromservice
  9666. = = = = = = = = = = = = = = = = = = = = =
  9667.  
  9668. + return 0
  9669. + rp_hasNewerModule usbromservice binary
  9670. + local id=usbromservice
  9671. + local type=binary
  9672. + [[ -n '' ]]
  9673. + rp_loadPackageInfo usbromservice
  9674. + local id=usbromservice
  9675. + [[ '' -eq 1 ]]
  9676. + local keys
  9677. + local cache=1
  9678. + [[ -z '' ]]
  9679. + keys=(pkg_origin pkg_date pkg_repo_type pkg_repo_url pkg_repo_branch pkg_repo_commit pkg_repo_date pkg_repo_extra)
  9680. + local load=0
  9681. ++ rp_getInstallPath usbromservice
  9682. ++ local id=usbromservice
  9683. ++ echo /opt/retropie/supplementary/usbromservice
  9684. + local pkg_file=/opt/retropie/supplementary/usbromservice/retropie.pkg
  9685. + [[ -f /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
  9686. + load=1
  9687. + local key
  9688. + local data
  9689. + for key in "${keys[@]}"
  9690. + data=
  9691. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  9692. + data=unknown
  9693. + __mod_info[$id/$key]=unknown
  9694. + [[ 1 -eq 1 ]]
  9695. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
  9696. + data=binary
  9697. + [[ -n binary ]]
  9698. + __mod_info[$id/$key]=binary
  9699. + for key in "${keys[@]}"
  9700. + data=
  9701. + [[ pkg_date == \p\k\g\_\o\r\i\g\i\n ]]
  9702. + __mod_info[$id/$key]=
  9703. + [[ 1 -eq 1 ]]
  9704. ++ grep -oP 'pkg_date="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
  9705. + data=
  9706. + [[ -n '' ]]
  9707. + for key in "${keys[@]}"
  9708. + data=
  9709. + [[ pkg_repo_type == \p\k\g\_\o\r\i\g\i\n ]]
  9710. + __mod_info[$id/$key]=
  9711. + [[ 1 -eq 1 ]]
  9712. ++ grep -oP 'pkg_repo_type="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
  9713. + data=
  9714. + [[ -n '' ]]
  9715. + for key in "${keys[@]}"
  9716. + data=
  9717. + [[ pkg_repo_url == \p\k\g\_\o\r\i\g\i\n ]]
  9718. + __mod_info[$id/$key]=
  9719. + [[ 1 -eq 1 ]]
  9720. ++ grep -oP 'pkg_repo_url="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
  9721. + data=
  9722. + [[ -n '' ]]
  9723. + for key in "${keys[@]}"
  9724. + data=
  9725. + [[ pkg_repo_branch == \p\k\g\_\o\r\i\g\i\n ]]
  9726. + __mod_info[$id/$key]=
  9727. + [[ 1 -eq 1 ]]
  9728. ++ grep -oP 'pkg_repo_branch="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
  9729. + data=
  9730. + [[ -n '' ]]
  9731. + for key in "${keys[@]}"
  9732. + data=
  9733. + [[ pkg_repo_commit == \p\k\g\_\o\r\i\g\i\n ]]
  9734. + __mod_info[$id/$key]=
  9735. + [[ 1 -eq 1 ]]
  9736. ++ grep -oP 'pkg_repo_commit="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
  9737. + data=
  9738. + [[ -n '' ]]
  9739. + for key in "${keys[@]}"
  9740. + data=
  9741. + [[ pkg_repo_date == \p\k\g\_\o\r\i\g\i\n ]]
  9742. + __mod_info[$id/$key]=
  9743. + [[ 1 -eq 1 ]]
  9744. ++ grep -oP 'pkg_repo_date="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
  9745. + data=
  9746. + [[ -n '' ]]
  9747. + for key in "${keys[@]}"
  9748. + data=
  9749. + [[ pkg_repo_extra == \p\k\g\_\o\r\i\g\i\n ]]
  9750. + __mod_info[$id/$key]=
  9751. + [[ 1 -eq 1 ]]
  9752. ++ grep -oP 'pkg_repo_extra="\K[^"]+' /opt/retropie/supplementary/usbromservice/retropie.pkg
  9753. + data=
  9754. + [[ -n '' ]]
  9755. + [[ 1 -eq 1 ]]
  9756. + __mod_info[$id/pkg_info]=1
  9757. + local pkg_origin=binary
  9758. + local pkg_date=
  9759. + local pkg_repo_date=
  9760. + local pkg_repo_commit=
  9761. + local ret=1
  9762. + case "$type" in
  9763. + ret=
  9764. + [[ -n '' ]]
  9765. + [[ -z '' ]]
  9766. + ret=2
  9767. + __mod_info[$id/has_newer]=2
  9768. + return 2
  9769. + [[ 2 -eq 0 ]]
  9770. + [[ 2 == 2 ]]
  9771. + do_update=1
  9772. + [[ 0 -eq 3 ]]
  9773. + [[ 1 -eq 1 ]]
  9774. + printMsgs console 'Update is available - updating ...'
  9775. + local type=console
  9776. + shift
  9777. + [[ 0 == \1 ]]
  9778. + for msg in "$@"
  9779. + [[ console == \d\i\a\l\o\g ]]
  9780. + [[ console == \c\o\n\s\o\l\e ]]
  9781. + echo -e 'Update is available - updating ...'
  9782. Update is available - updating ...
  9783. + [[ console == \h\e\a\d\i\n\g ]]
  9784. + return 0
  9785. + [[ 1 -eq 1 ]]
  9786. + [[ binary != \s\o\u\r\c\e ]]
  9787. + [[ 1 -eq 1 ]]
  9788. + rp_callModule usbromservice _binary_
  9789. + local md_id=usbromservice
  9790. + local mode=_binary_
  9791. + shift 2
  9792. + rp_hasModule usbromservice
  9793. + local id=usbromservice
  9794. + [[ -n 228 ]]
  9795. + return 0
  9796. + rp_isEnabled usbromservice
  9797. + local id=usbromservice
  9798. + [[ 1 -eq 0 ]]
  9799. + return 0
  9800. + case "$mode" in
  9801. + for mode in depends install_bin configure
  9802. + rp_callModule usbromservice depends
  9803. + local md_id=usbromservice
  9804. + local mode=depends
  9805. + shift 2
  9806. + rp_hasModule usbromservice
  9807. + local id=usbromservice
  9808. + [[ -n 228 ]]
  9809. + return 0
  9810. + rp_isEnabled usbromservice
  9811. + local id=usbromservice
  9812. + [[ 1 -eq 0 ]]
  9813. + return 0
  9814. + case "$mode" in
  9815. ++ rp_moduleVars usbromservice
  9816. ++ local id=usbromservice
  9817. ++ local code
  9818. ++ read -d '' -r code
  9819. +++ rp_getInstallPath usbromservice
  9820. +++ local id=usbromservice
  9821. +++ echo /opt/retropie/supplementary/usbromservice
  9822. ++ echo 'local md_desc="USB ROM Service"
  9823. local md_help=""
  9824. local md_type="supplementary"
  9825. local md_flags=""
  9826. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
  9827.  
  9828. local md_repo_type=""
  9829. local md_repo_url=""
  9830. local md_repo_branch=""
  9831. local md_repo_commit=""
  9832.  
  9833. local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
  9834. local md_inst="/opt/retropie/supplementary/usbromservice"
  9835. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  9836. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
  9837. + eval 'local md_desc="USB ROM Service"
  9838. local md_help=""
  9839. local md_type="supplementary"
  9840. local md_flags=""
  9841. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
  9842.  
  9843. local md_repo_type=""
  9844. local md_repo_url=""
  9845. local md_repo_branch=""
  9846. local md_repo_commit=""
  9847.  
  9848. local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
  9849. local md_inst="/opt/retropie/supplementary/usbromservice"
  9850. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  9851. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
  9852. ++ local 'md_desc=USB ROM Service'
  9853. ++ local md_help=
  9854. ++ local md_type=supplementary
  9855. ++ local md_flags=
  9856. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh
  9857. ++ local md_repo_type=
  9858. ++ local md_repo_url=
  9859. ++ local md_repo_branch=
  9860. ++ local md_repo_commit=
  9861. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/usbromservice
  9862. ++ local md_inst=/opt/retropie/supplementary/usbromservice
  9863. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice
  9864. + local md_mode=install
  9865. + local md_conf_root
  9866. + [[ supplementary == \p\o\r\t\s ]]
  9867. + setConfigRoot ''
  9868. + local dir=
  9869. + md_conf_root=/opt/retropie/configs
  9870. + [[ -n '' ]]
  9871. + mkUserDir /opt/retropie/configs
  9872. + mkdir -p /opt/retropie/configs
  9873. + chown pi:pi /opt/retropie/configs
  9874. + case "$mode" in
  9875. + function=depends_usbromservice
  9876. + fnExists depends_usbromservice
  9877. + declare -f depends_usbromservice
  9878. + return 0
  9879. + md_ret_require=()
  9880. + local md_ret_require
  9881. + md_ret_files=()
  9882. + local md_ret_files
  9883. + md_ret_errors=()
  9884. + local md_ret_errors
  9885. + md_ret_info=()
  9886. + local md_ret_info
  9887. + local action
  9888. + local pushed=1
  9889. + case "$mode" in
  9890. + [[ '' == \r\e\m\o\v\e ]]
  9891. + action=Installing
  9892. + action+=' dependencies for'
  9893. + [[ -n Installing dependencies for ]]
  9894. + printHeading 'Installing dependencies for '\''usbromservice'\'' : USB ROM Service'
  9895. + printMsgs heading 'Installing dependencies for '\''usbromservice'\'' : USB ROM Service'
  9896. + local type=heading
  9897. + shift
  9898. + [[ 0 == \1 ]]
  9899. + for msg in "$@"
  9900. + [[ heading == \d\i\a\l\o\g ]]
  9901. + [[ heading == \c\o\n\s\o\l\e ]]
  9902. + [[ heading == \h\e\a\d\i\n\g ]]
  9903. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling dependencies for '\''usbromservice'\'' : USB ROM Service\n= = = = = = = = = = = = = = = = = = = = =\n'
  9904.  
  9905. = = = = = = = = = = = = = = = = = = = = =
  9906. Installing dependencies for 'usbromservice' : USB ROM Service
  9907. = = = = = = = = = = = = = = = = = = = = =
  9908.  
  9909. + return 0
  9910. + case "$mode" in
  9911. + depends_usbromservice
  9912. + depends=(rsync ntfs-3g exfat-fuse)
  9913. + local depends
  9914. ++ _get_ver_usbromservice
  9915. ++ echo 0.0.24
  9916. + hasPackage usbmount 0.0.24
  9917. + local pkg=usbmount
  9918. + local req_ver=0.0.24
  9919. + local comp=
  9920. + [[ -z '' ]]
  9921. + comp=ge
  9922. + local ver
  9923. + local status
  9924. ++ dpkg-query -W '--showformat=${Status} ${Version}' usbmount
  9925. + local 'out=install ok installed 0.0.24'
  9926. + [[ 0 -eq 0 ]]
  9927. + ver=0.0.24
  9928. + status='install ok installed'
  9929. + local installed=0
  9930. + [[ install ok installed == *\o\k\ \i\n\s\t\a\l\l\e\d ]]
  9931. + installed=1
  9932. + [[ -z 0.0.24 ]]
  9933. + [[ 1 -eq 0 ]]
  9934. + compareVersions 0.0.24 ge 0.0.24
  9935. + dpkg --compare-versions 0.0.24 ge 0.0.24
  9936. + return 0
  9937. + return 0
  9938. + [[ -n '' ]]
  9939. + [[ 0 -eq 0 ]]
  9940. + [[ -n '' ]]
  9941. + [[ -d /home/pi/RetroPie-Setup/tmp/build/usbromservice ]]
  9942. + local ret=0
  9943. + [[ 0 -gt 0 ]]
  9944. + [[ depends == \i\n\s\t\a\l\l\_\b\i\n ]]
  9945. + [[ depends == \i\n\s\t\a\l\l ]]
  9946. + fnExists install_usbromservice
  9947. + declare -f install_usbromservice
  9948. + return 1
  9949. + [[ depends == \b\u\i\l\d ]]
  9950. + [[ 0 -gt 0 ]]
  9951. + [[ 1 -eq 0 ]]
  9952. + return 0
  9953. + for mode in depends install_bin configure
  9954. + rp_callModule usbromservice install_bin
  9955. + local md_id=usbromservice
  9956. + local mode=install_bin
  9957. + shift 2
  9958. + rp_hasModule usbromservice
  9959. + local id=usbromservice
  9960. + [[ -n 228 ]]
  9961. + return 0
  9962. + rp_isEnabled usbromservice
  9963. + local id=usbromservice
  9964. + [[ 1 -eq 0 ]]
  9965. + return 0
  9966. + case "$mode" in
  9967. ++ rp_moduleVars usbromservice
  9968. ++ local id=usbromservice
  9969. ++ local code
  9970. ++ read -d '' -r code
  9971. +++ rp_getInstallPath usbromservice
  9972. +++ local id=usbromservice
  9973. +++ echo /opt/retropie/supplementary/usbromservice
  9974. ++ echo 'local md_desc="USB ROM Service"
  9975. local md_help=""
  9976. local md_type="supplementary"
  9977. local md_flags=""
  9978. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
  9979.  
  9980. local md_repo_type=""
  9981. local md_repo_url=""
  9982. local md_repo_branch=""
  9983. local md_repo_commit=""
  9984.  
  9985. local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
  9986. local md_inst="/opt/retropie/supplementary/usbromservice"
  9987. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  9988. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
  9989. + eval 'local md_desc="USB ROM Service"
  9990. local md_help=""
  9991. local md_type="supplementary"
  9992. local md_flags=""
  9993. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
  9994.  
  9995. local md_repo_type=""
  9996. local md_repo_url=""
  9997. local md_repo_branch=""
  9998. local md_repo_commit=""
  9999.  
  10000. local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
  10001. local md_inst="/opt/retropie/supplementary/usbromservice"
  10002. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  10003. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
  10004. ++ local 'md_desc=USB ROM Service'
  10005. ++ local md_help=
  10006. ++ local md_type=supplementary
  10007. ++ local md_flags=
  10008. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh
  10009. ++ local md_repo_type=
  10010. ++ local md_repo_url=
  10011. ++ local md_repo_branch=
  10012. ++ local md_repo_commit=
  10013. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/usbromservice
  10014. ++ local md_inst=/opt/retropie/supplementary/usbromservice
  10015. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice
  10016. + local md_mode=install
  10017. + local md_conf_root
  10018. + [[ supplementary == \p\o\r\t\s ]]
  10019. + setConfigRoot ''
  10020. + local dir=
  10021. + md_conf_root=/opt/retropie/configs
  10022. + [[ -n '' ]]
  10023. + mkUserDir /opt/retropie/configs
  10024. + mkdir -p /opt/retropie/configs
  10025. + chown pi:pi /opt/retropie/configs
  10026. + case "$mode" in
  10027. + function=install_bin_usbromservice
  10028. + fnExists install_bin_usbromservice
  10029. + declare -f install_bin_usbromservice
  10030. + return 0
  10031. + md_ret_require=()
  10032. + local md_ret_require
  10033. + md_ret_files=()
  10034. + local md_ret_files
  10035. + md_ret_errors=()
  10036. + local md_ret_errors
  10037. + md_ret_info=()
  10038. + local md_ret_info
  10039. + local action
  10040. + local pushed=1
  10041. + case "$mode" in
  10042. + action='Installing (binary)'
  10043. + [[ -n Installing (binary) ]]
  10044. + printHeading 'Installing (binary) '\''usbromservice'\'' : USB ROM Service'
  10045. + printMsgs heading 'Installing (binary) '\''usbromservice'\'' : USB ROM Service'
  10046. + local type=heading
  10047. + shift
  10048. + [[ 0 == \1 ]]
  10049. + for msg in "$@"
  10050. + [[ heading == \d\i\a\l\o\g ]]
  10051. + [[ heading == \c\o\n\s\o\l\e ]]
  10052. + [[ heading == \h\e\a\d\i\n\g ]]
  10053. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nInstalling (binary) '\''usbromservice'\'' : USB ROM Service\n= = = = = = = = = = = = = = = = = = = = =\n'
  10054.  
  10055. = = = = = = = = = = = = = = = = = = = = =
  10056. Installing (binary) 'usbromservice' : USB ROM Service
  10057. = = = = = = = = = = = = = = = = = = = = =
  10058.  
  10059. + return 0
  10060. + case "$mode" in
  10061. + fnExists install_bin_usbromservice
  10062. + declare -f install_bin_usbromservice
  10063. + return 0
  10064. + mkdir -p /opt/retropie/supplementary/usbromservice
  10065. + install_bin_usbromservice
  10066. + [[ ! -f /opt/retropie/supplementary/usbromservice/disabled ]]
  10067. + install_scripts_usbromservice
  10068. + local file
  10069. + local dest
  10070. + for file in "$md_data/"*
  10071. + dest=/etc/usbmount/mount.d/01_retropie_copyroms
  10072. + sed s/USERTOBECHOSEN/pi/g /home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice/01_retropie_copyroms
  10073. + chmod +x /etc/usbmount/mount.d/01_retropie_copyroms
  10074. + for file in "$md_data/"*
  10075. + dest=/etc/usbmount/mount.d/10_retropie_mount
  10076. + sed s/USERTOBECHOSEN/pi/g /home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice/10_retropie_mount
  10077. + chmod +x /etc/usbmount/mount.d/10_retropie_mount
  10078. + touch /opt/retropie/supplementary/usbromservice/installed
  10079. + [[ -n '' ]]
  10080. + [[ 0 -eq 0 ]]
  10081. + [[ -n '' ]]
  10082. + [[ -d /home/pi/RetroPie-Setup/tmp/build/usbromservice ]]
  10083. + local ret=0
  10084. + [[ 0 -gt 0 ]]
  10085. + [[ install_bin == \i\n\s\t\a\l\l\_\b\i\n ]]
  10086. + rp_setPackageInfo usbromservice binary
  10087. + local id=usbromservice
  10088. ++ rp_getInstallPath usbromservice
  10089. ++ local id=usbromservice
  10090. ++ echo /opt/retropie/supplementary/usbromservice
  10091. + local install_path=/opt/retropie/supplementary/usbromservice
  10092. + [[ ! -d /opt/retropie/supplementary/usbromservice ]]
  10093. + local pkg=/opt/retropie/supplementary/usbromservice/retropie.pkg
  10094. + local origin=binary
  10095. + rp_clearCachedInfo usbromservice
  10096. + local id=usbromservice
  10097. + __mod_info[$id/pkg_info]=0
  10098. + __mod_info[$id/has_binary]=
  10099. + __mod_info[$id/has_newer]=
  10100. + iniConfig = '"' /opt/retropie/supplementary/usbromservice/retropie.pkg
  10101. + __ini_cfg_delim==
  10102. + __ini_cfg_quote='"'
  10103. + __ini_cfg_file=/opt/retropie/supplementary/usbromservice/retropie.pkg
  10104. + iniSet pkg_origin binary
  10105. + iniProcess set pkg_origin binary ''
  10106. + local cmd=set
  10107. + local key=pkg_origin
  10108. + local value=binary
  10109. + local file=
  10110. + [[ -z '' ]]
  10111. + file=/opt/retropie/supplementary/usbromservice/retropie.pkg
  10112. + local delim==
  10113. + local 'quote="'
  10114. + [[ -z /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
  10115. + [[ -z pkg_origin ]]
  10116. + local delim_strip==
  10117. + [[ -z = ]]
  10118. + local 'match_re=^[[:space:]#]*pkg_origin[[:space:]]*=.*$'
  10119. + local match
  10120. + [[ -f /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
  10121. ++ egrep -i '^[[:space:]#]*pkg_origin[[:space:]]*=.*$' /opt/retropie/supplementary/usbromservice/retropie.pkg
  10122. ++ tail -1
  10123. + match='pkg_origin="binary"'
  10124. + [[ set == \d\e\l ]]
  10125. + [[ set == \u\n\s\e\t ]]
  10126. + local 'replace=pkg_origin="binary"'
  10127. + [[ -z pkg_origin="binary" ]]
  10128. ++ sedQuote 'pkg_origin="binary"'
  10129. ++ local 'string=pkg_origin="binary"'
  10130. ++ string='pkg_origin="binary"'
  10131. ++ string='pkg_origin="binary"'
  10132. ++ string='pkg_origin="binary"'
  10133. ++ string='pkg_origin="binary"'
  10134. ++ echo 'pkg_origin="binary"'
  10135. ++ sedQuote 'pkg_origin="binary"'
  10136. ++ local 'string=pkg_origin="binary"'
  10137. ++ string='pkg_origin="binary"'
  10138. ++ string='pkg_origin="binary"'
  10139. ++ string='pkg_origin="binary"'
  10140. ++ string='pkg_origin="binary"'
  10141. ++ echo 'pkg_origin="binary"'
  10142. + sed -i --follow-symlinks 's|pkg_origin="binary"|pkg_origin="binary"|g' /opt/retropie/supplementary/usbromservice/retropie.pkg
  10143. + [[ /opt/retropie/supplementary/usbromservice/retropie.pkg =~ retroarch\.cfg$ ]]
  10144. + return 0
  10145. + local pkg_date
  10146. + local pkg_repo_type
  10147. + local pkg_repo_url
  10148. + local pkg_repo_branch
  10149. + local pkg_repo_commit
  10150. + local pkg_repo_date
  10151. + local pkg_repo_extra
  10152. + [[ binary == \b\i\n\a\r\y ]]
  10153. ++ rp_getBinaryDate usbromservice
  10154. ++ local id=usbromservice
  10155. +++ rp_getBinaryUrl usbromservice
  10156. +++ local id=usbromservice
  10157. +++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/usbromservice.tar.gz
  10158. +++ fnExists install_bin_usbromservice
  10159. +++ declare -f install_bin_usbromservice
  10160. +++ return 0
  10161. +++ fnExists __binary_url_usbromservice
  10162. +++ declare -f __binary_url_usbromservice
  10163. +++ return 1
  10164. +++ url=notest
  10165. +++ echo notest
  10166. ++ local url=notest
  10167. ++ [[ -z notest ]]
  10168. ++ [[ notest == \n\o\t\e\s\t ]]
  10169. ++ return 1
  10170. + pkg_date=
  10171. + iniSet pkg_date ''
  10172. + iniProcess set pkg_date '' ''
  10173. + local cmd=set
  10174. + local key=pkg_date
  10175. + local value=
  10176. + local file=
  10177. + [[ -z '' ]]
  10178. + file=/opt/retropie/supplementary/usbromservice/retropie.pkg
  10179. + local delim==
  10180. + local 'quote="'
  10181. + [[ -z /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
  10182. + [[ -z pkg_date ]]
  10183. + local delim_strip==
  10184. + [[ -z = ]]
  10185. + local 'match_re=^[[:space:]#]*pkg_date[[:space:]]*=.*$'
  10186. + local match
  10187. + [[ -f /opt/retropie/supplementary/usbromservice/retropie.pkg ]]
  10188. ++ egrep -i '^[[:space:]#]*pkg_date[[:space:]]*=.*$' /opt/retropie/supplementary/usbromservice/retropie.pkg
  10189. ++ tail -1
  10190. + match='pkg_date=""'
  10191. + [[ set == \d\e\l ]]
  10192. + [[ set == \u\n\s\e\t ]]
  10193. + local 'replace=pkg_date=""'
  10194. + [[ -z pkg_date="" ]]
  10195. ++ sedQuote 'pkg_date=""'
  10196. ++ local 'string=pkg_date=""'
  10197. ++ string='pkg_date=""'
  10198. ++ string='pkg_date=""'
  10199. ++ string='pkg_date=""'
  10200. ++ string='pkg_date=""'
  10201. ++ echo 'pkg_date=""'
  10202. ++ sedQuote 'pkg_date=""'
  10203. ++ local 'string=pkg_date=""'
  10204. ++ string='pkg_date=""'
  10205. ++ string='pkg_date=""'
  10206. ++ string='pkg_date=""'
  10207. ++ string='pkg_date=""'
  10208. ++ echo 'pkg_date=""'
  10209. + sed -i --follow-symlinks 's|pkg_date=""|pkg_date=""|g' /opt/retropie/supplementary/usbromservice/retropie.pkg
  10210. + [[ /opt/retropie/supplementary/usbromservice/retropie.pkg =~ retroarch\.cfg$ ]]
  10211. + return 0
  10212. + [[ install_bin == \i\n\s\t\a\l\l ]]
  10213. + fnExists install_usbromservice
  10214. + declare -f install_usbromservice
  10215. + return 1
  10216. + [[ install_bin == \b\u\i\l\d ]]
  10217. + [[ 0 -gt 0 ]]
  10218. + [[ 1 -eq 0 ]]
  10219. + return 0
  10220. + for mode in depends install_bin configure
  10221. + rp_callModule usbromservice configure
  10222. + local md_id=usbromservice
  10223. + local mode=configure
  10224. + shift 2
  10225. + rp_hasModule usbromservice
  10226. + local id=usbromservice
  10227. + [[ -n 228 ]]
  10228. + return 0
  10229. + rp_isEnabled usbromservice
  10230. + local id=usbromservice
  10231. + [[ 1 -eq 0 ]]
  10232. + return 0
  10233. + case "$mode" in
  10234. ++ rp_moduleVars usbromservice
  10235. ++ local id=usbromservice
  10236. ++ local code
  10237. ++ read -d '' -r code
  10238. +++ rp_getInstallPath usbromservice
  10239. +++ local id=usbromservice
  10240. +++ echo /opt/retropie/supplementary/usbromservice
  10241. ++ echo 'local md_desc="USB ROM Service"
  10242. local md_help=""
  10243. local md_type="supplementary"
  10244. local md_flags=""
  10245. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
  10246.  
  10247. local md_repo_type=""
  10248. local md_repo_url=""
  10249. local md_repo_branch=""
  10250. local md_repo_commit=""
  10251.  
  10252. local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
  10253. local md_inst="/opt/retropie/supplementary/usbromservice"
  10254. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  10255. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
  10256. + eval 'local md_desc="USB ROM Service"
  10257. local md_help=""
  10258. local md_type="supplementary"
  10259. local md_flags=""
  10260. local md_path="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh"
  10261.  
  10262. local md_repo_type=""
  10263. local md_repo_url=""
  10264. local md_repo_branch=""
  10265. local md_repo_commit=""
  10266.  
  10267. local md_build="/home/pi/RetroPie-Setup/tmp/build/usbromservice"
  10268. local md_inst="/opt/retropie/supplementary/usbromservice"
  10269. # get module path folder + md_id for /home/pi/RetroPie-Setup/scriptmodules/admin/setup
  10270. local md_data="/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice"'
  10271. ++ local 'md_desc=USB ROM Service'
  10272. ++ local md_help=
  10273. ++ local md_type=supplementary
  10274. ++ local md_flags=
  10275. ++ local md_path=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice.sh
  10276. ++ local md_repo_type=
  10277. ++ local md_repo_url=
  10278. ++ local md_repo_branch=
  10279. ++ local md_repo_commit=
  10280. ++ local md_build=/home/pi/RetroPie-Setup/tmp/build/usbromservice
  10281. ++ local md_inst=/opt/retropie/supplementary/usbromservice
  10282. ++ local md_data=/home/pi/RetroPie-Setup/scriptmodules/supplementary/usbromservice
  10283. + local md_mode=install
  10284. + local md_conf_root
  10285. + [[ supplementary == \p\o\r\t\s ]]
  10286. + setConfigRoot ''
  10287. + local dir=
  10288. + md_conf_root=/opt/retropie/configs
  10289. + [[ -n '' ]]
  10290. + mkUserDir /opt/retropie/configs
  10291. + mkdir -p /opt/retropie/configs
  10292. + chown pi:pi /opt/retropie/configs
  10293. + case "$mode" in
  10294. + function=configure_usbromservice
  10295. + fnExists configure_usbromservice
  10296. + declare -f configure_usbromservice
  10297. + return 0
  10298. + md_ret_require=()
  10299. + local md_ret_require
  10300. + md_ret_files=()
  10301. + local md_ret_files
  10302. + md_ret_errors=()
  10303. + local md_ret_errors
  10304. + md_ret_info=()
  10305. + local md_ret_info
  10306. + local action
  10307. + local pushed=1
  10308. + case "$mode" in
  10309. + action=Configuring
  10310. + pushd /opt/retropie/supplementary/usbromservice
  10311. /opt/retropie/supplementary/usbromservice /home/pi/RetroPie-Setup
  10312. + pushed=0
  10313. + [[ -n Configuring ]]
  10314. + printHeading 'Configuring '\''usbromservice'\'' : USB ROM Service'
  10315. + printMsgs heading 'Configuring '\''usbromservice'\'' : USB ROM Service'
  10316. + local type=heading
  10317. + shift
  10318. + [[ 0 == \1 ]]
  10319. + for msg in "$@"
  10320. + [[ heading == \d\i\a\l\o\g ]]
  10321. + [[ heading == \c\o\n\s\o\l\e ]]
  10322. + [[ heading == \h\e\a\d\i\n\g ]]
  10323. + echo -e '\n= = = = = = = = = = = = = = = = = = = = =\nConfiguring '\''usbromservice'\'' : USB ROM Service\n= = = = = = = = = = = = = = = = = = = = =\n'
  10324.  
  10325. = = = = = = = = = = = = = = = = = = = = =
  10326. Configuring 'usbromservice' : USB ROM Service
  10327. = = = = = = = = = = = = = = = = = = = = =
  10328.  
  10329. + return 0
  10330. + case "$mode" in
  10331. + configure_usbromservice
  10332. + [[ install == \r\e\m\o\v\e ]]
  10333. + iniConfig = '"' /etc/usbmount/usbmount.conf
  10334. + __ini_cfg_delim==
  10335. + __ini_cfg_quote='"'
  10336. + __ini_cfg_file=/etc/usbmount/usbmount.conf
  10337. + local fs
  10338. + for fs in ntfs exfat
  10339. + iniGet FILESYSTEMS
  10340. + local key=FILESYSTEMS
  10341. + local file=
  10342. + [[ -z '' ]]
  10343. + file=/etc/usbmount/usbmount.conf
  10344. + [[ ! -f /etc/usbmount/usbmount.conf ]]
  10345. + local delim==
  10346. + local 'quote="'
  10347. + local delim_strip==
  10348. + [[ -z = ]]
  10349. + local value_m
  10350. + [[ -n " ]]
  10351. + value_m='"*\([^"|\r]*\)"*'
  10352. ++ sed -n 's/^[ |\t]*FILESYSTEMS[ |\t]*=[ |\t]*"*\([^"|\r]*\)"*.*/\1/p' /etc/usbmount/usbmount.conf
  10353. ++ tail -1
  10354. + ini_value='vfat ext2 ext3 ext4 hfsplus ntfs exfat'
  10355. + [[ vfat ext2 ext3 ext4 hfsplus ntfs exfat != *ntfs* ]]
  10356. + for fs in ntfs exfat
  10357. + iniGet FILESYSTEMS
  10358. + local key=FILESYSTEMS
  10359. + local file=
  10360. + [[ -z '' ]]
  10361. + file=/etc/usbmount/usbmount.conf
  10362. + [[ ! -f /etc/usbmount/usbmount.conf ]]
  10363. + local delim==
  10364. + local 'quote="'
  10365. + local delim_strip==
  10366. + [[ -z = ]]
  10367. + local value_m
  10368. + [[ -n " ]]
  10369. + value_m='"*\([^"|\r]*\)"*'
  10370. ++ sed -n 's/^[ |\t]*FILESYSTEMS[ |\t]*=[ |\t]*"*\([^"|\r]*\)"*.*/\1/p' /etc/usbmount/usbmount.conf
  10371. ++ tail -1
  10372. + ini_value='vfat ext2 ext3 ext4 hfsplus ntfs exfat'
  10373. + [[ vfat ext2 ext3 ext4 hfsplus ntfs exfat != *exfat* ]]
  10374. + iniSet MOUNTOPTIONS nodev,noexec,noatime
  10375. + iniProcess set MOUNTOPTIONS nodev,noexec,noatime ''
  10376. + local cmd=set
  10377. + local key=MOUNTOPTIONS
  10378. + local value=nodev,noexec,noatime
  10379. + local file=
  10380. + [[ -z '' ]]
  10381. + file=/etc/usbmount/usbmount.conf
  10382. + local delim==
  10383. + local 'quote="'
  10384. + [[ -z /etc/usbmount/usbmount.conf ]]
  10385. + [[ -z MOUNTOPTIONS ]]
  10386. + local delim_strip==
  10387. + [[ -z = ]]
  10388. + local 'match_re=^[[:space:]#]*MOUNTOPTIONS[[:space:]]*=.*$'
  10389. + local match
  10390. + [[ -f /etc/usbmount/usbmount.conf ]]
  10391. ++ egrep -i '^[[:space:]#]*MOUNTOPTIONS[[:space:]]*=.*$' /etc/usbmount/usbmount.conf
  10392. ++ tail -1
  10393. + match='MOUNTOPTIONS="nodev,noexec,noatime"'
  10394. + [[ set == \d\e\l ]]
  10395. + [[ set == \u\n\s\e\t ]]
  10396. + local 'replace=MOUNTOPTIONS="nodev,noexec,noatime"'
  10397. + [[ -z MOUNTOPTIONS="nodev,noexec,noatime" ]]
  10398. ++ sedQuote 'MOUNTOPTIONS="nodev,noexec,noatime"'
  10399. ++ local 'string=MOUNTOPTIONS="nodev,noexec,noatime"'
  10400. ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
  10401. ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
  10402. ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
  10403. ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
  10404. ++ echo 'MOUNTOPTIONS="nodev,noexec,noatime"'
  10405. ++ sedQuote 'MOUNTOPTIONS="nodev,noexec,noatime"'
  10406. ++ local 'string=MOUNTOPTIONS="nodev,noexec,noatime"'
  10407. ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
  10408. ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
  10409. ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
  10410. ++ string='MOUNTOPTIONS="nodev,noexec,noatime"'
  10411. ++ echo 'MOUNTOPTIONS="nodev,noexec,noatime"'
  10412. + sed -i --follow-symlinks 's|MOUNTOPTIONS="nodev,noexec,noatime"|MOUNTOPTIONS="nodev,noexec,noatime"|g' /etc/usbmount/usbmount.conf
  10413. + [[ /etc/usbmount/usbmount.conf =~ retroarch\.cfg$ ]]
  10414. + return 0
  10415. ++ id -u pi
  10416. ++ id -g pi
  10417. + local options=uid=1000,gid=1000
  10418. + local fs_options
  10419. + local fs
  10420. + for fs in vfat hfsplus ntfs exfat
  10421. + fs_options+=("-fstype=${fs},${options}")
  10422. + for fs in vfat hfsplus ntfs exfat
  10423. + fs_options+=("-fstype=${fs},${options}")
  10424. + for fs in vfat hfsplus ntfs exfat
  10425. + fs_options+=("-fstype=${fs},${options}")
  10426. + for fs in vfat hfsplus ntfs exfat
  10427. + fs_options+=("-fstype=${fs},${options}")
  10428. + 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'
  10429. + 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' ''
  10430. + local cmd=set
  10431. + local key=FS_MOUNTOPTIONS
  10432. + 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'
  10433. + local file=
  10434. + [[ -z '' ]]
  10435. + file=/etc/usbmount/usbmount.conf
  10436. + local delim==
  10437. + local 'quote="'
  10438. + [[ -z /etc/usbmount/usbmount.conf ]]
  10439. + [[ -z FS_MOUNTOPTIONS ]]
  10440. + local delim_strip==
  10441. + [[ -z = ]]
  10442. + local 'match_re=^[[:space:]#]*FS_MOUNTOPTIONS[[:space:]]*=.*$'
  10443. + local match
  10444. + [[ -f /etc/usbmount/usbmount.conf ]]
  10445. ++ egrep -i '^[[:space:]#]*FS_MOUNTOPTIONS[[:space:]]*=.*$' /etc/usbmount/usbmount.conf
  10446. ++ tail -1
  10447. + 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"'
  10448. + [[ set == \d\e\l ]]
  10449. + [[ set == \u\n\s\e\t ]]
  10450. + 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"'
  10451. + [[ -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" ]]
  10452. ++ 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"'
  10453. ++ 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"'
  10454. ++ 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"'
  10455. ++ 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"'
  10456. ++ 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"'
  10457. ++ 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"'
  10458. ++ 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"'
  10459. ++ 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"'
  10460. ++ 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"'
  10461. ++ 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"'
  10462. ++ 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"'
  10463. ++ 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"'
  10464. ++ 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"'
  10465. ++ 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"'
  10466. + 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
  10467. + [[ /etc/usbmount/usbmount.conf =~ retroarch\.cfg$ ]]
  10468. + return 0
  10469. + [[ -n '' ]]
  10470. + [[ 0 -eq 0 ]]
  10471. + [[ -n '' ]]
  10472. + [[ -d /home/pi/RetroPie-Setup/tmp/build/usbromservice ]]
  10473. + local ret=0
  10474. + [[ 0 -gt 0 ]]
  10475. + [[ configure == \i\n\s\t\a\l\l\_\b\i\n ]]
  10476. + [[ configure == \i\n\s\t\a\l\l ]]
  10477. + fnExists install_usbromservice
  10478. + declare -f install_usbromservice
  10479. + return 1
  10480. + [[ configure == \b\u\i\l\d ]]
  10481. + [[ 0 -gt 0 ]]
  10482. + [[ 0 -eq 0 ]]
  10483. + popd
  10484. /home/pi/RetroPie-Setup
  10485. + return 0
  10486. + return 0
  10487. + return 0
  10488. + return 0
  10489. + for id in ${__mod_id[@]}
  10490. + rp_isInstalled virtualgamepad
  10491. + local id=virtualgamepad
  10492. + local md_inst=/opt/retropie/supplementary/virtualgamepad
  10493. + [[ -d /opt/retropie/supplementary/virtualgamepad ]]
  10494. + return 1
  10495. + for id in ${__mod_id[@]}
  10496. + rp_isInstalled wifi
  10497. + local id=wifi
  10498. + local md_inst=/opt/retropie/supplementary/wifi
  10499. + [[ -d /opt/retropie/supplementary/wifi ]]
  10500. + return 1
  10501. + for id in ${__mod_id[@]}
  10502. + rp_isInstalled xarcade2jstick
  10503. + local id=xarcade2jstick
  10504. + local md_inst=/opt/retropie/supplementary/xarcade2jstick
  10505. + [[ -d /opt/retropie/supplementary/xarcade2jstick ]]
  10506. + return 1
  10507. + for id in ${__mod_id[@]}
  10508. + rp_isInstalled xboxdrv
  10509. + local id=xboxdrv
  10510. + local md_inst=/opt/retropie/supplementary/xboxdrv
  10511. + [[ -d /opt/retropie/supplementary/xboxdrv ]]
  10512. + return 1
  10513. + for id in ${__mod_id[@]}
  10514. + rp_isInstalled xpadneo
  10515. + local id=xpadneo
  10516. + local md_inst=/opt/retropie/supplementary/xpadneo
  10517. + [[ -d /opt/retropie/supplementary/xpadneo ]]
  10518. + return 1
  10519. + for id in ${__mod_id[@]}
  10520. + rp_isInstalled xpad
  10521. + local id=xpad
  10522. + local md_inst=/opt/retropie/supplementary/xpad
  10523. + [[ -d /opt/retropie/supplementary/xpad ]]
  10524. + return 0
  10525. + [[ driver != \d\e\p\e\n\d\s ]]
  10526. + rp_installModule xpad _update_
  10527. + local id=xpad
  10528. + local mode=_update_
  10529. + [[ -z _update_ ]]
  10530. + rp_callModule xpad _update_
  10531. + local md_id=xpad
  10532. + local mode=_update_
  10533. + shift 2
  10534. + rp_hasModule xpad
  10535. + local id=xpad
  10536. + [[ -n 234 ]]
  10537. + return 0
  10538. + rp_isEnabled xpad
  10539. + local id=xpad
  10540. + [[ 1 -eq 0 ]]
  10541. + return 0
  10542. + case "$mode" in
  10543. + [[ _update_ == \_\u\p\d\a\t\e\_ ]]
  10544. + rp_isInstalled xpad
  10545. + local id=xpad
  10546. + local md_inst=/opt/retropie/supplementary/xpad
  10547. + [[ -d /opt/retropie/supplementary/xpad ]]
  10548. + return 0
  10549. + rp_loadPackageInfo xpad pkg_origin
  10550. + local id=xpad
  10551. + [[ '' -eq 1 ]]
  10552. + local keys
  10553. + local cache=1
  10554. + [[ -z pkg_origin ]]
  10555. + shift
  10556. + keys=("$@")
  10557. + cache=0
  10558. + local load=0
  10559. ++ rp_getInstallPath xpad
  10560. ++ local id=xpad
  10561. ++ echo /opt/retropie/supplementary/xpad
  10562. + local pkg_file=/opt/retropie/supplementary/xpad/retropie.pkg
  10563. + [[ -f /opt/retropie/supplementary/xpad/retropie.pkg ]]
  10564. + load=1
  10565. + local key
  10566. + local data
  10567. + for key in "${keys[@]}"
  10568. + data=
  10569. + [[ pkg_origin == \p\k\g\_\o\r\i\g\i\n ]]
  10570. + data=unknown
  10571. + __mod_info[$id/$key]=unknown
  10572. + [[ 1 -eq 1 ]]
  10573. ++ grep -oP 'pkg_origin="\K[^"]+' /opt/retropie/supplementary/xpad/retropie.pkg
  10574. + data=source
  10575. + [[ -n source ]]
  10576. + __mod_info[$id/$key]=source
  10577. + [[ 0 -eq 1 ]]
  10578. + local pkg_origin=source
  10579. + local has_binary=0
  10580. + local has_net=0
  10581. ++ getIPAddress
  10582. ++ local dev=
  10583. ++ local ip_route
  10584. +++ ip -4 route get 8.8.8.8
  10585. ++ ip_route='8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  10586. cache '
  10587. ++ [[ -z 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  10588. cache ]]
  10589. ++ [[ -n 8.8.8.8 via 192.168.2.1 dev eth0 src 192.168.2.5 uid 0
  10590. cache ]]
  10591. ++ grep -oP 'src \K[^\s]+'
  10592. + local ip=192.168.2.5
  10593. + [[ -n 192.168.2.5 ]]
  10594. + has_net=1
  10595. + hasFlag 'noinstclean !mali' nonet
  10596. + local 'string=noinstclean !mali'
  10597. + local flag=nonet
  10598. + [[ -z noinstclean !mali ]]
  10599. + [[ -z nonet ]]
  10600. + [[ noinstclean !mali =~ (^| )nonet($| ) ]]
  10601. + return 1
  10602. + [[ 1 -eq 1 ]]
  10603. + rp_hasBinary xpad
  10604. + local id=xpad
  10605. + [[ Raspbian != \R\a\s\p\b\i\a\n ]]
  10606. ++ rp_getBinaryUrl xpad
  10607. ++ local id=xpad
  10608. ++ local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
  10609. ++ fnExists install_bin_xpad
  10610. ++ declare -f install_bin_xpad
  10611. ++ return 1
  10612. ++ echo https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
  10613. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
  10614. + [[ https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz == \n\o\t\e\s\t ]]
  10615. + [[ -z https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz ]]
  10616. + [[ -n '' ]]
  10617. + local ret=1
  10618. + rp_hasBinaries
  10619. + [[ 1 -eq 1 ]]
  10620. + return 0
  10621. + rp_remoteFileExists https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
  10622. + local url=https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
  10623. + local ret
  10624. + curl --max-time 5 -o /dev/null -sfI https://files.retropie.org.uk/binaries/buster/rpi3/supplementary/xpad.tar.gz
  10625. + ret=28
  10626. + [[ 28 -eq 0 ]]
  10627. + [[ 28 -eq 22 ]]
  10628. + return 2
  10629. + ret=2
  10630. + [[ 2 -ne 2 ]]
  10631. + return 2
  10632. + local ret=2
  10633. + [[ 2 -eq 0 ]]
  10634. + [[ 2 -eq 2 ]]
  10635. + has_net=0
  10636. + [[ 0 -eq 0 ]]
  10637. + __ERRMSGS+=("Can't install/update $md_id - unable to connect to the internet")
  10638. + return 1
  10639. + return 1
  10640. + for id in ${__mod_id[@]}
  10641. + rp_isInstalled apidocs
  10642. + local id=apidocs
  10643. + local md_inst=/opt/retropie/admin/apidocs
  10644. + [[ -d /opt/retropie/admin/apidocs ]]
  10645. + return 1
  10646. + for id in ${__mod_id[@]}
  10647. + rp_isInstalled builder
  10648. + local id=builder
  10649. + local md_inst=/opt/retropie/admin/builder
  10650. + [[ -d /opt/retropie/admin/builder ]]
  10651. + return 1
  10652. + for id in ${__mod_id[@]}
  10653. + rp_isInstalled crosscomp
  10654. + local id=crosscomp
  10655. + local md_inst=/opt/retropie/admin/crosscomp
  10656. + [[ -d /opt/retropie/admin/crosscomp ]]
  10657. + return 1
  10658. + for id in ${__mod_id[@]}
  10659. + rp_isInstalled image
  10660. + local id=image
  10661. + local md_inst=/opt/retropie/admin/image
  10662. + [[ -d /opt/retropie/admin/image ]]
  10663. + return 1
  10664. + for id in ${__mod_id[@]}
  10665. + rp_isInstalled setup
  10666. + local id=setup
  10667. + local md_inst=/opt/retropie/admin/setup
  10668. + [[ -d /opt/retropie/admin/setup ]]
  10669. + return 1
  10670. + for id in ${__mod_id[@]}
  10671. + rp_isInstalled stats
  10672. + local id=stats
  10673. + local md_inst=/opt/retropie/admin/stats
  10674. + [[ -d /opt/retropie/admin/stats ]]
  10675. + return 1
  10676. + for id in ${__mod_id[@]}
  10677. + rp_isInstalled tools
  10678. + local id=tools
  10679. + local md_inst=/opt/retropie/admin/tools
  10680. + [[ -d /opt/retropie/admin/tools ]]
  10681. + return 1
  10682. + for id in ${__mod_id[@]}
  10683. + rp_isInstalled wikidocs
  10684. + local id=wikidocs
  10685. + local md_inst=/opt/retropie/admin/wikidocs
  10686. + [[ -d /opt/retropie/admin/wikidocs ]]
  10687. + return 1
  10688. + rps_logEnd
  10689. ++ date +%s
  10690. + time_end=1614511459
  10691. + echo
  10692.  
  10693. ++ date -d @1614511459
  10694. + echo 'Log ended at: Sun 28 Feb 13:24:19 EET 2021'
  10695. Log ended at: Sun 28 Feb 13:24:19 EET 2021
  10696. + date_total=260
  10697. + local hours=0
  10698. + local mins=4
  10699. + local secs=20
  10700. + echo 'Total running time: 0 hours, 4 mins, 20 secs'
  10701. Total running time: 0 hours, 4 mins, 20 secs
  10702.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement