21 lines
595 B
Text
21 lines
595 B
Text
|
#!/bin/bash
|
||
|
|
||
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
# Copyright (C) 2020-present Shanti Gilbert (https://github.com/shantigilbert)
|
||
|
# Copyright (C) 2022 Fewtarius (https://github.com/fewtarius)
|
||
|
|
||
|
case "${1}" in
|
||
|
"retroarch")
|
||
|
rm -f /storage/.config/retroarch/retroarch.cfg
|
||
|
cp -rf /usr/config/retroarch/retroarch.cfg /storage/.config/retroarch/retroarch.cfg
|
||
|
;;
|
||
|
"ALL")
|
||
|
systemctl stop emustation
|
||
|
cd /
|
||
|
find /storage -mindepth 1 \( ! -regex '^/storage/.update.*' -a ! -regex '^/storage/roms.*' \) -delete
|
||
|
mkdir /storage/.config/
|
||
|
sync
|
||
|
systemctl reboot
|
||
|
;;
|
||
|
esac
|