2023-08-07 00:30:11 +00:00
|
|
|
#!/bin/sh
|
2022-03-16 22:03:28 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
|
|
|
|
2023-08-07 00:30:11 +00:00
|
|
|
# Minimal OS variable loading for performance
|
|
|
|
. /etc/profile.d/02-distribution
|
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
|