9e72309447
* Move retroarch bits to the retroarch package. * Add an upgrade script to autostart that executes after upgrades.
35 lines
779 B
Bash
Executable file
35 lines
779 B
Bash
Executable file
#!/bin/sh
|
|
# 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
|
|
fi
|
|
|
|
if [ -d "/storage/cache/.cores" ]
|
|
then
|
|
rm -rf /storage/cache/.cores
|
|
fi
|
|
|
|
if [ ! -d "/tmp/cache" ]
|
|
then
|
|
mkdir /tmp/cache
|
|
fi
|
|
|
|
ln -sf /tmp/cache /storage/cache/.cores
|
|
|