Adding support for installing to sd cards as well as preventing unnecessary downloads. #2
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: crt0mega/flash-it#2
Loading…
Reference in New Issue
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adding support for installing to sd cards as well as preventing unnecessary downloads
Support for installing to sd cards
The script currently assumes that partition names are named
However, memory cards, such as sd cards will have partitions ending in p1 and p2, to fix this I've added a check that sets the partition names accordingly.
The rest of the script then uses these variables instead. This is especially important if someone tries to run this script from their phone to install to the internal storage as that is memory card device and the script wouldn't be able to install to it.
Preventing unnecessary downloadsI have realized my solution for this would only apply to the pinephone download and therefore undid these changes.
I found myself having to redownload files when something wouldn't work and I would cancel the script. To fix this the script simply checks if the files are present before downloading them.After realizing that the downloads will differ depending on platforms I have removed the download checks, however the SD card check remains.
The download code was a but i was unsure about but as thats been removed, LGTM!