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-23 22:46:49 +00:00
|
|
|
# Copyright (C) 2023-present - The JELOS Project (https://github.com/JustEnoughLinuxOS) (https://github.com/fewtarius)
|
2022-03-16 22:03:28 +00:00
|
|
|
|
2023-08-07 00:30:11 +00:00
|
|
|
# Minimal OS variable loading for performance
|
2023-09-04 10:46:11 +00:00
|
|
|
. /etc/profile.d/001-functions
|
2022-03-16 22:03:28 +00:00
|
|
|
|
2023-06-19 01:07:32 +00:00
|
|
|
if [ "$(cat /storage/.boot.hint 2>/dev/null)" = "UPDATE" ]
|
2022-03-16 22:03:28 +00:00
|
|
|
then
|
|
|
|
if [ -e "/usr/share/post-update" ]
|
|
|
|
then
|
2023-04-22 20:01:07 +00:00
|
|
|
tocon "Performing post-update configuration..."
|
2022-11-01 11:55:34 +00:00
|
|
|
/usr/share/post-update >/var/log/upgrade.log 2>&1
|
2022-03-16 22:03:28 +00:00
|
|
|
fi
|
2023-06-19 01:07:32 +00:00
|
|
|
rm /storage/.boot.hint
|
2022-11-12 20:39:58 +00:00
|
|
|
else
|
|
|
|
echo "No update hint found." >/var/log/upgrade.log 2>&1
|
2022-03-16 22:03:28 +00:00
|
|
|
fi
|