Skip to content

Commit

Permalink
Update bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems authored Jan 5, 2025
1 parent 0a81080 commit 03db0d5
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions scripts/bootstrap/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,16 @@ if [ -z "$BASH" ] || [[ "$(ps | awk '$1=='$$' { n=split($5,a,"/"); print a[n] }'
fi

arch=""
device=""
unam="$(uname -m)"

if [ "$unam" = "armv7l" ]; then
arch="armv7sf-k3.2"
device="rmall" #rmall is only rm1 and rm2 to keep compatibility with older toltec versions
fi

if [ "$unam" = "aarch64" ]; then
arch="aarch64-k3.10"
device="rmpp"
echo "The reMarkable Paper Pro is not yet supported!"
exit 1
fi

if [ -z "$arch" ]; then
echo "Device architecture not recognised."
exit 1
fi
case "$(uname -m") in
"armv7l")
arch="armv7sf-k3.2" ;;
#"aarch64)
# arch="aarch64-k3.10" ;;
*)
echo "Unsupported device architecture"
exit 1
;;
esac
set -eEuo pipefail
Expand All @@ -55,7 +46,7 @@ toltec_branch="${toltec_branch:-stable}"
# Base URLs for bootstrapping from the Entware and Toltec repositories
entware_remote="${entware_remote:-https://bin.entware.net/$arch/installer}"
toltec_remote="${toltec_remote:-https://toltec-dev.org/$toltec_branch/$device}"
toltec_remote="${toltec_remote:-https://toltec-dev.org/$toltec_branch/rmall}"
# Remove all temporary files
cleanup() {
Expand Down

0 comments on commit 03db0d5

Please sign in to comment.