arc: reset bootcounter in different scenaries

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-01-20 16:06:04 +01:00
parent bb2828c018
commit fb305c0dff
2 changed files with 2 additions and 0 deletions

View File

@ -2733,6 +2733,7 @@ function boot() {
if [ $? -eq 0 ]; then
make
fi
writeConfigKey "arc.bootcount" "0" "${USER_CONFIG_FILE}"
dialog --backtitle "$(backtitle)" --title "Arc Boot" \
--infobox "Booting to DSM - Please stay patient!" 0 0
sleep 2

View File

@ -100,6 +100,7 @@ declare -A CMDLINE
# Read and Set Cmdline
if grep -q "force_junior" /proc/cmdline; then
CMDLINE['force_junior']=""
writeConfigKey "arc.bootcount" "0" "${USER_CONFIG_FILE}"
fi
[ ${EFI} -eq 1 ] && CMDLINE['withefi']="" || CMDLINE['noefi']=""
if [ ! "${BUS}" = "usb" ]; then