system: use generic filenames for reset trigger

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
Ian Leonard 2020-10-02 20:21:00 +00:00
parent 18005be044
commit d852a3b6e7
2 changed files with 5 additions and 5 deletions

View File

@ -40,9 +40,9 @@ show_reset_msg() {
echo -e "Please do not reboot or turn off your @DISTRONAME@ device!\n"
}
if [ -f /storage/.cache/reset_oe ]; then
if [ -f /storage/.cache/reset_hard ]; then
# hard reset
rm -f /storage/.cache/reset_oe
rm -f /storage/.cache/reset_hard
get_target
if [ -n "${target}" ]; then
show_reset_msg
@ -65,9 +65,9 @@ if [ -f /storage/.cache/reset_oe ]; then
echo
StartProgress countdown "Rebooting in 5s... " 5 "NOW"
fi
elif [ -f /storage/.cache/reset_xbmc ]; then
elif [ -f /storage/.cache/reset_soft ]; then
# soft reset
rm -f /storage/.cache/reset_xbmc
rm -f /storage/.cache/reset_soft
get_target
if [ -n "${target}" ]; then
show_reset_msg

View File

@ -36,7 +36,7 @@ done
if [ -f /storage/.please_resize_me ]; then
TARGET="fs-resize.target"
elif [ -f /storage/.cache/reset_oe -o -f /storage/.cache/reset_xbmc ]; then
elif [ -f /storage/.cache/reset_hard -o -f /storage/.cache/reset_soft ]; then
TARGET="factory-reset.target"
elif [ -f "$BACKUP_FILE" ]; then
TARGET="backup-restore.target"