2023-08-07 00:30:11 +00:00
|
|
|
#!/bin/sh
|
2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-09-19 10:57:33 +00:00
|
|
|
. /etc/profile
|
2023-04-22 20:01:07 +00:00
|
|
|
|
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
|
2023-09-04 14:54:35 +00:00
|
|
|
mkdir -p /tmp/cache
|
2022-02-05 14:23:32 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
ln -sf /tmp/cache /storage/cache/.cores
|
|
|
|
|
2023-09-04 14:54:35 +00:00
|
|
|
if [ ! -d "/storage/.config/profile.d" ]
|
|
|
|
then
|
|
|
|
mkdir -p /storage/.config/profile.d
|
|
|
|
fi
|
|
|
|
|
2023-04-23 13:44:13 +00:00
|
|
|
### Inspect the system config and revert
|
|
|
|
### to last known good state if corrupt.
|
|
|
|
/usr/bin/chksysconfig verify
|
|
|
|
|
2023-11-27 13:17:55 +00:00
|
|
|
### Clean up settings
|
|
|
|
sort_settings
|
|
|
|
|
2022-04-03 17:12:46 +00:00
|
|
|
### 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
|