2022-03-28 23:53:26 +00:00
|
|
|
#!/bin/bash
|
2022-03-16 22:03:28 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
|
|
|
|
|
|
|
. /etc/profile
|
|
|
|
|
2022-11-23 14:18:05 +00:00
|
|
|
if [[ "$(cat /storage/.config/boot.hint 2>/dev/null)" =~ UPDATE ]] && [ -e "/storage/.configured" ]
|
2022-03-16 22:03:28 +00:00
|
|
|
then
|
|
|
|
if [ -e "/usr/share/post-update" ]
|
|
|
|
then
|
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
|
|
|
|
rm /storage/.config/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
|