Skip to content

Commit

Permalink
Fix #66
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems authored May 8, 2024
1 parent 1daa3b0 commit d593dfd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions codexctl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
RESTORE_CODE = """
# switches the active root partition
fw_setenv "upgrade_available" "1"
fw_setenv "bootcount" "0"
/sbin/fw_setenv "upgrade_available" "1"
/sbin/fw_setenv "bootcount" "0"
OLDPART=$(fw_printenv -n active_partition)
OLDPART=$(/sbin/fw_printenv -n active_partition)
if [ $OLDPART == "2" ]; then
NEWPART="3"
else
Expand All @@ -38,8 +38,8 @@
echo "new: ${NEWPART}"
echo "fallback: ${OLDPART}"
fw_setenv "fallback_partition" "${OLDPART}"
fw_setenv "active_partition" "${NEWPART}"
/sbin/fw_setenv "fallback_partition" "${OLDPART}"
/sbin/fw_setenv "active_partition" "${NEWPART}"
"""


Expand Down

0 comments on commit d593dfd

Please sign in to comment.