26 lines
555 B
Bash
Executable file
26 lines
555 B
Bash
Executable file
#!/bin/bash
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
|
|
|
. /etc/profile
|
|
|
|
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
|
|
|
|
### We do not want to mount the cloud drive on startup
|
|
### so we'll reset the mount option to 0.
|
|
set_setting clouddrive.mounted 0
|