Streamlining for multiple devices.

This commit is contained in:
fewtarius 2022-03-28 19:53:26 -04:00
parent 87eb602149
commit c360cdfefb
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
13 changed files with 38 additions and 24 deletions

View file

@ -1,4 +1,9 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
# Enable GPIO 77 for power LED manipulation
echo ${DEVICE_LED} > /sys/class/gpio/export

View file

@ -1,4 +1,9 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
# Silence PWM
echo 0 > /sys/class/pwm/${DEVICE_PWM_MOTOR}/export
echo 1000000 > /sys/class/pwm/${DEVICE_PWM_MOTOR}/pwm0/period

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2020 Fewtarius (https://github.com/fewtarius)

View file

@ -1,21 +1,9 @@
#!/bin/sh
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
if [ -d "/storage/.config/system/configs" ]
then
EXCLUDE="--exclude=configs"
fi
rsync -a --delete ${EXCLUDE} /usr/config/system/ /storage/.config/system/ &
rsync -a /usr/config/modules /storage/.config/ &
rsync -a /usr/config/game /storage/.config/ &
rsync -a --delete /usr/config/locale/ /storage/.config/emulationstation/locale/ &
wait < <(jobs -p)
if [ ! -L "/storage/.emulationstation" ]
then
ln -sf /storage/.config/emulationstation /storage/.emulationstation

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)

View file

@ -1,14 +1,15 @@
#!/bin/sh
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
if [ "$(cat /storage/.config/boot.hint 2>/dev/null)" = "UPDATE" ]
if [ "$(cat /storage/.config/boot.hint 2>/dev/null)" = "UPDATE" ] || [ ! -e "/storage/.configured" ]
then
if [ -e "/usr/share/post-update" ]
then
/usr/share/post-update
fi
rm /storage/.config/boot.hint
touch /storage/.configured
fi

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)

View file

@ -4,7 +4,20 @@
. /etc/profile
### This script contains items that we only want to execute after a JELOS upgrade.
### This script contains items that we only want to execute after a JELOS upgrade,
### or after a fresh installation.
if [ -d "/storage/.config/system/configs" ]
then
EXCLUDE="--exclude=configs"
fi
rsync -a --delete ${EXCLUDE} /usr/config/system/ /storage/.config/system/ &
rsync -a /usr/config/modules /storage/.config/ &
rsync -a /usr/config/game /storage/.config/ &
rsync -a --delete /usr/config/locale/ /storage/.config/emulationstation/locale/ &
wait < <(jobs -p)
### Switch the theme to system-theme if it hasn't already been done
if [ ! -L /storage/.config/emulationstation/themes/system-theme ]

View file

@ -732,7 +732,10 @@ mount_games() {
/usr/bin/busybox mkdir -p /storage/roms/update >/dev/null 2>&1
fi
/usr/bin/busybox mountpoint -q /storage/roms >/dev/null 2>&1
if [ ${CARDS} -gt 1 ]
then
/usr/bin/busybox mountpoint -q /storage/roms >/dev/null 2>&1
fi
if [ $? == "0" ] && [ ! -e "/storage/.please_resize_me" ]
then
/usr/bin/busybox mkdir -p "$UPDATE_ROOT" >/dev/null 2>&1

View file

@ -21,5 +21,4 @@ then
hres="$(fbset 2>/dev/null | awk '/geometry/ { print $2 }')"
cp -f /usr/config/splash/splash-${hres}.png /storage/.config/emulationstation/resources/logo.png
touch /storage/.configured
fi