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-03-28 23:53:26 +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-03-29 00:32:58 +00:00
|
|
|
show_splash intro
|
2022-05-27 22:33:28 +00:00
|
|
|
echo -ne "\033[1000H\033[2K==> Preparing system.." >/dev/console
|
2022-03-16 22:03:28 +00:00
|
|
|
/usr/share/post-update
|
|
|
|
fi
|
|
|
|
rm /storage/.config/boot.hint
|
2022-03-28 23:53:26 +00:00
|
|
|
touch /storage/.configured
|
2022-03-16 22:03:28 +00:00
|
|
|
fi
|
2022-04-01 12:39:48 +00:00
|
|
|
|
|
|
|
clear >/dev/console
|
|
|
|
/usr/bin/show_splash intro 2>&1 >>${BOOTLOG}
|