distribution/packages/emulators/standalone/retroarch/autostart/003-logging

21 lines
451 B
Text
Raw Normal View History

#!/bin/sh
2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
# Minimal OS variable loading for performance
. /etc/profile.d/02-distribution
2022-02-05 14:23:32 +00:00
tocon "Configuring logging..."
2022-02-05 14:23:32 +00:00
if [ ! -d "/var/log/retroarch" ]
then
mkdir /var/log/retroarch
fi
if [ -d "/storage/.config/retroarch/logs" ]
then
rm -rf /storage/.config/retroarch/logs
fi
ln -s /var/log/retroarch /storage/.config/retroarch/logs