mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
system: use generic filenames for reset trigger
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
parent
18005be044
commit
d852a3b6e7
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user