You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, the -d (download) option doesn't actually download firmware and instead calls fw_update -n, which is dry-run mode. That lists the firmware that would be installed, but doesn't download anything.
It'd be preferable if it used fw_update -F ${some_path}, which will download firmware from the default URL to the ${some_path} directory. I'm not sure if we want to put that in a subdirectory of /tmp (with root-only permissions, of course) or something like /home/_swupdate/ (like sysupgrade does with /home/_sysupgrade/). I'm leaning toward the latter as it'd be preserved across reboots.
Of course, if we do that, we should probably also then update the -i (install) option to download firmware to and install it from /home/_swupdate/ (or whatever directory we end up using) with fw_update -p ${some_path}.
The text was updated successfully, but these errors were encountered:
…are() & install_firmware() functions which download firmware files to the local sets dir /home/_swupdate and install from there, respectively. Issue #4
I've started this and added a swupdate -b option (like sysupgrade(8); defaults to /home/_swupdate) and download_firmware() & install_firmware() functions which will download firmware to it and install from it, respectively.
Needs more testing, especially whether it's redownloading the firmware files each time. Also, what if one wants to install firmware that has already been downloaded, but not try to refetch them again first?
For some reason, the
-d
(download) option doesn't actually download firmware and instead callsfw_update -n
, which is dry-run mode. That lists the firmware that would be installed, but doesn't download anything.It'd be preferable if it used
fw_update -F ${some_path}
, which will download firmware from the default URL to the${some_path}
directory. I'm not sure if we want to put that in a subdirectory of/tmp
(with root-only permissions, of course) or something like/home/_swupdate/
(likesysupgrade
does with/home/_sysupgrade/
). I'm leaning toward the latter as it'd be preserved across reboots.Of course, if we do that, we should probably also then update the
-i
(install) option to download firmware to and install it from/home/_swupdate/
(or whatever directory we end up using) withfw_update -p ${some_path}
.The text was updated successfully, but these errors were encountered: