Small PortMaster cleanup

This commit is contained in:
mason 2023-11-13 17:15:48 +00:00
parent 220cb2cf61
commit 4fcb799ad9
No known key found for this signature in database
GPG key ID: 84D9278A11FA112B
2 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,7 @@ jslisten set "PortMaster"
#Make sure PortMaster exists in .config/PortMaster
if [ ! -d "/storage/.config/PortMaster" ]; then
mkdir -p "/storage/.config/ports/PortMaster"
mkdir -p "/storage/.config/PortMaster"
cp -r "/usr/config/PortMaster" "/storage/.config/"
fi
@ -16,6 +16,7 @@ cd /storage/.config/PortMaster
#Grab the latest control.txt
cp /usr/config/PortMaster/control.txt control.txt
cp /usr/config/PortMaster/mapper.txt mapper.txt
#Use our gamecontrollerdb.txt
rm -r gamecontrollerdb.txt

View file

@ -15,6 +15,7 @@ ESUDOKILL="-1"
raloc="/usr/bin"
raconf="--config /storage/.config/retroarch/retroarch.cfg"
pdevice=$(cat /sys/firmware/devicetree/base/model 2>/dev/null)
pdevice=$(tr -d '\0' </sys/firmware/devicetree/base/model 2>/dev/null)
case ${pdevice} in
"Anbernic RG552")
@ -29,7 +30,7 @@ case ${pdevice} in
"Anbernic RG351*")
profile="anbernic"
;;
"ODROID-GO Advance*")
"ODROID-GO Advance*"|"Powkiddy RGB10")
profile="oga"
;;
"ODROID-GO Super")