distribution/packages/jelos/autostart/001-setup

34 lines
666 B
Text
Raw Normal View History

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
2022-02-05 14:23:32 +00:00
. /etc/profile
2022-02-05 14:23:32 +00:00
if [ -d "/storage/cache/.cores" ]
then
rm -rf /storage/cache/.cores
fi
if [ ! -d "/tmp/cache" ]
then
mkdir -p /tmp/cache
2022-02-05 14:23:32 +00:00
fi
ln -sf /tmp/cache /storage/cache/.cores
if [ ! -d "/storage/.config/profile.d" ]
then
mkdir -p /storage/.config/profile.d
fi
### Inspect the system config and revert
### to last known good state if corrupt.
/usr/bin/chksysconfig verify
### Clean up settings
sort_settings
### 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