mirror of
https://github.com/OpenMANET/morse-feed.git
synced 2025-12-10 03:43:06 -06:00
- only attempt to generate qrcode if dpp_key.pem exists
- reduce number of code paths:
- only generate private key in dpp-key-recovery
- only generate qrcode when morse interface is brought up
and we definitely have a MAC address (this lets us remove a bunch
of mac address fallback code which is not useful)
- some refactoring/simplification to reduce amount of code
This means that this script doesn't change this key later in
the bringup, and the logic is simpler.
It also means we don't _regenerate_ if we've failed
to put it in persistent storage (i.e. the persistent
storage write failed).
Approved-by: Evan Benn
Approved-by: Milad Mohtashamirad