File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ COPY utilities/runcommand-onstart.sh /opt/retropie/configs/all/runcommand-onstar
54
54
RUN chmod +x /opt/retropie/configs/all/runcommand-onstart.sh
55
55
56
56
# Edit this file in your persistent storage to use all or part of the name provided from "lsusb" to reset the controller on each start
57
- RUN touch /opt/retropie/configs/all/controller_names && chown pi:pi /opt/retropie/configs/all/controller_names
57
+ RUN touch /opt/retropie/configs/all/controller_usb_ids && chown pi:pi /opt/retropie/configs/all/controller_usb_ids
58
58
59
59
# and Installs RetroPie + optional modules declared in install.sh
60
60
COPY --chown=pi install_retropie_addons.sh /tmp/install_retropie_addons.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- cp ~ /Projects/retropie-container/ runcommand-onstart.sh ~ /.config/retropie-container/configs/all/runcommand-onstart.sh && chmod +x ~ /.config/retropie-container/configs/all/runcommand-onstart.sh
3
- cp ~ /Projects/retropie-container/ reset_controller.py ~ /.config/retropie-container/configs/all/reset_controller.py && chmod +x ~ /.config/retropie-container/configs/all/reset_controller.py
4
- cp ~ /Projects/retropie-container/ reset_controller.sh ~ /.config/retropie-container/configs/all/reset_controller.sh && chmod +x ~ /.config/retropie-container/configs/all/reset_controller.sh
2
+ cp runcommand-onstart.sh ~ /.config/retropie-container/configs/all/runcommand-onstart.sh && chmod +x ~ /.config/retropie-container/configs/all/runcommand-onstart.sh
3
+ cp reset_controller.py ~ /.config/retropie-container/configs/all/reset_controller.py && chmod +x ~ /.config/retropie-container/configs/all/reset_controller.py
4
+ cp reset_controller.sh ~ /.config/retropie-container/configs/all/reset_controller.sh && chmod +x ~ /.config/retropie-container/configs/all/reset_controller.sh
Original file line number Diff line number Diff line change 6
6
7
7
sleep 3
8
8
9
- declare -a controller_names
10
- readarray controller_names < /opt/retropie/configs/all/controller_names
9
+ declare -a controller_usb_ids
10
+ readarray controller_usb_ids < /opt/retropie/configs/all/controller_usb_ids
11
11
12
12
let i=0
13
- while (( ${# controller_names [@]} > i )) ; do
14
- controller=" ${controller_names [i++]} "
13
+ while (( ${# controller_usb_ids [@]} > i )) ; do
14
+ controller=" ${controller_usb_ids [i++]} "
15
15
sudo /opt/retropie/configs/all/reset_controller.py " $controller "
16
16
sleep 1
17
17
sudo /opt/retropie/configs/all/reset_controller.py " $controller "
You can’t perform that action at this time.
0 commit comments