distribution/packages/jelos/sources/autostart/common/004-upgrade
fewtarius 9e72309447
* Fix long standing issue with busybox and bash.
* Move retroarch bits to the retroarch package.
* Add an upgrade script to autostart that executes after upgrades.
2022-03-16 18:03:28 -04:00

14 lines
306 B
Bash
Executable file

#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
if [ "$(cat /storage/.config/boot.hint)" = "UPGRADE" ]
then
if [ -e "/usr/share/post-update" ]
then
/usr/share/post-update
fi
rm /storage/.config/boot.hint
fi