mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 12:33:02 +02:00
Previously, when the `proto://path` format of `bootfile` was used, the transformed argument sent to either tftp or wget would also be stored in `bootfile` overriding the original value set by the user. If the first boot attempt failed for some reason, the protocol information was stripped from `bootfile` and the second attempt would then default to TFTP, even if the user had originally specified `http://...`. Therefore, store the transformed value in a separate variable. For some reason, setexpr's parsing of regex escapes changes when this mode is used, so we need double backslashes to fetch match groups instead of 1. Yikes. Fixes #724