mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 06:57:50 +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"
|
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
|
# hard reset
|
||||||
rm -f /storage/.cache/reset_oe
|
rm -f /storage/.cache/reset_hard
|
||||||
get_target
|
get_target
|
||||||
if [ -n "${target}" ]; then
|
if [ -n "${target}" ]; then
|
||||||
show_reset_msg
|
show_reset_msg
|
||||||
@ -65,9 +65,9 @@ if [ -f /storage/.cache/reset_oe ]; then
|
|||||||
echo
|
echo
|
||||||
StartProgress countdown "Rebooting in 5s... " 5 "NOW"
|
StartProgress countdown "Rebooting in 5s... " 5 "NOW"
|
||||||
fi
|
fi
|
||||||
elif [ -f /storage/.cache/reset_xbmc ]; then
|
elif [ -f /storage/.cache/reset_soft ]; then
|
||||||
# soft reset
|
# soft reset
|
||||||
rm -f /storage/.cache/reset_xbmc
|
rm -f /storage/.cache/reset_soft
|
||||||
get_target
|
get_target
|
||||||
if [ -n "${target}" ]; then
|
if [ -n "${target}" ]; then
|
||||||
show_reset_msg
|
show_reset_msg
|
||||||
|
@ -36,7 +36,7 @@ done
|
|||||||
|
|
||||||
if [ -f /storage/.please_resize_me ]; then
|
if [ -f /storage/.please_resize_me ]; then
|
||||||
TARGET="fs-resize.target"
|
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"
|
TARGET="factory-reset.target"
|
||||||
elif [ -f "$BACKUP_FILE" ]; then
|
elif [ -f "$BACKUP_FILE" ]; then
|
||||||
TARGET="backup-restore.target"
|
TARGET="backup-restore.target"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user