mirror of
https://github.com/AuxXxilium/arc-v.git
synced 2024-11-23 15:01:04 +07:00
arc: reset bootcounter in different scenaries
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
bb2828c018
commit
fb305c0dff
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user