distribution/packages/jelos/autostart/003-upgrade
fewtarius 629647deaf
* Moves creation of game directories into automount and out of tmpfiles.d so automount is the only tool managing them.
* Move post-update a little earlier, and stop rebooting after the update completes as it should no longer be necessary.
* Migrate games from games-{internal,external} to games-{internal,external}/roms to allow upper/lower directory switching.
* If there is no defined upper setting, and there is an external card available, preference the card so modifications to /storage/roms are hosted there as expected.
* Corrects factory reset to ignore new games paths.
2023-12-04 22:06:31 +00:00

18 lines
500 B
Bash
Executable file

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
# Minimal OS variable loading for performance
. /etc/profile.d/001-functions
if [ "$(cat /storage/.boot.hint 2>/dev/null)" = "UPDATE" ]
then
if [ -e "/usr/share/post-update" ]
then
tocon "Performing post-update configuration..."
/usr/share/post-update >/var/log/upgrade.log 2>&1
fi
rm /storage/.boot.hint
else
echo "No update hint found." >/var/log/upgrade.log 2>&1
fi